I did some small, but important improvements to the looper:
- The dynamic allocation of a buffer is now working (I forgot to push it)
- The recorded buffer is immediately added to SuperDirt. So it is possible to access the buffer while it is written (canon structures incoming!)
@yaxu that means you don't need the legato
anymore and the buffers will be created and written correctly (no gaps anymore!). Overlapping of recordings and buffers occurred because the length of the samples was not set. Now you can even do something like this:
d1 $ trigger 1 $ slow 8 $ s "loop" # lnr "<0 ~>" # linput 16
d2 $ trigger 2 $ slow 2 $ s "loop0" # pan "<0 0.25 0.5 0.75>"
I take advantag of the fact that TidalCycles always triggers a buffer from the beginning, regardless of its length. I record the canon "Brother John" - in German "Bruder Jakob" to demonstrate this and mess around with the speed of the loops in the second iteration. You can find the recording here: https://info-grund.com/owncloud/index.php/s/nyn4hb9e2L1FjJF
So what is the result of this? I don't know, maybe some kind of multylayering canon structures? 
And if you want to start the recording from the beginning, then the length of playback and recording should be the same. That's it!