Mercurial > hg > jslab
annotate examples/sound/sampled/record.scm @ 8:5e3cbbf173aa tip
Reorganise some more
author | samer |
---|---|
date | Fri, 05 Apr 2019 22:41:58 +0100 |
parents | bf79fb79ee13 |
children |
rev | line source |
---|---|
samer@0 | 1 ; shows how to record from audio input a wav file |
samer@0 | 2 (load "audio.scm") |
samer@0 | 3 (load "lineout.scm") |
samer@0 | 4 |
samer@0 | 5 (put "regulated" #f) |
samer@0 | 6 (define fmt (mono 44100)) |
samer@0 | 7 (lineout (filesnk "out.wav" fmt) (linein (linesrc fmt) 1024 1024)) |
samer@0 | 8 (expose) |
samer@0 | 9 (start) |