13
0

resolved notes need to use cycle-relative time

This commit is contained in:
Paul Davis 2019-11-06 09:07:12 -07:00
parent cd7fc3711a
commit d5cfc898e4

View File

@ -1126,9 +1126,10 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplepos_t start_sample, sample
if (cnt) {
/* We re going to have to read across the loop end. Resolve any notes the extend across the loop end
/* We re going to have to read across the loop end. Resolve any notes the extend across the loop end.
* Time is relative to start_sample.
*/
_tracker.resolve_notes (*target, loc->end() - 1);
_tracker.resolve_notes (*target, (loc->end() - 1) - start_sample);
}
} while (cnt);