hey guys!
as the paragliding season is coming i want to build a variometer (flying instrument measuring ascent)
that plays some nice loops instead of annoying beeps. i got an old airpressure sensor out of a broken vario and a arduino. i found a sketch that plays simple melodies. now i need to find some data to feed it with.
arduino needs the following format:
int melody[] = {
NOTE_C4, NOTE_G3,NOTE_G3, NOTE_A3, NOTE_G3,0, NOTE_B3, NOTE_C4};
// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
4, 8, 8, 4,4,4,4,4 };
i never worked with midi files so i need your help here.
i want to load midi file in pd, and analyse it there, to output a list of NOTES, and one of DURATIONS, to feed the flash memory with kinky gamboy sounds.
any clues for me how to get NOTE + DURATION out of a midi stream?
thx
Sebastian