Some new midi objects and a patch. They're untested in version 2, and most likely won't work. I'll update them when I finally move on to 2...
Midi looper objects.
A suite of objects to make a midi looper patch.
There's a "midi looper" patch in the matroe folder, and a copy of it as a help patch:
It works in a similar way to ableton's session view clipslots; If you trigger an empty clip it starts recording at the beginning of the next bar. If you trigger it again, or it reaches the maximum bar length, it stops recording and plays at the next bar.
The patch is setup to record channel 10 and send it to DIN, with 8 clipslots available with a max length of 4 bars each.
This is all adjustable, you can change channel or output and have a longer maximum length and more or less slots, but the size of table needed will change depending on settings and they can get pretty big.
It records notes, pitch bend, CCs and mono aftertouch (poly touch version is in the works). It is 16 note polyphonic and can quantize notes to 16ths. It has an "erase shift" - if on and you hold a note, that note is deleted from the loop.
It has an internal clock and metronom, and can send clock, but will automatically switch to an incoming midi clock and start/stop messages if received.
Let me know if you come across any problems, but it seems stable in my tests so far.