<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks a lot for the answer.<br>I've just tried put the data3 to 0 and it still crash. In fact, this
<br>error occurs also for<br>values of data1 >= 192 (I tried 193, 194, etc.)</blockquote><div><br>Yeah, but that's logical.<br>"192" means "now I'm going to send a program change which refers to the first MIDI channel", 193 means the same for the second channel and so on up to 207.
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It's not only strange, but also a bit annoying for my purpose ... ;-)</blockquote>
<div><br>Yes, quite so. It should be less strange and less annoying :-).<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Seems to be linked to linux version ?
</blockquote><div><br><br>Confirmed. The code below is what I posted to the list to demonstrate program change. This works on my Win laptop and on this machine (Demudi, stable) I get the same error that you did. (you can also insert "0 =>
msg.data3;" for the same results)<br><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 => msg.data1;<br>//refers to the program to be loaded<br>4 => msg.data2;<br><br>mout.send(msg);<br></div>---------------<br><br>So, erm, the Linux version lacks the undocumented feature that the Windows version has. :-)
<br><br>Sorry,<br>Kas.<br><br></div>