X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmidi_mapper.h;h=98ea6113ab6a7435f5c77c59c17b425bcbcb2de4;hb=6da5e74d3e13c307de29bd540ff4ce8371000efd;hp=c1d6639858d1c697795692e05f16d6883a5263db;hpb=3fbdb43f7b184d6805b4fdab070015ee705ab6db;p=nageru diff --git a/futatabi/midi_mapper.h b/futatabi/midi_mapper.h index c1d6639..98ea611 100644 --- a/futatabi/midi_mapper.h +++ b/futatabi/midi_mapper.h @@ -83,6 +83,10 @@ public: current_highlighted_camera = stream_idx; refresh_lights(); } + void set_speed_light(float speed) { // Goes from 0.0 to 2.0. + current_speed = speed; + refresh_lights(); + } // MIDIReceiver. void controller_received(int controller, int value) override; @@ -111,6 +115,7 @@ private: std::atomic play_enabled_light{Off}; std::atomic locked_light{On}; std::atomic current_highlighted_camera{-1}; + std::atomic current_speed{1.0f}; MIDIDevice midi_device; };