annotate 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 |
|
rev |
line source |
samer@34
|
1 % formant_synth - synthesise audio from format-based description
|
samer@34
|
2 function Y=formant_synth(block_size,q,amp,f0,fx)
|
samer@34
|
3 Y = amp*dynfilter( ...
|
samer@34
|
4 map(@f2tf, fx), ...
|
samer@34
|
5 blockdata(blit,block_size,0,0.45,f0) ...
|
samer@34
|
6 );
|
samer@34
|
7
|
samer@34
|
8 function tf=f2tf(f)
|
samer@34
|
9 zf=zeros(size(f));
|
samer@34
|
10 [tf{1},tf{2}]=zp2tf([zf;zf],fq2poles(0.5*f,q),min(f));
|
samer@34
|
11 end
|
samer@34
|
12 end
|
samer@34
|
13
|