.cc - week four.
This week I thoroughly enjoyed getting into the synthesis side of SuperCollider, I wish I had had access to Unit Generators like "Dust" for longer. I can see SC is going to be source of much sample creation. For the two noises I created this week I basically pinched bits and pieces from the SC Help files and David Cottle's book "Computer Music." I took he and Christian's advice of re-writing the code, and identifying the different objects, variables and so on. Then I played with them and rewrote the code so that it would do essentially the same thing but using different codes I knew.
sound generation.rtf
(
({
var fundemental,
partials,
out;
fundemental = 100; //fundemental frequency
partials = 50; //amount of partials to be added
out = 0.0; //0.0 set as out variable
partials.do({ //run this function once for each partial
var zero = 0;
var klangWand;
klangWand = 1000.150.rand; //set sound wall random value: 150 - 1000
out = FSinOsc.ar(
freq: klangWand,
iphase: 0,
mul: max(0,
LFNoise1.kr(
freq: 6 + [4.0.rand2, 4.0.rand2],
mul: 0.02,
add: (SinOsc.kr(freq: 1/120,phase: 0.5pi, mul: 0.03, add: 0.01))
)
),
add: out
) * 0.9 //master amplitude control
});
out
}.play)
)
.sources.
Haines, Christian 27.03.08, "Sound Generation," Lecture of EMU, Adelaide University.
iieiwrmeieweeiimeemmwreiweremweireeemeimwieewwrwweereireeiimeewmiwwwemwiewimeeeremeiewmemweewieewerwemwiimiewmeiwireiiwrrewmwewree |
1.4.08
KlangWand
copywrite 10:07 pm
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment