FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::VocalMorpher Class Reference

The vocal morpher consists of a pair of 4-band formant filters, used to impose vocal tract effects upon the input signal. More...

#include <soundeffect.h>

+ Inheritance diagram for FIFE::VocalMorpher:
+ Collaboration diagram for FIFE::VocalMorpher:

Public Member Functions

 VocalMorpher ()
 Constructor. More...
 
void setPhonemeA (uint16_t value)
 Sets phoneme A. More...
 
uint16_t getPhonemeA () const
 Return phoneme A. More...
 
void setPhonemeB (uint16_t value)
 Sets phoneme B. More...
 
uint16_t getPhonemeB () const
 Return phoneme B. More...
 
void setPhonemeCoarseA (int16_t value)
 Sets phoneme coarse A, used to adjust the pitch of phoneme filters A and B in 1-semitone increments. More...
 
int16_t getPhonemeCoarseA () const
 Return phoneme coarse A. More...
 
void setPhonemeCoarseB (int16_t value)
 Sets phoneme coarse B, used to adjust the pitch of phoneme filters A and B in 1-semitone increments. More...
 
int16_t getPhonemeCoarseB () const
 Return phoneme coarse B. More...
 
void setWaveform (uint8_t value)
 Sets waveform, the shape of the low-frequency oscillator used to morph between the two phoneme filters. More...
 
uint8_t getWaveform () const
 Return waveform. More...
 
void setRate (float value)
 Sets rate, the frequency of the low-frequency oscillator used to morph between the two phoneme filters. More...
 
float getRate () const
 Return rate. More...
 
- Public Member Functions inherited from FIFE::SoundEffect
 SoundEffect ()
 Constructor. More...
 
virtual ~SoundEffect ()
 Destructor. More...
 
ALuint getEffectId () const
 Return the OpenAL effect handle. More...
 
void setSlotId (ALuint slot)
 Sets the OpenAL auxiliary slot handle. More...
 
ALuint getSlotId ()
 Return the OpenAL auxiliary slot handle. More...
 
SoundEffectType getEffectType () const
 Return sound effect type. More...
 
void setEnabled (bool enabled)
 Enables or disables the effect. More...
 
bool isEnabled () const
 Return true if the effect is enabled, false otherwise. More...
 
void setFilter (SoundFilter *filter)
 Sets the additional sound filter. More...
 
SoundFiltergetFilter ()
 Return sound filter or NULL. More...
 

Private Attributes

uint16_t m_phonemeA
 
uint16_t m_phonemeB
 
int16_t m_phonemeCoarseA
 
int16_t m_phonemeCoarseB
 
uint8_t m_waveform
 
float m_rate
 

Additional Inherited Members

- Protected Attributes inherited from FIFE::SoundEffect
ALuint m_effect
 Effect object id. More...
 
ALuint m_slot
 Effect slot id;. More...
 
SoundEffectType m_effectType
 Sound effect type. More...
 
bool m_enabled
 Effect enabled. More...
 
SoundFilterm_filter
 Additional filter effect. More...
 

Detailed Description

The vocal morpher consists of a pair of 4-band formant filters, used to impose vocal tract effects upon the input signal.

Phoneme values: 0=“A”, 1=“E”, 2="I", 3="O", 4="U", 5=“AA”, 6=“AE”, 7=“AH”, 8=“AO”, 9=“EH”, 10=“ER”, 11=“IH”, 12=“IY”, 13=“UH”, 14=“UW”, 15=“B”, 16=“D”, 17=“F”, 18=“G”, 19=“J”, 20=“K”, 21=“L”, 22=“M”, 23=“N”, 24=“P”, 25=“R”, 26=“S”, 27=“T”, 28=“V”, 29=“Z”

Definition at line 582 of file soundeffect.h.

Constructor & Destructor Documentation

◆ VocalMorpher()

FIFE::VocalMorpher::VocalMorpher ( )

Member Function Documentation

◆ getPhonemeA()

uint16_t FIFE::VocalMorpher::getPhonemeA ( ) const

Return phoneme A.

Definition at line 605 of file soundeffect.cpp.

References m_phonemeA.

◆ getPhonemeB()

uint16_t FIFE::VocalMorpher::getPhonemeB ( ) const

