OPCODE GUIDE: REALTIME INTERACTION
Opcodes For Use In MIDI-Triggered Instruments
pgmassign assigns certain program changes to instrument numbers.
notnum gets the midi number of the key which has been pressed and activated this instrument instance.
cpsmidi converts this note number to the frequency in cycles per second (Hertz).
midichn returns the midi channel number from which the note was activated.
pchbend gets the pitch bend information.aftouch and polyaft get the aftertouch information.
Opcodes For Use In All Instruments
midiin gives access to all incoming midi events.
midiout writes any event to the midi out port.
OPEN SOUND CONTROL AND NETWORK
Open Sound Control
OSCinit initializes a port for later use of the OSClisten opcode.
OSClisten receives messages of the port which was initialized by OSCinit.
OSCsend sends messages to a port.
remoteport defines the port for use with the remote system.
insremot will send note events from a source machine to one destination.
insglobal will send note events from a source machine to many destinations.
midiremot will send midi events from a source machine to one destination.midiglobal will broadcast the midi events to all the machines involved in the remote concert.
socksend sends audio data to other processes using the low-level UDP or TCP protocols.sockrecv receives audio data from other processes using the low-level UDP or TCP protocols.
The FLTK Widgets are integrated in Csound. Information and examples can be found here.
sensekey gets the input of your computer keys.
xyin can get the mouse position if your frontend does not provide this sensing otherwise.
wiiconnect reads data from a number of external Nintendo Wiimote controllers.
wiidata reads data fields from a number of external Nintendo Wiimote controllers.
wiirange sets scaling and range limits for certain Wiimote fields.wiisend sends data to one of a number of external Wii controllers.
p5gconnect reads data from an external P5 Glove controller.p5gdata reads data fields from an external P5 Glove controller.