detonate : looping a complete MIDI file

Matthieu Rupp's icon

Hey, I'm looking to play on loop a MIDI file through the detonate object. The object will receive various MIDI files of different lengths.

I know this has been discussed here and there on the forum but I still couldn't wrap my head around it, does anyone know how can I trigger this ?

On a side note, I will probably manipulate the tempo so I'm not sure a milisecond-based approach would work for that.