.cc - week one.
This year I am learning SuperCollider a programming language used for digital audio processing. Learning the language is made difficult by a lack of bona fide support, however, it is possible. Download this file, it contains better formatting: week1.rtf.
// simple maths
(
var oswHa;
oswHa = { |a, b| a + b};
oswHa.value(a: 2, b: 3);
)
// more complicated
(
var swkB;
swkB = { |a, b, c, d, e, f| a + b * c / d - e ** f};
swkB.value(a: 1, b: 2, c: 3, d: 4, e: 5, f: 6);
)
// words + words
(
var isdHsd;
isdHsd = { |a, b| a + b};
isdHsd.value(a: "i", b: "am.");
)
//printing many times...
(
var asdioWdks;
asdioWdks = { |a| a.postln; a.postln; a.postln};
asdioWdks.value (a: "10000001");
)
//...using do
(
15.do{arg text; "ice age coming".postln};
)
//variables like...
(
var sjYds = 0;
while ( {sjYds < 10}, { sjYds = sjYds + 1; "negative one".postln });
)
//...or like
(
x = 0;
while ( {x < 10}, { x = x + 1; "positive one".postln });
)
.sources.
Haines, Christian, 6.3.08 "Introduction to SuperCollider," Lecture of EMU, Adelaide University.
iieiwrmeieweeiimeemmwreiweremweireeemeimwieewwrwweereireeiimeewmiwwwemwiewimeeeremeiewmemweewieewerwemwiimiewmeiwireiiwrrewmwewree |
11.3.08
SuperCollider
copywrite 8:47 pm
Subscribe to:
Post Comments (Atom)
2 comments:
I noticed you've adopted Autechre style naming for your variables, nice :-)
elbows on the keyboard :)
Post a Comment