On 03/12/2007, robin.escalation <robin.escalation@acm.org> wrote:
Can you post these 10 lines for us part-time ChucKers?
From memory it was something like this;
------------------------------------------------
StifKarp s => Envelope e => dac;
.5::second => e.duration;
[0, 3, 5, 7, 9, 12] @=> int scale[];
while(1)
{
Std.mtof(scale[ Std.rand2(0, scale.cap() - 1) ] ) => s.freq;
1 => s.noteOn;
second => now;
1 =>
e.keyOn;
Std.mtof(30 + scale[ Std.rand2(0, scale.cap() - 1) ] ) => s.freq;
second => now;
Std.mtof(30 + scale[ Std.rand2(0, scale.cap() - 1) ] ) => s.freq;
second => now;
1 => e.keyOff;
second => now;
}
--------------------------------
Very basic stuff and this one somehow came out a bit different from the session I reported on but it does demonstrate the evolving textures due to the re-balancing feedback system in the Ugen. Maybe you could get that pseudo "pluck" at the second of the two notes you hear out of there by sliding the frequency instead of having it jump, there's a lot of stuff to play with here.
I wish I could remember how I got those more noisy textures I had, perhaps the notes were simply lower but I need some sleep now so it's all yours for now, enjoy!
Kas.