1 declare name "select3";
3 declare author "Grame";
5 declare copyright "(c)GRAME 2009";
7 //-----------------------------------------------
8 // Three noises compared
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);
19 process = select3(button("Switch"), noise1, noise2, noise3) * hslider("volume", 0, 0, 1, 0.01) <: _,_ ;