35class AUD_API AnimateableTimeStretchPitchScale :
public Effect
46 std::shared_ptr<AnimateableProperty> m_timeStretch;
51 std::shared_ptr<AnimateableProperty> m_pitchScale;
56 StretcherQuality m_quality;
61 bool m_preserveFormant;
64 AnimateableTimeStretchPitchScale(
const AnimateableTimeStretchPitchScale&) =
delete;
65 AnimateableTimeStretchPitchScale& operator=(
const AnimateableTimeStretchPitchScale&) =
delete;
88 AnimateableTimeStretchPitchScale(std::shared_ptr<ISound> sound,
float fps, std::shared_ptr<AnimateableProperty> timeStretch, std::shared_ptr<AnimateableProperty> pitchScale,
89 StretcherQuality quality,
bool preserveFormant);
Defines the AnimateableProperty class as well as existing property types.
AnimateablePropertyType
Possible animatable properties for Sequencer Factories and Entries.
Definition AnimateableProperty.h:35
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
The TimeStretchPitchScale class.
virtual std::shared_ptr< IReader > createReader()
Creates a reader for playback of the sound source.
std::shared_ptr< AnimateableProperty > getAnimProperty(AnimateablePropertyType type)
Retrieves one of the animated properties of the sound.
StretcherQuality getStretcherQuality() const
Returns the quality of the stretcher.
bool getPreserveFormant() const
Returns whether formant preservation is enabled.
AnimateableTimeStretchPitchScale(std::shared_ptr< ISound > sound, float fps, std::shared_ptr< AnimateableProperty > timeStretch, std::shared_ptr< AnimateableProperty > pitchScale, StretcherQuality quality, bool preserveFormant)
Creates a new time-stretch, pitch-scaled sound that can be animated.
void setFPS(float fps)
Sets the animation system's FPS.
float getFPS() const
Retrieves the animation system's FPS.
AnimateableTimeStretchPitchScale(std::shared_ptr< ISound > sound, float fps, float timeStretch, float pitchScale, StretcherQuality quality, bool preserveFormant)
Creates a new time-stretch, pitch-scaled sound that can be animated.