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 http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
Am Freitag, 9. August 2024, 13:50:12 CEST schrieb Dan Wilcox:
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.
Thanks for the hint. Anyway, mostly I use the representation of notes with duration, not note on/ off, So the idea was to a parameter to fade between using note on times and note off times in reverse and also limit the duration if tempo is zero.
So the idea read in a midifile and convert to two textfiles with noteon times and noteoff times and duration so I can handle it better. without losing noteoffs or noteons.
This reminds me of wanting to add a way to arbitrarily seek forward to a time with [text]...
so handling absolute timestamps in a text sequencer would be cool too ;-).
mfg winfried
Dan Wilcox danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/