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

Re: [sc-users] MIDIFile



great.  i'll take a look today.



On Dec 27, 2007 1:49 AM, Wouter Snoei <mailinglists@xxxxxxxxxxxxxx> wrote:
Hi William,

I'm not sure why that is there, it might have something to do with
the relative timing common in MIDI files. I would advise you however
to take a look at my library: http://www.woutersnoei.nl/wslib , which
holds a more extensive midifile implementation named
"SimpleMIDIFile". It features all types of MIDI data instead of just
notes, and uses absolute timing instead of relative.

cheers,
Wouter

Op 26-dec-2007, om 4:41 heeft William Brent het volgende geschreven:

> 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
> _______________________________________________
> sc-users mailing list
> sc-users@xxxxxxxxxxxxxxx
> http://www.create.ucsb.edu/mailman/listinfo/sc-users

Wouter Snoei

info@xxxxxxxxxxxxxx
http://www.woutersnoei.nl


_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users



--
William Brent

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

www.conflations.com