Make toggle MIDIControllables with program changes only respond to the appropriate program change (part of #4780).
git-svn-id: svn://localhost/ardour2/branches/3.0@11739 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
4c0b104db5
commit
189257dd32
@ -259,7 +259,7 @@ MIDIControllable::midi_sense_program_change (Parser &, byte msg)
|
||||
|
||||
if (!controllable->is_toggle()) {
|
||||
controllable->set_value (midi_to_control (msg));
|
||||
} else {
|
||||
} else if (msg == control_additional) {
|
||||
controllable->set_value (controllable->get_value() > 0.5f ? 0.0f : 1.0f);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user