From 1df1d86562f97a5b7763251b55d70b498ee91488 Mon Sep 17 00:00:00 2001 From: imhcyx <3443722+imhcyx@users.noreply.github.com> Date: Thu, 31 Aug 2017 08:34:18 +0800 Subject: [PATCH 1/2] fix seq time scale issue --- fluidsynth/src/midi/fluid_seq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fluidsynth/src/midi/fluid_seq.c b/fluidsynth/src/midi/fluid_seq.c index 739b7a70..5596da08 100644 --- a/fluidsynth/src/midi/fluid_seq.c +++ b/fluidsynth/src/midi/fluid_seq.c @@ -1207,6 +1207,8 @@ _fluid_seq_queue_send_queued_events(fluid_sequencer_t* seq) /* process queue0[cellNb] */ _fluid_seq_queue_send_cell_events(seq, cellNb); + /* the current tick may have changed */ + nowTicks = fluid_sequencer_get_tick(seq); /* next cell */ cellNb++; From 56a2ce1fa4e028c7f876a369b8325f6076fec277 Mon Sep 17 00:00:00 2001 From: Tom M Date: Fri, 1 Sep 2017 14:50:34 +0200 Subject: [PATCH 2/2] clarify comment --- fluidsynth/src/midi/fluid_seq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluidsynth/src/midi/fluid_seq.c b/fluidsynth/src/midi/fluid_seq.c index 5596da08..b97ff4de 100644 --- a/fluidsynth/src/midi/fluid_seq.c +++ b/fluidsynth/src/midi/fluid_seq.c @@ -1204,10 +1204,10 @@ _fluid_seq_queue_send_queued_events(fluid_sequencer_t* seq) _fluid_seq_queue_slide(seq); } /* slide */ - /* process queue0[cellNb] */ _fluid_seq_queue_send_cell_events(seq, cellNb); - /* the current tick may have changed */ + + /* the current scale may have changed through a callback event */ nowTicks = fluid_sequencer_get_tick(seq); /* next cell */