3 declare author "Grame";
5 declare copyright "(c)GRAME 2007";
7 //-----------------------------------------------
8 // Switch between two stereo sources.
9 // Useful to compare these two sources
10 // The parameter c\in{0,1} indicates the
12 //-----------------------------------------------
14 switch(c,x0,x1,y0,y1) = sel(c,x0,y0), sel(c,x1,y1)
16 sel(c,x,y) = (1-c)*x + c*y;
19 process = switch(hslider("source 0 <-> source 1",0,0,1,1));