Arduino STK  4.6.2
Phonemes.h
1 #ifndef STK_PHONEMES_H
2 #define STK_PHONEMES_H
3 
4 #include "Stk.h"
5 
6 namespace stk {
7 
8 /***************************************************/
18 /***************************************************/
19 
20 class Phonemes : public Stk
21 {
22 public:
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 
46 private:
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 table.
Definition: Phonemes.h:21
static StkFloat formantFrequency(unsigned int index, unsigned int partial)
Returns the formant frequency for the given phoneme index (0-31) and partial (0-3).
static StkFloat formantGain(unsigned int index, unsigned int partial)
Returns the formant gain for the given phoneme index (0-31) and partial (0-3).
static StkFloat voiceGain(unsigned int index)
Returns the voiced component gain for the given phoneme index (0-31).
static StkFloat noiseGain(unsigned int index)
Returns the unvoiced component gain for the given phoneme index (0-31).
static const char * name(unsigned int index)
Returns the phoneme name for the given index (0-31).
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 base class.
Definition: Stk.h:144
The STK namespace.
Definition: ADSR.h:8