Friday, November 23, 2007

Super Collider Day 1

I just found this funky programming language for sound designing or synthesis or whatever it's for...

SuperCollider Official

SuperCollider Japan

great thing is that this is completely free and open source. you basically type in codes into their text editors and you hear the sound or you do whatever the things you wanna do with it if your codes successfully compile.

Tons of tutorials are available so i guess you could be looking at them but i would like to point out one thing.

you do Command or Apple + .(period) to stop the sound. It freaked me out for a while enough to force quit the server(not like internet server.. its just way the app calls your computer) since i didn't know nothing.

I started with very first tutorial and after a while i managed to generate Stereo sound.

it's got stuff like:
functions - declared like f = {}; very math like...f is a function name and i could only do one letter.. i need to figure out why and how to name meaning ful names.

variables - declared by the keyword 'var'

argument - use 'arg' and type in letters. this is like function nameYourFunction(var a, var b) {}


looking at the manual there is a class to and reserved word SinOsc seems like it's a class. so this may actually be Object Oriented!! wow... although it seems only procedural right now..


and other interesting things...

here are code that i used to generate stereo sound from Super Collider for the first time.. (after that lame detuned sine wave..)


(
{
var ampOsc;
var pitchOsc;
ampOsc = SinOsc.kr(5, 2pi, 2, 2);
pitchOsc = SinOsc.ar(800, 2pi, 440, 200);
[SinOsc.ar(440, 0, 0.2), SinOsc.ar(pitchOsc, 0, ampOsc)]
}.play;
)


it generates:
440, 0.2 amplitude on the LEFT channel and
a Sine wave with pitch and amp oscillating (LFO) on the RIGHT channel

yes. super dissonant. and it changes pitch. very freaky. try at your on risk. it will be painful especially if you have a perfect picth.

No comments: