The mrpeach [midifie] external is what you need.

I have a wrapper for it, [c_midiplay], in my rc-patches which handles the detaisl for playback and forwards all event to [notein], [ctlin], etc for you. Also, rjlib has [c_seqplay] which uses [midifile] to convert the delta timed data into a qlist.

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

On Mar 31, 2015, at 2:03 PM, pd-list-request@lists.iem.at wrote:

From: gnd <gnd@itchybit.org>
To: pd-list@lists.iem.at
Date: March 31, 2015 at 1:59:25 PM EDT
Subject: [PD] playing .mid files in puredata


Hi,

im facing a problem i never encountered. i suspect it might be very
trivial, however i have no clue. I have midi notes from a track exported
in a .mid file:

$ file beat_midi.mid
beat midi.mid: Standard MIDI data (format 0) using 1 track at 1/96

i would like to play the file and get the midi note values into pd
somehow. what would be the best way ?

sorry for this, i guess, ultimately (?) trivial question.

best,

gnd/