examples/stereo/curly2.ck
raw| 1 | // impulse to filter to dac |
| 2 | Impulse i => BiQuad f => Pan2 p => dac; |
| 3 | // set the filter's pole radius |
| 4 | .99 => f.prad; |
| 5 | // set equal gain zeros |
| 6 | 1 => f.eqzs; |
| 7 | // set filter gain |
| 8 | .5 => f.gain; |
| 9 | |
| 10 | // infinite time-loop |
| 11 | while( true ) |
| 12 | { |
| 13 | // set the current sample/impulse |
| 14 | 1.0 => i.next; |
| 15 | // set filter resonant frequency |
| 16 | Math.random2f( 50, 5000 ) => f.pfreq; |
| 17 | // pan |
| 18 | Math.random2f( -1, 1 ) => p.pan; |
| 19 | // advance time |
| 20 | 99::ms => now; |
| 21 | } |
| 22 |