Hey guys. I’ve been working on a little rhythm/music creator app, but now I’m blocked by timing issues when playing the beats/notes. Basically, when you are playing a rhythm fairly quickly, the 16 millisecond error range from one frame to the next is plenty long enough to cause audible hiccups in the rhythm. I don’t know how to get around that.
As an experiment, I tried limiting the time between beats to integer multiples of the frame time. That cleared up most of the issue, but not quite all, presumably due to occasional framerate changes. Also it’s not really acceptable to limit the playback speed to only those increments; most similar apps on the market allow changing the speed by +/- 1 BPM (beats per minute).
So . . . any ideas? I’m totally boggled as to how people can write apps that play back such precise rhythms.