Mercurial > hg > jslab
comparison examples/sound/sampled/osc.scm @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bf79fb79ee13 |
---|---|
1 ; shows how to generate a signal using an oscillator, buffer it, | |
2 ; and send it to the sound card | |
3 (load "audio.scm") | |
4 (load "lineout.scm") | |
5 (load "synthesis.scm") | |
6 | |
7 ; this uses the default linesnk, which will be a lineout returned | |
8 ; by the AudioSystem. Could easily choose a different lineout or | |
9 ; even a file sink. (eg see record.scm) | |
10 (lineout (linesnk (mono 44100)) (gen->vector 512 (oscillator 0.1))) | |
11 (expose) |