FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
The pitch shifter applies time-invariant pitch shifting to the input signal, over a one octave range and controllable at a semi-tone and cent resolution. More...
#include <soundeffect.h>
Public Member Functions | |
PitchShifter () | |
Constructor. More... | |
void | setCoarseTune (int16_t value) |
Sets coarse tune, the number of semitones by which the pitch is shifted. More... | |
int16_t | getCoarseTune () const |
Return coarse tune. More... | |
void | setFineTune (int16_t value) |
Sets fine tune, the number of cents between Semitones a pitch is shifted. More... | |
int16_t | getFineTune () const |
Return fine tune. More... | |
![]() | |
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 | |
int16_t | m_coarseTune |
int16_t | m_fineTune |
Additional Inherited Members | |
![]() | |
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 pitch shifter applies time-invariant pitch shifting to the input signal, over a one octave range and controllable at a semi-tone and cent resolution.
Definition at line 658 of file soundeffect.h.
FIFE::PitchShifter::PitchShifter | ( | ) |
Constructor.
Definition at line 665 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, FIFE::SoundEffect::m_effectType, and FIFE::SE_EFFECT_PITCH_SHIFTER.
int16_t FIFE::PitchShifter::getCoarseTune | ( | ) | const |
int16_t FIFE::PitchShifter::getFineTune | ( | ) | const |
void FIFE::PitchShifter::setCoarseTune | ( | int16_t | value | ) |
Sets coarse tune, the number of semitones by which the pitch is shifted.
There are 12 semitones per octave.
value | Range -12 to 12, default 12. |
Definition at line 672 of file soundeffect.cpp.
References FIFE::alEffecti, m_coarseTune, and FIFE::SoundEffect::m_effect.
void FIFE::PitchShifter::setFineTune | ( | int16_t | value | ) |
Sets fine tune, the number of cents between Semitones a pitch is shifted.
A Cent is 1/100th of a Semitone.
value | Range -50 to 50, default 0. |
Definition at line 683 of file soundeffect.cpp.
References FIFE::alEffecti, FIFE::SoundEffect::m_effect, and m_fineTune.
|
private |
Definition at line 685 of file soundeffect.h.
Referenced by getCoarseTune(), and setCoarseTune().
|
private |
Definition at line 686 of file soundeffect.h.
Referenced by getFineTune(), and setFineTune().