Hello list,
just to know, besides [mrpeach/midifile], is there any other way of
reading a midi file into Pd, and list the events/metadata/etc. inside?
Best,
jmmmp
I think [cyclone/seq] can do that if I'm not mistaken.
2016-09-07 19:21 GMT+02:00 João Pais jmmmpais@gmail.com:
Hello list,
just to know, besides [mrpeach/midifile], is there any other way of reading a midi file into Pd, and list the events/metadata/etc. inside?
Best,
jmmmp
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/li stinfo/pd-list
Yes, but with many limitations - all tracks are mixed, etc...
Am 07.09.2016 8:00 nachm. schrieb "Berenger Recoules" < berenger.recoules@gmail.com>:
I think [cyclone/seq] can do that if I'm not mistaken.
2016-09-07 19:21 GMT+02:00 João Pais jmmmpais@gmail.com:
Hello list,
just to know, besides [mrpeach/midifile], is there any other way of
reading a midi file into Pd, and list the events/metadata/etc. inside?
Best,
jmmmp
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
-- http://b2renger.github.io/ http://berengerrecoules.wordpress.com/
2016-09-07 18:58 GMT-03:00 João Pais jmmmpais@gmail.com:
Yes, but with many limitations - all tracks are mixed, etc...
yes, all tracks are combined to one. But other than that, what's the limitation? And what about mrpeach/midifile? And why do you look for something other than the two of them, what do you need?
cheers
yes, all tracks are combined to one. But other than that, what's the
limitation? And what about mrpeach/midifile? And why do you look forsomething other than the two of them, what do you need?
that is already a very big limitation, as the original file has 9 tracks
(for now, maybe more afterwards).
As I wrote, I need to read a midifile, so that I can "convert" the score
to Pd (using data structures).
Best,
Joao
Another way would be about using [mrpeach/binfile] and parse the file with internals following MIDI reference we can find in following link for example:
http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where second byte gives the meta message number, the third byte gives message lenght and so on
Le 07/09/2016 à 23:58, João Pais a écrit :
Yes, but with many limitations - all tracks are mixed, etc...
Am 07.09.2016 8:00 nachm. schrieb "Berenger Recoules" <berenger.recoules@gmail.com mailto:berenger.recoules@gmail.com>:
I think [cyclone/seq] can do that if I'm not mistaken.
2016-09-07 19:21 GMT+02:00 João Pais <jmmmpais@gmail.com
Hello list,
just to know, besides [mrpeach/midifile], is there any other way of
reading a midi file into Pd, and list the events/metadata/etc. inside?
Best,
jmmmp
Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
-- http://b2renger.github.io/ http://berengerrecoules.wordpress.com/
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[cyclone/mtr] can be useful for recording some midi messages and others
2016-09-08 0:14 GMT-03:00 patrice colet colet.patrice@free.fr:
Another way would be about using [mrpeach/binfile] and parse the file with internals following MIDI reference we can find in following link for example:
http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where second byte gives the meta message number, the third byte gives message lenght and so on
Le 07/09/2016 à 23:58, João Pais a écrit :
Yes, but with many limitations - all tracks are mixed, etc...
Am 07.09.2016 8:00 nachm. schrieb "Berenger Recoules" < berenger.recoules@gmail.com mailto:berenger.recoules@gmail.com>:
I think [cyclone/seq] can do that if I'm not mistaken.
2016-09-07 19:21 GMT+02:00 João Pais <jmmmpais@gmail.com <mailto:
jmmmpais@gmail.com>>:
Hello list,
just to know, besides [mrpeach/midifile], is there any other way of
reading a midi file into Pd, and list the events/metadata/etc. inside?
Best,
jmmmp
Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/li
stinfo/pd-list
-- http://b2renger.github.io/ http://berengerrecoules.wordpress.com/
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/li stinfo/pd-list
-- Patrice Colet fr: 0632660357
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/li stinfo/pd-list
Another way would be about using [mrpeach/binfile] and parse the file
with internals following MIDI reference we can find in following link
for example:http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where
second byte gives the meta message number, the third byte gives message
lenght and so on
that could be an interesting way, but I get the output not as lists, but
as individual bins. Which means that somehow the bytes would have to be
wrapped to make those lists?
Best,
Joao
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).
Gesendet: Freitag, 09. September 2016 um 10:36 Uhr Von: "João Pais" jmmmpais@gmail.com An: pd-list@lists.iem.at, "patrice colet" colet.patrice@free.fr Betreff: Re: [PD] Read midi file into Pd
Another way would be about using [mrpeach/binfile] and parse the file
with internals following MIDI reference we can find in following link
for example:http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where
second byte gives the meta message number, the third byte gives message
lenght and so onthat could be an interesting way, but I get the output not as lists, but
as individual bins. Which means that somehow the bytes would have to be
wrapped to make those lists?Best,
Joao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
I would second Christof's thought, fyi ruby has a pretty good MIDI library (eg midilib).
2016-09-09 10:54 GMT+02:00 Christof Ressi christof.ressi@gmx.at:
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).
Gesendet: Freitag, 09. September 2016 um 10:36 Uhr Von: "João Pais" jmmmpais@gmail.com An: pd-list@lists.iem.at, "patrice colet" colet.patrice@free.fr Betreff: Re: [PD] Read midi file into Pd
Another way would be about using [mrpeach/binfile] and parse the file with internals following MIDI reference we can find in following link for example:
http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where second byte gives the meta message number, the third byte gives message lenght and so on
that could be an interesting way, but I get the output not as lists, but as individual bins. Which means that somehow the bytes would have to be wrapped to make those lists?
Best,
Joao
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/
listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
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).
As for example using GNU octave and Ken Schutte's scripts for reading and writing midi files http://kenschutte.com/midi
that's a good idea, unfortunately I can only program in Pd. I'll then use
midifile, it seems that the result is the same.
thanks,
joao
- Christof Ressi christof.ressi@gmx.at [2016-09-09 04:54]:
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).As for example using GNU octave and Ken Schutte's scripts for reading and writing midi files http://kenschutte.com/midi
Le 09/09/2016 à 10:36, João Pais a écrit :
Another way would be about using [mrpeach/binfile] and parse the file with internals following MIDI reference we can find in following link for example:
http://www.ccarh.org/courses/253/assignment/midifile/
The first meta message should be obtained with [list split 23] where second byte gives the meta message number, the third byte gives message lenght and so on
that could be an interesting way, but I get the output not as lists, but as individual bins. Which means that somehow the bytes would have to be wrapped to make those lists?
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].
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].
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 loopMIDI | Tobias Erichsenhttp://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