examples/analysis/flip.ck
raw| 1 | // Flip: turns the last N samples into a vector in the UAna domain |
| 2 | // UnFlip: turns a UAna frame back into the time domain via overlap add |
| 3 | // author: Ge Wang ([email protected]) |
| 4 | // Rebecca Fiebrink ([email protected]) |
| 5 | |
| 6 | // identity test |
| 7 | SinOsc s => Flip flip =^ UnFlip unflip => dac; |
| 8 | |
| 9 | // set size |
| 10 | 512 => flip.size => unflip.size; |
| 11 | |
| 12 | // go |
| 13 | while( true ) |
| 14 | { |
| 15 | // do it |
| 16 | unflip.upchuck(); |
| 17 | // hop |
| 18 | unflip.size()::samp => now; |
| 19 | } |