a = gate( peek( data([0,1,2,3]), phasor(.5), {interp:'none'}), 220, {count:4})

b1 = mul( a.outputs[0], 1 )
b2 = mul( a.outputs[1], 2 )
b3 = mul( a.outputs[2], 3 )
b4 = mul( a.outputs[3], 4 )

c = add( b1,b2,b3,b4 )

d = cycle( c ) 

e = gate( peek( data([0,1,2,3]), phasor(.35), {interp:'none'}), 330, {count:4})

f1 = mul( e.outputs[0], 1 )
f2 = mul( e.outputs[1], 2 )
f3 = mul( e.outputs[2], 3 )
f4 = mul( e.outputs[3], 4 )

g = add( f1,f2,f3,f4 )

h = cycle( g ) 

fb1 = ssd()
fb2 = ssd()

i = delay( add( fb1.out, mul(d,.5) ), 11025, { size:22050, interp:'none' })
j = delay( add( fb2.out, mul(h,.5) ), 11025, { size:22050, interp:'none' })

ii = mix( i, d, .5 )
jj = mix( j, h, .5 )

fb1.in( ii )
fb2.in( jj )
          
play( [add(d,ii),add(h,jj)] )