Re: A midifile player for pd that can scratch ?

Winfried Ritsch <[email protected]>
Newsgroups gmane.comp.multimedia.puredata.general
Organization Institut für Elektronische Musik und Akustik
Message-ID <3008284.e9J7NaK4W3@ras>
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/>


-- 
- ao.Univ.Prof. DI Winfried Ritsch 
- [email protected] - http://iem.at/ritsch
- Institut fuer Elektronische Musik und Akustik,  University of Music and 
Dramatic Art Graz
- mobil: ++43-664-2439369 Tel. ++43-316-389-3510 (3170)

 ---
Pd-list - [email protected]
https://lists.iem.at/hyperkitty/list/[email protected]/message/D5YPSJJT3ZJSFHW3EYX3OWW326RSITAF/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEYmb0uBkwFuU3tVzVXrZuCcZ6+v8FAma2cB0ACgkQXrZuCcZ6
+v919Qf/T38+LN8gFN55zdA8fK1co7zY1bLQiXEXN8VUFHFieGP5bvc5Dz8uM4ql
CMMQ1jM+C1W3FsEsmHyxSl7n5mEW1w1vK1J6HssSyzi3tdSOQcy1Frxp9hKuZAoW
GVBxXahvumS4FS9TZaZuRLex3aAu22ZtUZn3hJ4LGVDdwGqrnNq19WhdgYNZLxhk
5dwhiajvxYy0V9SS40hyv2MOBy8jtVYVAsuRLE5dKUmcEgmhL+HDzGvcVm77Y3/I
RBXVAMceizGESoZC4Jgx8XJjs3Ff8zFvBk6VbuFqBNo+M0qpuqFSjgjqOaJJtdg9
riTF6oKhOmOYNkfPfVwvdrOlc4ZY7Q==
=Lwmz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.