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
@ -3521,16 +3521,16 @@ ARDOUR_UI::TransportControllable::set_value (double val)
|
||||
action = X_("Stop");
|
||||
break;
|
||||
case GotoStart:
|
||||
action = X_("Goto Start");
|
||||
action = X_("GotoStart");
|
||||
break;
|
||||
case GotoEnd:
|
||||
action = X_("Goto End");
|
||||
action = X_("GotoEnd");
|
||||
break;
|
||||
case AutoLoop:
|
||||
action = X_("Loop");
|
||||
break;
|
||||
case PlaySelection:
|
||||
action = X_("Play Selection");
|
||||
action = X_("PlaySelection");
|
||||
break;
|
||||
case RecordEnable:
|
||||
action = X_("Record");
|
||||
|
@ -234,7 +234,9 @@ MIDIControllable::midi_sense_note (Parser &, EventTwoBytes *msg, bool /*is_on*/)
|
||||
}
|
||||
|
||||
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 {
|
||||
if (control_additional == msg->note_number) {
|
||||
controllable->set_value (controllable->get_value() > 0.5f ? 0.0f : 1.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user