Mercurial > hg > ishara
view dsp/synth/noise.m @ 58:ba866ae124c6
Now accepts single color index for all points.
author | samer |
---|---|
date | Fri, 09 Oct 2015 13:01:37 +0100 |
parents | c75bb62b90a9 |
children |
line wrap: on
line source
% noise - white noise generator % % noise :: % D:natural ~'maximum duration to expect', % -> ( nonneg ~'sampling frequency', % N:1..D ~'duration' % -> [[1,N]] ~'some noise') ~'function to generate white noise'. function gen=noise(maxdur) buf=randn(1,maxdur); gen=@(fs,dur)buf(1:dur);