sc
module reference
index
- Play a SuperCollider SynthDef on bangs.
- Play a SuperCollider SynthDef on events.
details
- Play a SuperCollider SynthDef on bangs.
(play [socket] synth trig [param val…])
Plays the synth
synth
on theudp/socket
socket
whenevertrig
is live.socket
should be audp/socket
value. This argument can be omitted and the value be passed as a dynamic definition in*sock*
instead.synth
is the SC synthdef name. It should be a string-value.trig
is the trigger signal. It should be a stream of bang-events.param
is the name of a synthdef parameter. It should be a string-value.
- Play a SuperCollider SynthDef on events.
(play [socket] synth [param evt/val…])
Plays the synth
synth
on theudp/socket
socket
whenever anyevt
is live.socket
should be audp/socket
value. This argument can be omitted and the value be passed as a dynamic definition in*sock*
instead.synth
is the SC synthdef name. It should be a string-value.param
is the name of a synthdef parameter. It should be a string-value.val
andevt
are the parameter values to send. They should be number streams. Incoming events will cause a note to be played, while value changes will not.