is there a possibility to load a WAV. file, which contains MIDI, or a MIDI file into PD? without using externals?
Thank you in advance!
Load MIDI File into PD without externals
If you open a .mid file with a text reader you will see that it contains an incomprehensible jumble of symbols.
A wav file will be audio.... not midi.
BUT..... in the sfruit library was an abstraction....... midi-stream.zip .... which you could play your midi track into from an external program in real time (you will need "midipipe" or similar to stream the midi into Pd).
It adds timing information and then you could save the lists (one for each note) into [text] for sequencing...... and save the song to a .txt file for later.
a WAV file is audio data and cannot contain MIDI (Musical Instrument Digital Interface) information.
A midi file, (usually .mid) contains a sequence of midi events - coded messages to be interpreted by midi instruments or software. A midi file can contain information on pitch, velocity, etc
You say the wav file 'contains the midi audio signal' - perhaps you or someone else has used software that renders a midi file as wav audio? If this is the case you need to go back to the original midi file if you want to work with that data.
@moosi You can extract some information from a wav audio file and turn it into midi using some Pd tools like [sigmund~] and [bonk~]....... and Katja Vetter made an excellent tool..... https://www.katjaas.nl/helmholtz/helmholtz.html .....
The results might be ok with low frequencies but as frequency and complexity increase (percussion, multiple instruments) the usefulness will diminish.
For any track other than a simple bass line it will be pretty hopeless...... and maybe not even great for that.
There have been some attempts at commercial software for this... but they are all a waste of money and you would be better off transcribing the track and playing it yourself on a midi keyboard.