Mercurial > hg > ishara
view dsp/synth/formant_synth.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
% formant_synth - synthesise audio from format-based description function Y=formant_synth(block_size,q,amp,f0,fx) Y = amp*dynfilter( ... map(@f2tf, fx), ... blockdata(blit,block_size,0,0.45,f0) ... ); function tf=f2tf(f) zf=zeros(size(f)); [tf{1},tf{2}]=zp2tf([zf;zf],fq2poles(0.5*f,q),min(f)); end end