Remove shortening inserted notes by one tick
I don't think this is necessary, if some synth cannot deal with that, perhaps Ardour could try to send the note off right before the next note on, even-though they supposedly occur simultaneously.
This commit is contained in:
parent
591c9bf0d4
commit
ef393f5a88
|
@ -554,12 +554,6 @@ MidiRegionView::button_release (GdkEventButton* ev)
|
|||
group->canvas_to_item (event_x, event_y);
|
||||
|
||||
Evoral::Beats beats = get_grid_beats(editor.pixel_to_sample(event_x));
|
||||
|
||||
/* Shorten the length by 1 tick so that we can add a new note at the next
|
||||
grid snap without it overlapping this one.
|
||||
*/
|
||||
beats -= Evoral::Beats::tick();
|
||||
|
||||
create_note_at (editor.pixel_to_sample (event_x), event_y, beats, true);
|
||||
} else {
|
||||
clear_selection ();
|
||||
|
@ -570,14 +564,7 @@ MidiRegionView::button_release (GdkEventButton* ev)
|
|||
case MouseDraw:
|
||||
{
|
||||
Evoral::Beats beats = get_grid_beats(editor.pixel_to_sample(event_x));
|
||||
|
||||
/* Shorten the length by 1 tick so that we can add a new note at the next
|
||||
grid snap without it overlapping this one.
|
||||
*/
|
||||
beats -= Evoral::Beats::tick();
|
||||
|
||||
create_note_at (editor.pixel_to_sample (event_x), event_y, beats, true);
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user