<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi David, <div><br></div><div>Aside from documentation you can find here:</div><div><a href="https://ccrma.stanford.edu/~spencer/ckdoc/io.html#MidiFileIn">https://ccrma.stanford.edu/~spencer/ckdoc/io.html#MidiFileIn</a></div><div><br></div><div>there is an example of usage included with chuck: </div><div><a href="https://github.com/ccrma/chuck/blob/main/examples/midi/playmidi.ck">https://github.com/ccrma/chuck/blob/main/examples/midi/playmidi.ck</a></div><div><br></div><div>In essence, MidiFileIn gives you an ordered list of timestamped MIDI messages (class MidiMsg documented on that same page). ChucK doesn&#39;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:</div><div><a href="https://www.cs.cmu.edu/~music/cmsip/readings/davids-midi-spec.htm">https://www.cs.cmu.edu/~music/cmsip/readings/davids-midi-spec.htm</a><br></div><div><br></div><div>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&#39;t used these myself. </div><div><br></div><div>Spencer</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:12.8px"><br></div></div></div></div></div></div></div></div></div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 24, 2020 at 5:07 PM David Loberg Code &lt;<a href="mailto:d.loberg.code@wmich.edu">d.loberg.code@wmich.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Consolas,Courier,monospace;font-size:11pt;color:rgb(0,0,0)">
Can anyone point me to documentation on the use of the MidiFileIn class?</div>
<div style="font-family:Consolas,Courier,monospace;font-size:11pt;color:rgb(0,0,0)">
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. </div>
<div>
<div style="font-family:Consolas,Courier,monospace;font-size:11pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-26900980113740588Signature">
<div>
<div></div>
<div></div>
<div id="gmail-m_-26900980113740588divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<div style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:13.3333px;background-color:rgb(255,255,255);display:inline">Santé,</span><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:13.3333px;background-color:rgb(255,255,255);display:inline">davd</span></div>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt">-----------------</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt">David Loberg Code</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt">School of Music</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt">Western Michigan</span></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt"><a href="mailto:code@wmich.edu" target="_blank">code@wmich.edu</a></span></p>
<p style="margin-top:0px;margin-bottom:0px"><span style="font-family:Consolas,Courier,monospace;font-size:10pt"><i> any pronouns</i></span></p>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div>