annotate dsp/synth/formant_synth.m @ 47:82075c94eed1
adding a bunch of stuff, including graphics and pitch toolboxes.
author |
samer |
date |
Sat, 17 Jan 2015 15:20:35 +0000 |
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
|