I'm having a play at making an av sampler/looper and I've found a few patches around the place and put them together.
It works pretty much but its a bit buggy.
I've got a phasor~ which is driving the audio buffer and I am taking snapshots of this (25 hz) and doing a bit of division to get the outputmatrix/index count.
Problem is it sometimes skips an index (see Max window in patch below).
Or maybe this isnt the problem - maybe the problem is that there is not always a grabbed frame available when its time to write the matric.
Whichever I seem to get a few dropped frames.
Edit---on closer inspection (by slowing down the phasor on playback) it looks as if jit.matrixset is writing to an index which is never specified by the index message variable. How is this possible? Hmm
Can anyone show me the error of my inexperienced ways?
Thanks. Here's the patch: