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
Hi David,
You can find an example here
https://github.com/ccrma/chuck/blob/main/examples/midi/playmidi.ck
Cheers,
Mario
--
electronic musician, sound artist, creative coder, QA engineer
https://vimeo.com/creativecodingsalerno http://mbuoninfante.tumblr.com https://github.com/mariobuoninfante https://bitbucket.org/mariobuoninfante
25 Oct 2020 01:06:57 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
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
participants (3)
-
David Loberg Code
-
Mario Buoninfante
-
Spencer Salazar