1 declare name "select2";
3 declare author "Grame";
5 declare copyright "(c)GRAME 2009";
7 //-----------------------------------------------
9 //-----------------------------------------------
13 random1 = ffunction(int random (), <stdlib.h>, "");
14 noise1 = (random1 << 1) * (1.0/RANDMAX);
15 random2 = (*(1103515245)+12345) ~ _ ;
16 noise2 = random2 * (1.0/RANDMAX);
18 process = select2(button("Switch"), noise1, noise2) * hslider("Volume", 0, 0, 1, 0.01) <: _,_ ;