OPCODE GUIDE: REALTIME INTERACTION
Opcodes For Use In MIDI-Triggered Instruments
pgmassign assigns midi program changes to specified instrument numbers.
notnum retrieves 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 reads pitch bend information.aftouch and polyaft read the monophonic aftertouch (afttouch) and polyphonic aftertouch (polyaft) information.
Opcodes For Use In All Instruments
midiin reads all incoming midi events.
midiout writes any type of midi message to the midi out port.
OPEN SOUND CONTROL AND NETWORK
Open Sound Control
OSCinit initialises a port for later use of the OSClisten opcode.
OSClisten receives messages of the port which was initialised 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 reads the input of the computer keyboard.
xyin reads the current mouse position. This should be used if your frontend does not provide any other means of reading mouse information.
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.