Hi David,
Aside from documentation you can find here:
https://ccrma.stanford.edu/~spencer/ckdoc/io.html#MidiFileIn
there is an example of usage included with chuck:
https://github.com/ccrma/chuck/blob/main/examples/midi/playmidi.ck
In essence, MidiFileIn gives you an ordered list of timestamped MIDI
messages (class MidiMsg documented on that same page). ChucK doesn't do
much to interpret the messages other than give you the 1-3 bytes in the
message, but there are many resources online for how to interpret these,
such as:
https://www.cs.cmu.edu/~music/cmsip/readings/davids-midi-spec.htm
Ive seen some ChucK classes floating around that help out with interpreting
different MIDI message types (noteOn/off, control change, etc.) from the
1-3 byte messages though I haven't used these myself.
Spencer
On Sat, Oct 24, 2020 at 5:07 PM David Loberg Code
Can anyone point me to documentation on the use of the MidiFileIn class? I know that it has member functions such as .open(), .read(), .rewind(), etc., but am looking for examples of how you would use it to read and play a MIDI file in ChucK.
Santé, davd
-----------------
David Loberg Code
School of Music
Western Michigan
code@wmich.edu
* any pronouns* _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users