Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

syllable.h

Go to the documentation of this file.
00001 
00024 #ifndef _SYLLABLE_H_
00025 #define _SYLLABLE_H_
00026 
00027 #include "phon.h"
00028 
00032 typedef enum {
00034   none, 
00036   word, 
00038   sentence 
00039 } ACCENT_TYPE;
00040 
00041 
00049 class syllable {
00050 
00052   vector<phon> phonVec;
00054   uint phonNum;
00056   uint meanF0; 
00058   ACCENT_TYPE accent; 
00059    
00060  public:
00061 
00066   void setAccent(ACCENT_TYPE newAccent) {accent = newAccent;}
00067 
00068 
00073   ACCENT_TYPE Accent() {return accent;}
00074   
00080   void addPhon(phon newPhon);
00081 
00087   void replacePhon(phon newPhon, uint loc);
00088 
00094   void erasePhon(uint loc);
00095   
00101   phon getPhon(uint loc);
00102   
00107   void printPhonVec(ostream &outFile);  
00108 
00113   vector<phon>& PhonVec();
00114 
00119   uint MeanF0();
00120   
00124   void calcMeanF0();
00125   
00130   uint PhonNum();
00131 
00136   void clearPhonVec();
00137   
00139   syllable(){phonNum=0;}
00140 
00149   void  changeF0Range(uint rate, uint mean);
00150 
00160   void  changeF0Range(uint rate);
00161 
00168   void  changeMeanF0(uint rate);
00169 
00175   void  changeAvrInt(int dBVal);
00176   
00177 
00178 };
00179 
00180 #endif /* _SYLLABLE_H */
00181 
generated by doxygen