Mercurial > hg > ishara
view dsp/synth/harmsynth.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | c75bb62b90a9 |
children |
line wrap: on
line source
function y=harmsynth(N,A,F0,phi) % harmsynth - Additive synthesis with harmonic frequencies % % harmsynth :: % N:natural ~'size of buffers to produce', % seq([[K]]) ~'sequence of amplitudes for each component', % seq(nonneg) ~'sequence of fundamental frequencies', % [[K]] ~'initial phases' % -> seq([[1,N]]) ~'sum of components'. % % Note: the number of components must remain constant y=addsynth(N,A,F0*(1:size(A,1))',phi);