summaryrefslogtreecommitdiff
path: root/muse2/muse/synth.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-16 22:18:00 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-16 22:18:00 +0000
commitead1d513257aeed4199075c1ea5266c560992227 (patch)
tree025b480b1fb61c9cc44213e53264704d9d3a58d9 /muse2/muse/synth.cpp
parent062b07f0cb5a27bf5508af692b0b533a66a1bbd6 (diff)
write to the right track and stuff
Diffstat (limited to 'muse2/muse/synth.cpp')
-rw-r--r--muse2/muse/synth.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/muse2/muse/synth.cpp b/muse2/muse/synth.cpp
index 349707c9..13e3baa3 100644
--- a/muse2/muse/synth.cpp
+++ b/muse2/muse/synth.cpp
@@ -941,12 +941,9 @@ iMPEvent MessSynthIF::getData(MidiPort* mp, MPEventList* el, iMPEvent i, unsigne
if (evTime == 0) {
// printf("MessSynthIF::getData - time is 0!\n");
// continue;
- evTime=frameOffset; // will cause frame to be zero, problem?
+ evTime=abs(frameOffset); // will cause frame to be zero, problem?
}
- int frame = evTime - frameOffset;
-
-//TODO if (frame > 0) // robert: ugly fix, don't really know what is going on here
-// // makes PPC work much better.
+ int frame = evTime - abs(frameOffset);
if (frame >= endPos) {
printf("frame > endPos!! frame = %d >= endPos %d, i->time() %d, frameOffset %d curPos=%d\n", frame, endPos, i->time(), frameOffset,curPos);