1 //-------------------------------------------------------
2 // A square wave oscillator
3 //-------------------------------------------------------
5 //T = hslider ("Period", 1, 0.1, 100., 0.1);
7 N = 44100./1000.*T : int;
8 //a = hslider ("Cyclic ratio", 0.5, 0, 1, 0.1);
12 process = i, N*a : > : *(2) : -(1);
14 //process = ((_,1:+)~(_,((44100.0,1000.0:/),10:*:int):%):_,1:-),(((44100.0,1000.0:/),10:*:int),0.5:*):+:_,2:*:_,1:-;
16 //process = ((_,1:+)~(_,440:%):_),1:+:_,2:*:_,1:-;