






Hommage à Audiomulch
//use a Wavetable to control values continually
//jrh 00
(
var w, wv, wt, mx, s, index, n, osc;
n = 2;
wt = Array.fill(n, {Signal.newClear(1024).asWavetable});
w = GUIWindow.new("panel", Rect.newBy(128, 64, 832, 313));
wv = WavetableView.new( w, Rect.newBy(11, 24, 805, 159), wt.at(0), -1, 1);
s = SliderView.new( w, Rect.newBy(12, 199, 278, 21), "SliderView", 15, 1, 100, 0, 'linear');
index = SliderView.new( w, Rect.newBy(12, 224, 278, 21), "SliderView", 0, 0, n-1, 1, 'linear');
index.action = { wv.wavetable = wt.wrapAt(index.value.asInteger) };
{
mx = MouseX.kr(0.3, 10);
osc = wt.collect({ arg item; Osc.kr(item, 1/mx) });
Decay2.ar(
Impulse.ar(s.kr * (osc.at(1) * 0.5 +0.5) ),
0.02,
0.1,
Resonz.ar(WhiteNoise.ar(10), osc.at(0) * 400 + 500, 0.02 )
)
}.scope;
)
feel free to contribute
back to sc
Links to this Page
- Code Pool SC2 last edited on 5 April 2004 at 3:07 pm by max2-037.dialin.uni-hamburg.de
- enter. last edited on 29 January 2003 at 10:46 pm by 203.14.169.19
- Algorithmen Heute last edited on 24 June 2002 at 12:37 am by max2-068.dialin.uni-hamburg.de