supercollider tips
A web page for gathering various tips for supercollider to share with friends, students, colleagues and collaborators.
basics
try saying something to supercollider and see what it does. for example type the following and then run it using [command + enter]:
"hi how are you?"
try giving supercollider a maths challenge:
1 + 2 + 3 + 4 + 5
or:
1 * 2 + 3 * 4 + 5
you can also use the post function:
"hi hii".post;
or postln to print output on a new line:
"hiiiii".postln;
or to serve as a very elaborate calculator:
34*7.postln;
you can check if the supercollider server is running:
s.serverRunning.postln;
to check which platform supercollider is running on:
thisProcess.platform;
to check which version of supercollider is running:
Main.version;
to check sample rate:
s.sampleRate.postln;
list available devices:
ServerOptions.devices;
100 x greetings:
100.do({"hiiiii".postln;});
server
you can boot the server with:
s.boot;
to check if it is running:
s.serverRunning.postln;
to check its status:
s.status;
to reboot:
s.reboot;
make sure safetly clip is on:
(
s.options.safetyClipThreshold = 1;
s.reboot;
)
recording
to record sound output:
s.record;
to stop recording:
s.stopRecording;
open recording interface:
s.makeWindow;
examples
some short examples…
by Thor Magnusson
play{HPF.ar(({|k|({|i|SinOsc.ar(i/96,Saw.ar(2**(i+k))/Decay.ar(Impulse.ar(0.5**i/k),[k*i+1,k*i+1*2],3**k))}!6).product}!32).sum/2,40)}
by Tim Walters
{x=SinOsc;y=LFNoise0;a=y.ar(8);(x.ar(Pulse.ar(1)*24)+x.ar(90+(a*90))+MoogFF.ar(Saw.ar(y.ar(4,333,666)),a*XLine.ar(1,39,99,99,0,2)))!2}.play
more short examples can be found here.
soundscaping
You can find the forestscapes supercollider scripts and accompanying documentation here.
further resources
More supercollider links and learning resources can be found here.
