.cc - week five.
This week I have used a whole range of new Unit Generators. Building on the Mouse X/Y controls, I have started using the keyboard as an input into SuperCollider.
sound_gen_II.rtf
/* example 5.
using mix.fill unit generator to create a multi-unit generator
Y axis = pitch
X axis = panning
try altering the variables for different results
*/
(
var rate = 0.4, //rate of sound wall generation
partials = 25, //number of harmonics
baseNote = 50; //base note (MIDI Note)
x = {
Mix.fill(
partials, { //each partial's function
SinOsc.ar(
freq: MouseY.kr(minval: baseNote, maxval: baseNote + 100).round(10.0) + 800.0.rand, //Y axis control pitch
phase: 0,
mul: EnvGen.kr(Env.adsr( //envelope
attackTime: 0.01,
decayTime: 0.02,
sustainLevel: 0.2,
releaseTime: 0.1,
peakLevel: 0.9/partials,
curve: -4.0,
bias: 0.0
),
LFNoise0.kr(freq: rate) //trigger
)
)
});
};
{Pan2.ar(in: x, //panning
pos: MouseX.kr(minval: -1.0, maxval: 1.0),
level: 1.0
)}.scope(2, 0, 2).play;
)
.sources.
Haines, Christian 03.04.08, "Sound Generation (2)," Lecture of EMU, Adelaide University.
iieiwrmeieweeiimeemmwreiweremweireeemeimwieewwrwweereireeiimeewmiwwwemwiewimeeeremeiewmemweewieewerwemwiimiewmeiwireiiwrrewmwewree |
8.4.08
all the same, all different
copywrite 2:05 am
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment