From 69ad86f21555d28f5065923eea06ccc3cc4f4ce5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 1 Apr 2007 18:29:24 +0000 Subject: Fixed missed events (off by one bug comparing time stamps with end of cycle). git-svn-id: http://svn.drobilla.net/lad/machina@388 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/Machine.cpp') diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp index 2857e8b..c61bd4f 100644 --- a/src/engine/Machine.cpp +++ b/src/engine/Machine.cpp @@ -242,7 +242,7 @@ Machine::run(const Raul::TimeSlice& time) // Must do comparison in ticks here to avoid rounding up and executing // an event outside the current cycle } else if (time.beats_to_ticks(earliest->exit_time()) - < time.beats_to_ticks(cycle_end)) { + <= time.beats_to_ticks(cycle_end)) { this_time += earliest->exit_time() - _time; _time = earliest->exit_time(); exit_node(sink, earliest); -- cgit v1.2.1