There is also the [c_seqplay] abstraction in rjlib which can playback txt files output from [seq] by Max or Cyclone's seq. It's pure vanilla, so once you have done the conversion, you don't need additional externals for playing. It was written before [text] and uses [textfile] so maybe useful to examine as a reference?
https://github.com/rjdj/rjlib https://github.com/rjdj/rjlib
That being said, I also use mrpeach midifile to work with MIDI directly. I have a wrapper, [c_midiplay], in my rc-bastractions which outputs to the internal messaging so you can receive events visa the traditional [notein], [ctlin], etc objects:
https://github.com/danomatika/rc-patches https://github.com/danomatika/rc-patches
On Apr 22, 2023, at 12:00 PM, pd-list-request@lists.iem.at wrote:
Message: 1 Date: Sat, 22 Apr 2023 07:46:28 +0200 From: "Peter P." <peterparker@fastmail.com mailto:peterparker@fastmail.com> To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: [PD] midi file into [text sequence]? Message-ID: <20230422054628.vf2qzum6s2yxrbj2@fastmail.com mailto:20230422054628.vf2qzum6s2yxrbj2@fastmail.com> Content-Type: text/plain; charset=us-ascii
Hi,
starting to use [text sequence] instead of [qlist] more and more, I am wondering how difficult it might be to write an external script that converts .mid file into .txt usable by [textfile sequence]?
Has anyone attempted something similar already? What would be the easiest language and/or libraries to do this on DebianGNU Linux?
Thanks! Peter
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/