Please Scroll Down to See Forums Below
napsgear
genezapharmateuticals
domestic-supply
puritysourcelabs
UGL OZ
UGFREAK
napsgeargenezapharmateuticals domestic-supplypuritysourcelabsUGL OZUGFREAK

programming in supercollider

majutsu

Well-known member
I have been deep in acoustic engineeering lately. I would post this in music forum, but I mind as well just take a shit on the floor for all the good it would do. So I decided to post here, even one guy will read it (Hi samoth!)

This is from a production forum I frequent, where frankly I might as well have 3 heads anyway :chomp:

"Everyone claims to want to learn. So here are your first steps with the pan-flexible sound engineering tool supercollider. This is copied from where I put it on another forum, but since the hot topic is improving board quality, I thought I'd do my part, but I'm skeptical. Most people have trouble with sc3 and max because it's so deep and techy, but hopefully if I give you a little taste of freedom, you will see the light . . .

"Anyone else into supercollider 3? I'm all about max and sc3 lately. My favorite artist of the week is cylob I'm using the sonenvir build. Anyone else into sc3? Let's do it up. I think the oscillator and flow is better than max. Plus if you write david cottle, he sends you all of his class materials. He is so cool and supportive. Will forward the address to anyone who asks. Any other sc heads bark up. And are you using win, mac, or linux? The sonenvir build works great! -- even swingosc.

you have to unzip the sonenvir build
run msi to redistribute psycollider
then run psycollider
open new code window
then cut and paste the following little code into the blank new code window from one parenthesis to the other:

(
// select everything between the two parentheses
{
CombN.ar(
SinOsc.ar(
LFNoise1.kr(
4, // LFO
24, // range in MIDI
LFSaw.kr(
[8,7.23],//second LFO
0,
3, // range in MIDI
80 // offset in MIDI
)
).midicps,
0,
0.04
),
0.2, // max delay
0.2, // actual delay
4 // decay
)
}.play
)


When the whole thing is selected hit ctrl+enter (to compile). Enjoy the holiness that is pure sound Type alt+. to stop the sound.

Congratulations, you are now on that first step to real computer music."

-maj
 
Supercollider consists of :

Objects - The important uppercase words in sc, usually with arguments. Everything is actually an object in an object program language, but for now... SinOsc, LFNoise, etc

Messages - Follow objects with a dot. play, scope, and midicps are examples of sc messages

Arguments - separated by commas in parentheses, usually defining things like cutoff frequency, sweep times etc

Variables - lower case, words you make up to store info

Functions - anything in {} brackets

Ugens - unit generator with an object, message and argument. They make sound!

When you copy in the patch above, you can run it and enjoy it. Then select an object like SinOsc then hit f1 (in windows) shift+com+/ in mac and a help window will pop up telling you the arguments. You can start to learn the language this way. Feel free to change some arguments and note the difference.

Sc can synthesize, sequence, control midi, and even pull up graphical entities like an oscillisope (with the scope message ) There's a little parallel universe in those 3 windows . . . Down the rabbit hole!

here is a link directly to the sc builds at sonenvir

http://sonenvir.at/downloads/sc3/
 
Top Bottom