mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
push2: master button now does something useful
This commit is contained in:
parent
3aa0676f70
commit
f35c5fd5a6
2 changed files with 18 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ Push2::build_maps ()
|
|||
MAKE_COLOR_BUTTON_PRESS (Lower6, 25, &Push2::button_lower_6);
|
||||
MAKE_COLOR_BUTTON_PRESS (Lower7, 26, &Push2::button_lower_7);
|
||||
MAKE_COLOR_BUTTON_PRESS (Lower8, 27, &Push2::button_lower_8);
|
||||
MAKE_COLOR_BUTTON (Master, 28);
|
||||
MAKE_COLOR_BUTTON_PRESS (Master, 28, &Push2::button_master);
|
||||
MAKE_COLOR_BUTTON_PRESS (Mute, 60, &Push2::button_mute);
|
||||
MAKE_COLOR_BUTTON_PRESS_RELEASE_LONG (Solo, 61, &Push2::relax, &Push2::button_solo, &Push2::button_solo_long_press);
|
||||
MAKE_COLOR_BUTTON_PRESS (Stop, 29, &Push2::button_stop);
|
||||
|
|
@ -583,6 +583,22 @@ Push2::button_mix_press ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Push2::button_master ()
|
||||
{
|
||||
boost::shared_ptr<Stripable> master = session->master_out();
|
||||
|
||||
if (!master) {
|
||||
return;
|
||||
}
|
||||
|
||||
ControlProtocol::SetStripableSelection (master);
|
||||
|
||||
if (_current_layout != track_mix_layout) {
|
||||
set_current_layout (track_mix_layout);
|
||||
}
|
||||
}
|
||||
|
||||
std::string
|
||||
Push2::button_name_by_id (ButtonID id)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -469,6 +469,7 @@ class Push2 : public ARDOUR::ControlProtocol
|
|||
void button_fwd4 ();
|
||||
void button_add_track ();
|
||||
void button_stop ();
|
||||
void button_master ();
|
||||
void button_shift_press ();
|
||||
void button_shift_release ();
|
||||
void button_shift_long_press ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue