Mercurial > hg > jslab
view examples/sound/sampled/osc.scm @ 1:5df24c91468d
Oh my what a mess.
author | samer |
---|---|
date | Fri, 05 Apr 2019 16:26:00 +0100 |
parents | bf79fb79ee13 |
children |
line wrap: on
line source
; shows how to generate a signal using an oscillator, buffer it, ; and send it to the sound card (load "audio.scm") (load "lineout.scm") (load "synthesis.scm") ; this uses the default linesnk, which will be a lineout returned ; by the AudioSystem. Could easily choose a different lineout or ; even a file sink. (eg see record.scm) (lineout (linesnk (mono 44100)) (gen->vector 512 (oscillator 0.1))) (expose)