Mercurial > hg > jslab
view examples/sound/sampled/powspec.scm @ 8:5e3cbbf173aa tip
Reorganise some more
author | samer |
---|---|
date | Fri, 05 Apr 2019 22:41:58 +0100 |
parents | bf79fb79ee13 |
children |
line wrap: on
line source
(load "audio.scm") (load "functions.scm") (load "models.scm") (define fmt (mono 22050)) (define size 2048) (define hop 512) ; get low latency input line with a buffer size of 4096 (define X (ft-power (ft-vec (norm (linein (linesrc-buf fmt 4096) size hop))))) (define Y (diffscale X cauchy-spec)) (exec Y "trace") (expose) (start)