Forum

Extract and interpret raw data from a midi file

hello !
i would like to interpret into vvvv a midi file…
I would need to extract note on, off, tempo, velocity, pitch…

here’s an example from a simple file:
4D 54 68 64 00 00 00 06 00 01 00 01 03 C0 4D 54 72 6B 00 00 00 18 00 FF 03 00 00 18 3C 7F 00 FF 51 03 1C 21 00 CB 00 81 3C 7F 00 FF 2F 00
here’s what I got…
Guess I need to translate hex into string ?

would you have any simple method do this ? thanks in advance !

alternatively would that help? https://vvvv.org/contribution/midi-file-reader

wow !! this is awesome !
thanks

beta>35 ships with MidiFile (Midi) and MidiTrack (Midi). The former takes a .mid file and the latter (when connected to the former) returns spreads of Channel, Note, Velocity, Start Time, End Time and some meta-info texts for each channel.

available in latest alphas now.
please start a new forum topic if it troubles you.

side note: this is a native VL implementation (ie. not using an external library) and can thus easily be extended if need be.