#include "surface.h"
#include "fader.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
/* handlers for all buttons, broken into a separate file to avoid clutter in
* mackie_control_protocol.cc
toggle_punch_in();
return none;
} else {
- access_action ("Editor/start-range-from-playhead");
+ access_action ("Common/start-range-from-playhead");
}
return none;
}
MackieControlProtocol::marker_press (Button &)
{
if (main_modifier_state() & MODIFIER_SHIFT) {
- access_action ("Editor/remove-location-from-playhead");
+ access_action ("Common/remove-location-from-playhead");
return off;
} else {
_modifier_state |= MODIFIER_MARKER;
{
_modifier_state &= ~MODIFIER_MARKER;
- if (main_modifier_state() & MODIFIER_SHIFT)
+ if (main_modifier_state() & MODIFIER_SHIFT) {
return off; //if shift was held, we already did the action
+ }
if (marker_modifier_consumed_by_button) {
+ DEBUG_TRACE (DEBUG::MackieControl, "marked modifier consumed by button, ignored\n");
/* marker was used a modifier for some other button(s), so do
nothing
*/
return off;
}
- session->locations()->next_available_name (markername,"marker");
+ session->locations()->next_available_name (markername,"mark");
add_marker (markername);
return off;
if (modifier_state() & MODIFIER_MARKER) {
prev_marker ();
} else if (modifier_state() & MODIFIER_NUDGE) {
- access_action ("Editor/nudge-playhead-backward");
+ access_action ("Common/nudge-playhead-backward");
} else if (main_modifier_state() & MODIFIER_SHIFT) {
goto_start ();
} else {
if (modifier_state() & MODIFIER_MARKER) {
next_marker ();
} else if (modifier_state() & MODIFIER_NUDGE) {
- access_action ("Editor/nudge-playhead-forward");
+ access_action ("Common/nudge-playhead-forward");
} else if (main_modifier_state() & MODIFIER_SHIFT) {
goto_end();
} else {
MackieControlProtocol::loop_press (Button &)
{
if (main_modifier_state() & MODIFIER_SHIFT) {
- access_action ("Editor/set-loop-from-edit-range");
+ access_action ("Common/set-loop-from-edit-range");
return off;
} else {
bool was_on = session->get_play_loop();
- session->request_play_loop (!was_on);
+ loop_toggle ();
return was_on ? off : on;
}
}
return on;
}
+/* F-KEYS are only used for actions that are bound from the control panel; no need to address them here
LedState
MackieControlProtocol::F1_press (Button &b)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F1_release (Button &b)
{
- return bank_release (b, 0);
+ return off;
}
LedState
MackieControlProtocol::F2_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F2_release (Button &b)
{
- return bank_release (b, 1);
+ return off;
}
LedState
MackieControlProtocol::F3_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F3_release (Button &b)
{
- return bank_release (b, 2);
+ return off;
}
LedState
MackieControlProtocol::F4_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F4_release (Button &b)
{
- return bank_release (b, 3);
+ return off;
}
LedState
MackieControlProtocol::F5_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F5_release (Button &)
LedState
MackieControlProtocol::F6_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F6_release (Button &)
LedState
MackieControlProtocol::F7_press (Button &)
{
- return off;
+ return on;
}
LedState
MackieControlProtocol::F7_release (Button &)
LedState
MackieControlProtocol::F8_press (Button &)
{
- CloseDialog (); /* EMIT SIGNAL */
- return off;
+ return on;
}
LedState
MackieControlProtocol::F8_release (Button &)
{
return off;
}
+*/
+
/* UNIMPLEMENTED */
// clears all solos and listens (pfl/afl)
if (main_modifier_state() & MODIFIER_SHIFT) {
- access_action ("Editor/set-session-from-edit-range");
+ access_action ("Common/set-session-from-edit-range");
return none;
}
- if (session) {
- session->set_controls (route_list_to_control_list (session->get_routes(), &Stripable::solo_control), 0.0, Controllable::NoGroup);
- session->clear_all_solo_state (session->get_routes());
- }
+ cancel_all_solo ();
return none;
}
Mackie::LedState
MackieControlProtocol::inputs_press (Mackie::Button&)
{
+#ifdef MIXBUS
+ set_view_mode (Mixer); //in Mixbus, this is the same as Global View (avoid dead buttons)
+#endif
return none;
}
Mackie::LedState
Mackie::LedState
MackieControlProtocol::audioinstruments_press (Mackie::Button& b)
{
+#ifdef MIXBUS
+ set_view_mode (MidiTracks); //in Mixbus, we do the same thing as MIDI Tracks ( aviod dead buttons )
+#endif
return none;
}
toggle_punch_out();
return none;
} else {
- access_action ("Editor/finish-range-from-playhead");
+ access_action ("Common/finish-range-from-playhead");
}
return none;
}
MackieControlProtocol::click_press (Mackie::Button&)
{
if (main_modifier_state() & MODIFIER_SHIFT) {
- access_action ("Editor/set-punch-from-edit-range");
+ access_action ("Common/set-punch-from-edit-range");
return off;
} else {
bool state = !Config->get_clicking();