13
0

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:
Carl Hetherington 2012-03-21 02:15:55 +00:00
parent 4c0b104db5
commit 189257dd32

View File

@ -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);
}