[PD] Midifile Object

Martin Peach martin.peach at sympatico.ca
Thu Feb 28 02:14:03 CET 2008


patrick wrote:
> if you can clean up midifile a bit (no offense martin!) so that we can load 
> a midi and play the song with some simple sound (can be osc~ for piano, 
> phasor~ for bass, noise~ for snare etc...). that would be neat. actually, i

I just checked in a new help file that uses some [osc~]s for the first 
few channels.

> was working with midifile for loading channel 10 (drums) but i am having 
> some problem with note-on / note-off (properly play the kick, snare). also

Some files use the MIDI noteoff message for note offs and others use 
noteon with velocity zero. Possibly drum tracks use only note ons and 
never send any note offs.

> when i load a midifile, there's like 5 sec. with no sound when pressing 
> play. bref, i will investigate more but if we can come up with a good 
> demo...

I've noticed a lot of midi files have a few seconds of nothing at the 
beginning as though they were made by recording a keyboard live (or they 
set up a bunch of controls before starting). If you note the tick at 
which the sound starts you can just specify that offset to [midifile] 
and start there.

Martin




More information about the Pd-list mailing list