The Synthesis ToolKit in C++ (STK)

Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial

Phonemes.h
1#ifndef STK_PHONEMES_H
2#define STK_PHONEMES_H
3
4#include "Stk.h"
5
6namespace stk {
7
8/***************************************************/
18/***************************************************/
19
20 class Phonemes : public Stk
21{
22public:
23
24 Phonemes( void );
25
26 ~Phonemes( void );
27
29 static const char *name( unsigned int index );
30
32 static StkFloat voiceGain( unsigned int index );
33
35 static StkFloat noiseGain( unsigned int index );
36
38 static StkFloat formantFrequency( unsigned int index, unsigned int partial );
39
41 static StkFloat formantRadius( unsigned int index, unsigned int partial );
42
44 static StkFloat formantGain( unsigned int index, unsigned int partial );
45
46private:
47
48 static const char phonemeNames[][4];
49 static const StkFloat phonemeGains[][2];
50 static const StkFloat phonemeParameters[][4][3];
51};
52
53} // stk namespace
54
55#endif
stk::Phonemes
STK phonemes table.
Definition Phonemes.h:21
stk::Phonemes::formantFrequency
static StkFloat formantFrequency(unsigned int index, unsigned int partial)
Returns the formant frequency for the given phoneme index (0-31) and partial (0-3).
stk::Phonemes::formantGain
static StkFloat formantGain(unsigned int index, unsigned int partial)
Returns the formant gain for the given phoneme index (0-31) and partial (0-3).
stk::Phonemes::voiceGain
static StkFloat voiceGain(unsigned int index)
Returns the voiced component gain for the given phoneme index (0-31).
stk::Phonemes::noiseGain
static StkFloat noiseGain(unsigned int index)
Returns the unvoiced component gain for the given phoneme index (0-31).
stk::Phonemes::name
static const char * name(unsigned int index)
Returns the phoneme name for the given index (0-31).
stk::Phonemes::formantRadius
static StkFloat formantRadius(unsigned int index, unsigned int partial)
Returns the formant radius for the given phoneme index (0-31) and partial (0-3).
stk::Stk
STK base class.
Definition Stk.h:136
stk
The STK namespace.
Definition ADSR.h:6

The Synthesis ToolKit in C++ (STK)
©1995--2023 Perry R. Cook and Gary P. Scavone. All Rights Reserved.