mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
do the note brushing thing with 1/128th notes in percussive mode
This commit is contained in:
parent
ebf16b7ece
commit
ea8d0d1a57
1 changed files with 6 additions and 3 deletions
|
|
@ -565,17 +565,20 @@ MidiView::button_press (GdkEventButton* ev)
|
||||||
_editing_context.set_canvas_cursor (_editing_context.cursors()->midi_pencil);
|
_editing_context.set_canvas_cursor (_editing_context.cursors()->midi_pencil);
|
||||||
|
|
||||||
if (_midi_context.note_mode() == Percussive) {
|
if (_midi_context.note_mode() == Percussive) {
|
||||||
draw_drag = new HitCreateDrag (_editing_context, drag_group(), this);
|
if (Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||||
_editing_context.drags()->set (draw_drag, (GdkEvent *) ev);
|
draw_drag = new HitBrushDrag (_editing_context, drag_group(), this, Temporal::Beats (0, 60)); /* 1/128th notes */
|
||||||
|
} else {
|
||||||
|
draw_drag = new HitCreateDrag (_editing_context, drag_group(), this);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
if (Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||||
draw_drag = new HitBrushDrag (_editing_context, drag_group(), this);
|
draw_drag = new HitBrushDrag (_editing_context, drag_group(), this);
|
||||||
} else {
|
} else {
|
||||||
draw_drag = new NoteCreateDrag (_editing_context, drag_group(), this);
|
draw_drag = new NoteCreateDrag (_editing_context, drag_group(), this);
|
||||||
}
|
}
|
||||||
_editing_context.drags()->set (draw_drag, (GdkEvent *) ev);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_editing_context.drags()->set (draw_drag, (GdkEvent *) ev);
|
||||||
remove_ghost_note ();
|
remove_ghost_note ();
|
||||||
hide_verbose_cursor ();
|
hide_verbose_cursor ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue