Supercollider

Installation

Copy the "muio_sc3_classes" folder to your SC3 classes folder and restart SC3.

 

Use

Remember to start the muioOSCServer!!!

There are several SC3 classes included within the SC3 muio package.  The recommended object is called muioCentral. muioCentral is an object that stars up an monitors a number of muio inout types.

This code creates a global ~muio object.


 ~muio = MuioCentral.new;
 

You access data throught the getValue("port","input") method... so....

~muio.getValue("/adc0","1")

...will return the current reading on pin 1 of the adc port called adc0. There is a list of commands and ports below. The muioCentral also has a number of composite ports such as accelerometers and m-Log.

You might want to have a Task that grabs the value and does something more interesting ....
(
t = Task({
        inf.do{
            ~muio.getValue("/adc0","1").postln;
            0.1.wait;}});
)
t.start;
t.stop;


 -----------------
 port/input/commands
 -----------------
 
 =================
 port name : /adc0, /adc1....
 
 inputs:
     0 to 3                 = current reading
     delta_0 to delta_3    = change sisnce last reading
     

 =================
 port name : /port0, /port1
 
 inputs:
     0 to 7                 = current reading
     delta_0 to delta_7    = change since last reading
 
 
 =================
 port name : /acc1
                 ** assumes there is a 3g accelerometer on /adc0 and /port1 input 0 is used as trigger button
                 ** the object uses an offset to calcutale acceleration and velicity.  This initially set to zero.
                 
 inputs:
     "pos_x","pos_y", "pos_z" = a position based on movement when /port1 inoput 0 depressed
     "vel_x","vel_y", "vel_z" = a constant calculation of velicity
     "acc_x","acc_y", "acc_z" = a constant calculation of acceleration
     "active"                 = returns the state of the control button (same as getValue("/port1","0")
     
 commands:    
     "setOffset"                 = call this to set the offset value to the current accelerometer reading
     "reset"                     = resets the accelerometer position to 0.
     

 =================
 port name : /m-Log
 
 inputs:
     pitch:                current pitch value ---- pitch is as in  boat pitching bow to stern
     roll:                current roll value  ---- roll is as in boat rolling port(left) to starboard(right)
     0 to 7:                current switch inputs
     delta_pitch:
     delta_roll:
     delta0 to delta7:
 

SuperCollider Objects and Examples

Title Post date Release Notes Download
SuperCollider via OSC v0_3 12/10/2009 robust muioCentral object, integrates to IXIQuarks,

sc3_osc_muio_v0_3.zip