SuperCollider CLASSES

PV_RandComb

Pass random bins.

Description

Randomly clear bins.

Class Methods

*new (buffer, wipe: 0, trig: 0)

Arguments:

buffer

FFT buffer.

wipe

Clears bins from input in a random order as wipe goes from 0 to 1.

trig

A trigger, that selects a new random ordering.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

s.boot;
c = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");

(
SynthDef("help-randcomb", { | out=0 |
    var sig, chain;
    sig = WhiteNoise.ar(0.8);
    chain = FFT(LocalBuf(2048), sig);
    chain = PV_RandComb(chain, 0.95, Impulse.kr(0.4));
    Out.ar(out, IFFT(chain).dup);
}).play(s);
)

(
//trig with MouseY
SynthDef("help-randcomb2", { | out=0, soundBufnum=2 |
    var sig, chain;
    sig = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);
    chain = FFT(LocalBuf(2048), sig);
    chain = PV_RandComb(chain, MouseY.kr, Impulse.kr(0.4));
    Out.ar(out, IFFT(chain).dup);
}).play(s,[\soundBufnum, c.bufnum]);
)