#include <config.h>
char *elements_id = "$Id: elements.c,v 1.1 2006/06/11 07:13:24 urchlay Exp $";
#include <stdio.h>
#include <math.h>
#include "rsynth.h"
#include "phfeat.h"
Elm_t Elements[] = {
#include "Elements.def"
};
unsigned num_Elements = (sizeof(Elements) / sizeof(Elm_t));
char *Ep_name[nEparm] = {
"fn", "f1", "f2", "f3",
"b1", "b2", "b3", "pn",
"a2", "a3", "a4",
"a5", "a6", "ab", "av",
"avc", "asp", "af"
};
speaker_t *
rsynth_speaker(float F0Hz, float gain, Elm_t * e)
{
static speaker_t pars;
pars.F0Hz = F0Hz;
pars.Gain0 = gain;
pars.F4hz = 3900;
pars.B4hz = 400;
pars.F5hz = 4700;
pars.B5hz = 150;
pars.F6hz = 4900;
pars.B6hz = 150;
pars.B4phz = 500;
pars.B5phz = 600;
pars.B6phz = 800;
pars.BNhz = 500;
pars.FNPhz = (long) e->p[fn].stdy;
return &pars;
}