Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
VcvRack.cpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "VcvRack.h"
#include "erb/erb.h"
/*
==============================================================================
Name : init
==============================================================================
*/
void VcvRack::init ()
{
using namespace std::chrono_literals;
ui.led_3mm_red.blink ();
ui.led_3mm_green.blink (1.f, 2s, erb::linear);
ui.led_3mm_yellow.blink (1.f, 2s, erb::ease_in_out);
ui.led_3mm_green_red.blink (erb::ColorBi::yellow ());
ui.led_3mm_rgb.blink (erb::ColorRgb::blue ());
}
/*
==============================================================================
Name : process
==============================================================================
*/
void VcvRack::process ()
{
using namespace std::chrono_literals;
ui.led_3mm_red.set_brightness (ui.pot);
ui.led_3mm_green.set_brightness (ui.pot);
ui.led_3mm_yellow.set_brightness (ui.pot);
ui.led_3mm_green_red.set_brightness (ui.pot);
ui.led_3mm_rgb.set_brightness (ui.pot);
if (ui.button.pressed ())
{
ui.led_3mm_red.pulse (1.f, 3s, erb::ease_in_out);
}
}
20e06d02cThis file is pinned to the selected release. Download the original to open it in your design tool.