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?
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:
Message: 1Date: Sat, 22 Apr 2023 07:46:28 +0200From: "Peter P." <peterparker@fastmail.com>To: pd-list@lists.iem.atSubject: [PD] midi file into [text sequence]?Message-ID: <20230422054628.vf2qzum6s2yxrbj2@fastmail.com>Content-Type: text/plain; charset=us-asciiHi,starting to use [text sequence] instead of [qlist] more and more, I amwondering how difficult it might be to write an external script thatconverts .mid file into .txt usable by [textfile sequence]?Has anyone attempted something similar already? What would be theeasiest language and/or libraries to do this on DebianGNU Linux?Thanks!Peter