}
} else {
- if (msg->value > 64.0f) {
+ if ( msg->value > 0x40 ) {
controllable->set_value (1, Controllable::NoGroup);
DEBUG_TRACE (DEBUG::GenericMidi, string_compose ("Midi CC %1 value 1 %2\n", (int) msg->controller_number, current_uri()));
} else {
_function = TransportEnd;
} else if (strcasecmp (_invokable_name.c_str(), "loop-toggle") == 0) {
_function = TransportLoopToggle;
+ } else if (strcasecmp (_invokable_name.c_str(), "toggle-rec-enable") == 0) {
+ _function = TransportRecordToggle;
} else if (strcasecmp (_invokable_name.c_str(), "rec-enable") == 0) {
_function = TransportRecordEnable;
} else if (strcasecmp (_invokable_name.c_str(), "rec-disable") == 0) {
DEBUG_TRACE (DEBUG::GenericMidi, "Function: loop_toggle\n");
break;
+ case TransportRecordToggle:
+ _ui->rec_enable_toggle ();
+ DEBUG_TRACE (DEBUG::GenericMidi, "Function: toggle_record_enable\n");
+ break;
+
case TransportRecordEnable:
_ui->set_record_enable (true);
DEBUG_TRACE (DEBUG::GenericMidi, "Function: set_record_enable = true\n");
TransportStart,
TransportEnd,
TransportLoopToggle,
+ TransportRecordToggle,
TransportRecordEnable,
TransportRecordDisable,
/* 1 argument functions: RID */
<DeviceInfo bank-size="9" motorized="no" threshold="15"/>
<!-- Transport Controls -->
- <Binding msg="B0 2c 7f" function="rec-enable"/>
+ <Binding msg="B0 2c 7f" function="toggle-rec-enable"/>
<Binding msg="B0 2d 7f" function="transport-roll"/>
<Binding msg="B0 2e 7f" function="transport-stop"/>
<Binding msg="B0 2f 7f" function="transport-start"/>
<DeviceInfo bank-size="8"/>
- <Binding msg="B0 2d 7f" function="rec-enable"/>
- <Binding msg="B0 2d 00" function="rec-disable"/>
<Binding channel="1" ctl="41" function="transport-roll"/>
<Binding channel="1" ctl="42" function="transport-stop"/>
<Binding channel="1" ctl="43" function="transport-start"/>
<Binding channel="1" ctl="44" function="transport-end"/>
+ <Binding channel="1" ctl="44" function="transport-end"/>
+ <Binding channel="1" ctl="45" function="toggle-rec-enable"/>
<Binding channel="1" ctl="46" function="loop-toggle"/>
<Binding msg="B0 3c 7f" action="Editor/add-location-from-playhead"/>
<Binding msg="B0 3d 7f" action="Editor/jump-backward-to-mark"/>
<DeviceInfo bank-size="7"/>
- <Binding msg="B0 2d 7f" function="rec-enable"/>
- <Binding msg="B0 2d 00" function="rec-disable"/>
<Binding channel="1" ctl="41" function="transport-roll"/>
<Binding channel="1" ctl="42" function="transport-stop"/>
<Binding channel="1" ctl="43" function="transport-start"/>
<Binding channel="1" ctl="44" function="transport-end"/>
+ <Binding channel="1" ctl="45" function="toggle-rec-enable"/>
<Binding channel="1" ctl="46" function="loop-toggle"/>
<Binding msg="B0 3c 7f" action="Editor/add-location-from-playhead"/>
<Binding msg="B0 3d 7f" action="Editor/jump-backward-to-mark"/>
<Binding channel="1" ctl="22" function="transport-end"/>
<Binding channel="1" ctl="23" function="transport-stop"/>
<Binding channel="1" ctl="24" function="transport-roll"/>
- <Binding channel="1" ctl="25" function="rec-enable"/>
- <Binding channel="1" ctl="25" function="rec-disable"/>
+ <Binding channel="1" ctl="25" function="toggle-rec-enable"/>
<!-- Potentiometers: -->
<!-- I decided to map the 8 pots as track fader controls. They have a -->
<Binding channel="1" ctl="23" function="transport-stop"/>
<Binding channel="1" ctl="24" function="transport-roll"/>
<Binding channel="1" ctl="20" function="loop-toggle"/>
- <Binding channel="1" ctl="25" function="rec-enable"/>
- <Binding channel="1" ctl="25" function="rec-disable"/>
+ <Binding channel="1" ctl="25" function="toggle-rec-enable"/>
</ArdourMIDIBindings>
<Binding channel="1" ctl="114" function="transport-stop"/>\r
<Binding channel="1" ctl="115" function="transport-roll"/>\r
<Binding channel="1" ctl="116" function="loop-toggle"/>\r
- <Binding channel="1" ctl="117" function="rec-enable"/>\r
- <Binding channel="1" ctl="117" function="rec-disable"/>\r
+ <Binding channel="1" ctl="117" function="toggle-rec-enable"/>\r
\r
<!-- Gain controls. Faders are mapped to faders. -->\r
\r
<!-- Status buttons are mapped to mute toggles. -->\r
<!-- Apparently Solo toggle only works when Automap is used. Sad but true. -->\r
\r
-</ArdourMIDIBindings>
\ No newline at end of file
+</ArdourMIDIBindings>\r
<Binding channel="1" ctl="114" function="transport-stop"/>
<Binding channel="1" ctl="115" function="transport-roll"/>
<Binding channel="1" ctl="116" function="loop-toggle"/>
- <Binding channel="1" ctl="117" function="rec-enable"/>
- <Binding channel="1" ctl="117" function="rec-disable"/>
+ <Binding channel="1" ctl="117" function="toggle-rec-enable"/>
<!-- Gain controls. Faders are mapped to faders. -->
<Binding channel="1" note="86" function="transport-start"/> <!-- FF -->
<Binding channel="1" note="87" function="transport-end"/> <!-- STOP -->
<Binding channel="1" note="88" function="transport-roll"/> <!-- PLAY -->
- <Binding channel="1" note="89" function="rec-enable"/> <!-- REC -->
+ <Binding channel="1" note="89" function="toggle-rec-enable"/> <!-- REC -->
</ArdourMIDIBindings>
<Binding channel="1" ctl="22" function="transport-end"/>
<Binding channel="1" ctl="23" function="transport-stop"/>
<Binding channel="1" ctl="24" function="transport-roll"/>
- <Binding channel="1" ctl="25" function="rec-enable"/>
- <Binding channel="1" ctl="25" function="rec-disable"/>
+ <Binding channel="1" ctl="25" function="toggle-rec-enable"/>
<Binding channel="1" ctl="91" uri="/route/gain B1"/>
<Binding channel="1" ctl="93" uri="/route/gain B2"/>
<!-- one -->
<Binding channel="1" note="40" action="Editor/track-record-enable-toggle"/>
<!-- Two -->
-<Binding channel="1" note="41" function="rec-enable"/>
+<Binding channel="1" note="41" function="toggle-rec-enable"/>