Hi list,<br><br>Contrary to what I thought ChucK&#39;s midi out can be used to send messages of lengths other then 3 bytes.<br>------------------<br>MidiOut mout;<br>MidiMsg msg;<br>mout.open(0);<br><br>//refers to a program change on the first channel
<br>//add to it for following channels<br>192 =&gt; msg.data1;<br>//refers to the program to be loaded<br>4 =&gt; msg.data2;<br><br>mout.send(msg);<br>----------------<br><br>This should load the 5th program of the current bank on channel 1. &quot;
msg.data3&quot; can be left blank or set to 0. Strictly speaking it could probably be loads of things because program change only has a single status byte but I imagine there would be issues if it would be set to -say- 144 so let&#39;s not push our luck.
<br><br>This was previously unclear to me and the documentation doesn&#39;t cover it so it might be usefull to others as well. Loading programs manually isn&#39;t the most expressive of musical gestures, after all...<br><br>
Yours,<br>Kas.<br><br>