View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

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