mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
first functioning MIDI clip recording (GUI)
This commit is contained in:
parent
ac4bb55f13
commit
fa6da8818f
1 changed files with 11 additions and 1 deletions
|
|
@ -593,7 +593,17 @@ TriggerEntry::play_button_event (GdkEvent* ev)
|
|||
switch (ev->type) {
|
||||
case GDK_BUTTON_PRESS:
|
||||
if (ev->button.button == 1) {
|
||||
if (Keyboard::modifier_state_equals (ev->button.state, Keyboard::PrimaryModifier)) {
|
||||
if (trigger()->box().record_enabled()) {
|
||||
/* this is a record button */
|
||||
if (trigger()->armed()) {
|
||||
std::cerr << "Disarm\n";
|
||||
trigger()->disarm ();
|
||||
} else {
|
||||
std::cerr << "Arm\n";
|
||||
trigger()->arm ();
|
||||
}
|
||||
return true;
|
||||
} else if (Keyboard::modifier_state_equals (ev->button.state, Keyboard::PrimaryModifier)) {
|
||||
trigger ()->box ().stop_all_immediately ();
|
||||
} else {
|
||||
trigger ()->box ().stop_all_quantized ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue