I've made a prototype patch to do some granular synthesis of real-time stream (not sound-file based). It uses a delay line (tapin~, tapout~) as a buffer to read from.
The subpatch in this posted patch will form the guts of a poly~, but i am already experiencing bad timing problems even with this simple patch, as illustrated. Up to +-10ms inaccuracy is experienced (macbook pro os10.6.8). As you can see the timing of the metro that triggers the grains is fine; but the line~ object output is all wonky
I've tried all sorts of scheduler and audio settings and cannot figure out what the problem is.
I've actually already implemented this in a poly~, and also done a poly~fied gen~ version, and still there is the timing problem.
Any suggestions greatly appreciated.