forward-port generic MIDI and transport controllable changes from 2.X
git-svn-id: svn://localhost/ardour2/branches/3.0@13066 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0f79645be7
commit
b2bbc44eaa
@ -234,7 +234,9 @@ MIDIControllable::midi_sense_note (Parser &, EventTwoBytes *msg, bool /*is_on*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!controllable->is_toggle()) {
|
if (!controllable->is_toggle()) {
|
||||||
controllable->set_value (midi_to_control (msg->note_number));
|
if (control_additional == msg->note_number) {
|
||||||
|
controllable->set_value (midi_to_control (msg->velocity));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (control_additional == msg->note_number) {
|
if (control_additional == msg->note_number) {
|
||||||
controllable->set_value (controllable->get_value() > 0.5f ? 0.0f : 1.0f);
|
controllable->set_value (controllable->get_value() > 0.5f ? 0.0f : 1.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user