[chuck-users] MidiOut

Spencer Salazar ssalazar at princeton.edu
Mon Jun 12 19:28:56 EDT 2006


Hey there,
Sorry for the late reply.  There isnt any documentation for it, but  
its pretty simple.  In case youre still wondering, heres an example  
that just sends a noteOn and noteOff.

// data structures
MidiOut mout;
MidiMsg msg;

// connect
if( !mout.open( 0 ) ) me.exit();
<<< "connected to MIDI port 0", "" >>>;

// noteOn
0x90 => msg.data1;
60 => msg.data2;
127 => msg.data3;

// send
mout.send( msg );

// wait
1::second => now;


0x80 => msg.data1;
60 => msg.data2;

mout.send( msg );



hope this helps,
spencer

On Jun 5, 2006, at 8:07 AM, Ollie Glass wrote:

> Is there any documentation available for the MidiOut object?
>
> Thanks,
>
> Ollie
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



More information about the chuck-users mailing list