Hi Joćo ,

You can also play the midi file with an external sequencer and pass it to Pd via a cable or a “virtual cable” and receive with the standard midi objects, [midiin], [notein], [ctlin], etc.

With 1 midi cable you can connect “midi out” to “midi in” and config Pd to just use “midi in” and nothing to “midi out”, on the seq disable “midi in” so both applications don't fight each other to have access to the midi driver.

Or if you are on Windows you can pass midi from one app to another with “loopMIDI”:

http://www.tobias-erichsen.de/software/loopmidi.html
www.tobias-erichsen.de
download loopMIDI. Virtual loopback MIDI cable for Windows XP up to Windows 10, 32 and 64 bit. This software can be used to create virtual loopback MIDI-ports to ...


config the seq to output to loopmidifoo and config Pd midin to loopmidifoo.

Hope this helps,
Lucarda.


Mensaje telepatico asistido por maquinas.



From: Pd-list <pd-list-bounces@lists.iem.at> on behalf of Joćo Pais <jmmmpais@gmail.com>
Sent: Sunday, September 11, 2016 10:03 AM
To: pd-list@lists.iem.at; patrice colet
Subject: Re: [PD] Read midi file into Pd
 
>   The bytes can be converted with [list tosymbol] for getting characters 
> like MThd and MTrk, otherwise it's a MIDI message or an integer.
>
>   I must admit that's not easy to do the parse with internals because 
> this is a bit complicated to make it an abstraction for me, I'll also 
> try out midi.lua with [mrpeach/pdlua].

yes, Pd is still very unefficient on working with symbols, lists, etc.

if you mean http://www.pjb.com.au/comp/lua/MIDI.html#download I tried it, 
but I get an error on pdlua. but no problem, I think I can manage it with 
[midifile].

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list