[chuck-users] MidiOut

Ollie Glass ollieglaskovik at gmail.com
Tue Jun 13 17:24:01 EDT 2006


Thanks for the example, that's perfect. I guessed it would be
straightforward to use.

Is there a ChucK object browser, or any way to print all the
properties of an object?

Ollie

> 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
>
>
>
>
> _______________________________________________
> 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