summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
diff options
context:
space:
mode:
authorNil Geisweiller <ngeiswei@gmail.com>2015-11-29 14:03:01 +0200
committerRobin Gareus <robin@gareus.org>2015-12-22 04:52:50 +0100
commitef393f5a888a64448dfbf534e12722697a5e21f8 (patch)
treef74ec0f95a2871d8227afde680d5410252dd49ff /gtk2_ardour/midi_region_view.cc
parent591c9bf0d48643437ee74de99f9a9ae9d8d5a75b (diff)
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.
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r--gtk2_ardour/midi_region_view.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc
index 3a3fe58be9..ea51a94da6 100644
--- a/gtk2_ardour/midi_region_view.cc
+++ b/gtk2_ardour/midi_region_view.cc
@@ -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: