projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mackie: fix display of send level/fader level in send subview
[ardour.git]
/
libs
/
surfaces
/
mackie
/
led.cc
diff --git
a/libs/surfaces/mackie/led.cc
b/libs/surfaces/mackie/led.cc
index cd57c45d3fdd5340cb9e9d63b1fa2753e4bbc904..59b9f6cb20a9026ac99b1e648dfb6b709f70c69c 100644
(file)
--- a/
libs/surfaces/mackie/led.cc
+++ b/
libs/surfaces/mackie/led.cc
@@
-21,8
+21,15
@@
#include "surface.h"
#include "control_group.h"
#include "surface.h"
#include "control_group.h"
+using namespace ArdourSurface;
using namespace Mackie;
using namespace Mackie;
+const int Led::FaderTouch = 0x70;
+const int Led::Timecode = 0x71;
+const int Led::Beats = 0x72;
+const int Led::RudeSolo = 0x73;
+const int Led::RelayClick = 0x74;
+
Control*
Led::factory (Surface& surface, int id, const char* name, Group& group)
{
Control*
Led::factory (Surface& surface, int id, const char* name, Group& group)
{
@@
-33,30
+40,26
@@
Led::factory (Surface& surface, int id, const char* name, Group& group)
return l;
}
return l;
}
-MidiByteArray
+MidiByteArray
Led::set_state (LedState new_state)
{
Led::set_state (LedState new_state)
{
- if (new_state != state) {
- return MidiByteArray();
- }
-
state = new_state;
MIDI::byte msg = 0;
switch (state.state()) {
state = new_state;
MIDI::byte msg = 0;
switch (state.state()) {
- case LedState::on:
- msg = 0x7f;
+ case LedState::on:
+ msg = 0x7f;
break;
break;
- case LedState::off:
- msg = 0x00;
+ case LedState::off:
+ msg = 0x00;
break;
break;
- case LedState::flashing:
- msg = 0x01;
+ case LedState::flashing:
+ msg = 0x01;
break;
break;
- case LedState::none:
+ case LedState::none:
return MidiByteArray ();
}
return MidiByteArray ();
}
-
+
return MidiByteArray (3, 0x90, id(), msg);
}
return MidiByteArray (3, 0x90, id(), msg);
}