Created
November 3, 2012 00:21
-
-
Save jbclements/4005220 to your computer and use it in GitHub Desktop.
code from class, 2012-11-01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require (planet clements/rsound:4:3)) | |
(define SONG (rs-read "/tmp/wenceslas.wav")) | |
(define my-ding (rs-append ding (silence (* 4 44100)))) | |
(define (looper sound) | |
(local [(define len (rs-frames sound))] | |
(network () | |
[ctr ((loop-ctr len 1))] | |
[out (rs-ith/left sound ctr)]))) | |
(signal-play | |
(network () | |
[fc (sawtooth-wave 16)] | |
[osc (sawtooth-wave (+ 560 (* fc 500)))] | |
#;[sig ((looper SONG))] | |
[t1 ((tap 500 0.0) (prev out 0.0))] | |
[out (+ osc (* 0.9 t1))])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment