From ce8a248247f25df6809b24c1caff1ba86d26a667 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 10 Jul 2024 17:20:29 +0200 Subject: [PATCH] fix offset comparison --- synth/voice_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth/voice_allocator.h b/synth/voice_allocator.h index f9b6984..0009459 100644 --- a/synth/voice_allocator.h +++ b/synth/voice_allocator.h @@ -139,7 +139,7 @@ private: while (iterator != input_queue.end()) { midi_event& event = *iterator; - if (event.offset == _start_index) { + if (event.offset == s) { switch (event.type) { case midi_event_type::note_on: