
Hi I'm trying to send program change messages from chuck, but fail. I've been looking at stuff like this: https://lists.cs.princeton.edu/pipermail/chuck-users/2007-January/001426.htm... http://www.rattus.net/~packrat/audio/ChucK/files/midisender.ck Using the first URL (a post from Kassen), I try this: 192 => midimessage.data1; 3 => midimessage.data2; bcrMidiOut.send(midimessage); But get "[chuck](via RtMidi): RtMidiOut::sendMessage: event parsing error!". Note: I can send 3 byte messages on the port without problems, I'm thinking it's the 2 byte nature of program change that I doesn't handle correctly. I'm not too much into the deeper working of neither midi messages or what chuck does, so if someone could point me in the right direction, I'd be thankful! -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk

Atte André Jensen wrote:
192 => midimessage.data1; 3 => midimessage.data2; bcrMidiOut.send(midimessage);
A complete example, ready-to-run would go like this: 2 => int device; MidiMsg midimessage; MidiOut midiOut; if(!midiOut.open(device)) me.exit(); 192 => midimessage.data1; 3 => midimessage.data2; midiOut.send(midimessage); NB: If I receive a program change from my micron, data3 contains something in the area of 191. Sometimes 180, sometimes 183, sometimes something else. It's always the same until I stop chuck, the next time the content is another number. Strange... -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk

Atte André Jensen wrote:
NB: If I receive a program change from my micron, data3 contains something in the area of 191. Sometimes 180, sometimes 183, sometimes something else. It's always the same until I stop chuck, the next time the content is another number. Strange...
Ok, I asked google and was told this is only an issue on my os, and has been reported over and over since last release a year ago. So I just fixed it myself in c++... -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk

fre 2008-06-06 klockan 20:00 +0200 skrev Atte André Jensen:
Atte André Jensen wrote:
NB: If I receive a program change from my micron, data3 contains something in the area of 191. Sometimes 180, sometimes 183, sometimes something else. It's always the same until I stop chuck, the next time the content is another number. Strange...
Ok, I asked google and was told this is only an issue on my os, and has been reported over and over since last release a year ago. So I just fixed it myself in c++...
for the future: what OS are you using, and what changes did you make? Gasten

Martin Ahnelöv wrote:
for the future: what OS are you using, and what changes did you make?
I'm using linux, and the changes I made are small. Probably handled much better in this years release. -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk
participants (2)
-
Atte André Jensen
-
Martin Ahnelöv