Return phoneme B.

Definition at line 616 of file soundeffect.cpp.

References m_phonemeB.

◆ getPhonemeCoarseA()

int16_t FIFE::VocalMorpher::getPhonemeCoarseA ( ) const

Return phoneme coarse A.

Definition at line 627 of file soundeffect.cpp.

References m_phonemeCoarseA.

◆ getPhonemeCoarseB()

int16_t FIFE::VocalMorpher::getPhonemeCoarseB ( ) const

Return phoneme coarse B.

Definition at line 638 of file soundeffect.cpp.

References m_phonemeCoarseB.

◆ getRate()

float FIFE::VocalMorpher::getRate ( ) const

Return rate.

Definition at line 660 of file soundeffect.cpp.

References m_rate.

◆ getWaveform()

uint8_t FIFE::VocalMorpher::getWaveform ( ) const

Return waveform.

Definition at line 649 of file soundeffect.cpp.

References m_waveform.

◆ setPhonemeA()

void FIFE::VocalMorpher::setPhonemeA ( uint16_t  value)

Sets phoneme A.

Parameters
valueRange 0 to 29, default 0.

Definition at line 598 of file soundeffect.cpp.

References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeA.

◆ setPhonemeB()

void FIFE::VocalMorpher::setPhonemeB ( uint16_t  value)

Sets phoneme B.

Parameters
valueRange 0 to 29, default 10.

Definition at line 609 of file soundeffect.cpp.

References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeB.

◆ setPhonemeCoarseA()

void FIFE::VocalMorpher::setPhonemeCoarseA ( int16_t  value)

Sets phoneme coarse A, used to adjust the pitch of phoneme filters A and B in 1-semitone increments.

Parameters
valueRange -24 to 24, default 0.

Definition at line 620 of file soundeffect.cpp.

References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeCoarseA.

◆ setPhonemeCoarseB()

void FIFE::VocalMorpher::setPhonemeCoarseB ( int16_t  value)

Sets phoneme coarse B, used to adjust the pitch of phoneme filters A and B in 1-semitone increments.

Parameters
valueRange -24 to 24, default 0.

Definition at line 631 of file soundeffect.cpp.

References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeCoarseB.

◆ setRate()

void FIFE::VocalMorpher::setRate ( float  value)

Sets rate, the frequency of the low-frequency oscillator used to morph between the two phoneme filters.

Parameters
valueRange 0.0 to 10.0, dfault 1.41.

Definition at line 653 of file soundeffect.cpp.

References FIFE::alEffectf, FIFE::SoundEffect::m_effect, and m_rate.

◆ setWaveform()

void FIFE::VocalMorpher::setWaveform ( uint8_t  value)

Sets waveform, the shape of the low-frequency oscillator used to morph between the two phoneme filters.

Parameters
valueRange 0 to 2, default 0. 0=sin, 1=tri, 2=saw.

Definition at line 642 of file soundeffect.cpp.

References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_waveform.

Member Data Documentation

◆ m_phonemeA

uint16_t FIFE::VocalMorpher::m_phonemeA
private

Definition at line 647 of file soundeffect.h.

Referenced by getPhonemeA(), and setPhonemeA().

◆ m_phonemeB

uint16_t FIFE::VocalMorpher::m_phonemeB
private

Definition at line 648 of file soundeffect.h.

Referenced by getPhonemeB(), and setPhonemeB().

◆ m_phonemeCoarseA

int16_t FIFE::VocalMorpher::m_phonemeCoarseA
private

Definition at line 649 of file soundeffect.h.

Referenced by getPhonemeCoarseA(), and setPhonemeCoarseA().

◆ m_phonemeCoarseB

int16_t FIFE::VocalMorpher::m_phonemeCoarseB
private

Definition at line 650 of file soundeffect.h.

Referenced by getPhonemeCoarseB(), and setPhonemeCoarseB().

◆ m_rate

float FIFE::VocalMorpher::m_rate
private

Definition at line 652 of file soundeffect.h.

Referenced by getRate(), and setRate().

◆ m_waveform

uint8_t FIFE::VocalMorpher::m_waveform
private

Definition at line 651 of file soundeffect.h.

Referenced by getWaveform(), and setWaveform().


The documentation for this class was generated from the following files: