Add region position to note start in the midi list editor

This commit is contained in:
Nil Geisweiller 2016-09-28 23:09:46 +03:00 committed by Paul Davis
parent 8098c7785f
commit 651fb79818

View file

@ -764,7 +764,7 @@ MidiListEditor::redisplay_model ()
row[columns.note] = (*i)->note();
row[columns.velocity] = (*i)->velocity();
Timecode::BBT_Time bbt (_session->tempo_map().bbt_at_frame (conv.to ((*i)->time())));
Timecode::BBT_Time bbt (_session->tempo_map().bbt_at_frame (region->position() + conv.to ((*i)->time())));
ss.str ("");
ss << bbt;