From 81e24f4239feb50398dc58fa5cf2207443b03148 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 20 Sep 2020 12:52:16 -0700 Subject: [PATCH] Sequencer: Fix off-by-one bug preventing notes from being inserted ahead of other notes. --- sequencer/src/canvas.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sequencer/src/canvas.C b/sequencer/src/canvas.C index ba3509a..3664a3c 100644 --- a/sequencer/src/canvas.C +++ b/sequencer/src/canvas.C @@ -1585,12 +1585,12 @@ Canvas::handle ( int m ) ghost_note->start = this->m.grid->x_to_ts( dx ); ghost_note->note = dy; - ghost_note->duration = this->m.grid->default_length(); + ghost_note->duration = this->m.grid->default_length() - 1; ghost_note->velocity = 64; drag_note->start = this->m.grid->x_to_ts( dx ); drag_note->note = dy; - drag_note->duration = this->m.grid->default_length(); + drag_note->duration = this->m.grid->default_length() - 1; drag_note->velocity = 64;