3 declare author "Grame";
5 declare copyright "(c)GRAME 2006";
7 //======================================================
10 // (from Maarten de Boer's Tapiir)
12 //======================================================
25 tap(n) = vslider("tap %n", 0,0,1,0.1);
26 in(n) = vslider("input %n", 1,0,1,0.1);
27 gain = vslider("gain", 1,0,1,0.1);
28 del = vslider("delay (sec)", 0, 0, 5, 0.01) * SR;
31 // bus, mixer and matrix
32 //-----------------------------------------------------------
34 //bus(n) = par(i,n,_);
36 mixer(taps,lines) = par(i,taps,*(tap(i))),
41 matrix(taps,lines) = ( bus(lines+taps)
45 mixer(taps,lines) : delay(dsize,del))))
52 tapiir(taps,lines) = vgroup("Tapiir",
54 <: (matrix(taps,lines), bus(lines))
55 <: vgroup( "outputs", par( i, lines, hgroup("output %i", mixer(taps,lines)) ) )
60 process = tapiir(6,2);