<div dir="ltr">I would second Christof's thought, fyi ruby has a pretty good MIDI library (eg midilib).</div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-09 10:54 GMT+02:00 Christof Ressi <span dir="ltr"><<a href="mailto:christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">personally, I'd first process the MIDI file with a scripting language and create a simple text file, containing only data which is meaningful to you and formatted in a way that is easily understood by Pd (e.g. lines of text separated by semicolons).<br>
<br>
> Gesendet: Freitag, 09. September 2016 um 10:36 Uhr<br>
> Von: "João Pais" <<a href="mailto:jmmmpais@gmail.com">jmmmpais@gmail.com</a>><br>
> An: <a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>, "patrice colet" <<a href="mailto:colet.patrice@free.fr">colet.patrice@free.fr</a>><br>
> Betreff: Re: [PD] Read midi file into Pd<br>
<div class="HOEnZb"><div class="h5">><br>
> > Another way would be about using [mrpeach/binfile] and parse the file<br>
> > with internals following MIDI reference we can find in following link<br>
> > for example:<br>
> ><br>
> > <a href="http://www.ccarh.org/courses/253/assignment/midifile/" rel="noreferrer" target="_blank">http://www.ccarh.org/courses/<wbr>253/assignment/midifile/</a><br>
> ><br>
> > The first meta message should be obtained with [list split 23] where<br>
> > second byte gives the meta message number, the third byte gives message<br>
> > lenght and so on<br>
><br>
> that could be an interesting way, but I get the output not as lists, but<br>
> as individual bins. Which means that somehow the bytes would have to be<br>
> wrapped to make those lists?<br>
><br>
> Best,<br>
><br>
> Joao<br>
><br>
> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><a href="http://b2renger.github.io/" target="_blank">http://b2renger.github.io/</a><br></div><div dir="ltr"><a href="http://berengerrecoules.wordpress.com/" target="_blank">http://berengerrecoules.wordpress.com/</a><br></div></div></div></div>
</div>