diff options
Diffstat (limited to 'libs/surfaces/mackie/bcf_surface.cc')
-rw-r--r-- | libs/surfaces/mackie/bcf_surface.cc | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/libs/surfaces/mackie/bcf_surface.cc b/libs/surfaces/mackie/bcf_surface.cc deleted file mode 100644 index 756e2139c5..0000000000 --- a/libs/surfaces/mackie/bcf_surface.cc +++ /dev/null @@ -1,46 +0,0 @@ -#include <cmath> - -#include "bcf_surface.h" -#include "controls.h" -#include "mackie_midi_builder.h" -#include "surface_port.h" -#include "jog.h" -#include "pot.h" - -using namespace Mackie; - -void -BcfSurface::display_bank_start (SurfacePort & port, MackieMidiBuilder & builder, uint32_t current_bank) -{ - if (current_bank == 0) { - // send Ar. to 2-char display on the master - port.write (builder.two_char_display ("Ar", "..")); - } else { - // write the current first remote_id to the 2-char display - port.write (builder.two_char_display (current_bank)); - } -} - -void -BcfSurface::zero_all (SurfacePort & port, MackieMidiBuilder & builder) -{ - // clear 2-char display - port.write (builder.two_char_display ("LC")); - - // and the led ring for the master strip - blank_jog_ring (port, builder); -} - -void -BcfSurface::blank_jog_ring (SurfacePort & port, MackieMidiBuilder & builder) -{ - Control & control = *controls_by_name["jog"]; - port.write (builder.build_led_ring (dynamic_cast<Pot &> (control), off)); -} - -float -BcfSurface::scaled_delta (const ControlState & state, float current_speed) -{ - return state.sign * (std::pow (float(state.ticks + 1), 2) + current_speed) / 100.0; -} - |