FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
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>
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... | |
SoundFilter * | getFilter () |
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... | |
SoundFilter * | m_filter |
Additional filter effect. More... | |
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.
FIFE::VocalMorpher::VocalMorpher | ( | ) |
Constructor.
Definition at line 587 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, FIFE::SoundEffect::m_effectType, and FIFE::SE_EFFECT_VOCAL_MORPHER.
uint16_t FIFE::VocalMorpher::getPhonemeA | ( | ) | const |
uint16_t FIFE::VocalMorpher::getPhonemeB | ( | ) | const |
int16_t FIFE::VocalMorpher::getPhonemeCoarseA | ( | ) | const |
Return phoneme coarse A.
Definition at line 627 of file soundeffect.cpp.
References m_phonemeCoarseA.
int16_t FIFE::VocalMorpher::getPhonemeCoarseB | ( | ) | const |
Return phoneme coarse B.
Definition at line 638 of file soundeffect.cpp.
References m_phonemeCoarseB.
float FIFE::VocalMorpher::getRate | ( | ) | const |
uint8_t FIFE::VocalMorpher::getWaveform | ( | ) | const |
void FIFE::VocalMorpher::setPhonemeA | ( | uint16_t | value | ) |
Sets phoneme A.
value | Range 0 to 29, default 0. |
Definition at line 598 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeA.
void FIFE::VocalMorpher::setPhonemeB | ( | uint16_t | value | ) |
Sets phoneme B.
value | Range 0 to 29, default 10. |
Definition at line 609 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeB.
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.
value | Range -24 to 24, default 0. |
Definition at line 620 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeCoarseA.
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.
value | Range -24 to 24, default 0. |
Definition at line 631 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_phonemeCoarseB.
void FIFE::VocalMorpher::setRate | ( | float | value | ) |
Sets rate, the frequency of the low-frequency oscillator used to morph between the two phoneme filters.
value | Range 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.
void FIFE::VocalMorpher::setWaveform | ( | uint8_t | value | ) |
Sets waveform, the shape of the low-frequency oscillator used to morph between the two phoneme filters.
value | Range 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.
|
private |
Definition at line 647 of file soundeffect.h.
Referenced by getPhonemeA(), and setPhonemeA().
|
private |
Definition at line 648 of file soundeffect.h.
Referenced by getPhonemeB(), and setPhonemeB().
|
private |
Definition at line 649 of file soundeffect.h.
Referenced by getPhonemeCoarseA(), and setPhonemeCoarseA().
|
private |
Definition at line 650 of file soundeffect.h.
Referenced by getPhonemeCoarseB(), and setPhonemeCoarseB().
|
private |
Definition at line 652 of file soundeffect.h.
|
private |
Definition at line 651 of file soundeffect.h.
Referenced by getWaveform(), and setWaveform().