Am Donnerstag, 8. August 2024, 20:00:15 CEST schrieb João Pais:
how about a patch that reads the midifile and stores the data, which you
then play as you wish? for an instalation I'm working on, I prepared a
patch that reads a midifile with +50K events, puts them into a data
structures "score", and then the info can be used for playback. It's not
"one object", but it does what you wish.


Thanks, using data structures is a nice idea. Somehow once (15+ years ago) 
used them but where slow doing tracing objects, but maybe the new 
implementation is more usable.

The problem is how to handle noteon/off in reverse, there should be different 
modes. So mabe I store it in reverse order in another text.

Maybe change the custom format to store on/off pairs with timestamps on both instead of MIDI-style delta on+duration? It would take more space but make reverse playback easier sine you don't have to seek backwards as much. For something more complex like this, I feel it's easier to build a custom sequencer with something like pdlua.

This reminds me of wanting to add a way to arbitrarily seek forward to a time with [text]...

--------
Dan Wilcox
danomatika.com
robotcowboy.com