[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] MIDIFile



can anyone explain the contents of a MIDIFile "scores" element?  i'm using everything successfully, but i'm not totally clear why the elements of a score have to be adjusted in this bit of code from the example file:

score.do({ arg item;
    item.put(0,item.at(0)/(div*tempo/60));
    item.put(1,item.at(1)-1);
});

i guess the first line adjusts midi time code into inter-onset times?  i have no idea what the 2nd line does.  what is the 2nd element of a score entry?  this is my guess at the whole thing:

[midi time code, midi channel, midi note, velocity, real time (in milliseconds?)]

also—are the elements in midifile.scores separated by midi channel?  sorry for the simple questions.  i looked around for a helpfile, but all i can come up with is the example code file, which doesn't explain all the details.


william





--
William Brent

"Great minds flock together"
Conflations: conversational idiom for the 21st century

www.conflations.com