This sound allows a sound to be time-stretched and pitch scaled.
More...
#include <TimeStretchPitchScale.h>
|
| std::shared_ptr< IReader > | getReader () const |
| | Returns the reader created out of the sound. More...
|
| |
|
std::shared_ptr< ISound > | m_sound |
| | If there is no reader it is created out of this sound.
|
| |
This sound allows a sound to be time-stretched and pitch scaled.
- Note
- The reader has to be seekable.
◆ TimeStretchPitchScale()
| TimeStretchPitchScale::TimeStretchPitchScale |
( |
std::shared_ptr< ISound > |
sound, |
|
|
double |
timeRatio, |
|
|
double |
pitchScale, |
|
|
StretcherQuality |
quality, |
|
|
bool |
preserveFormant |
|
) |
| |
Creates a new time-stretch, pitch scaled sound.
- Parameters
-
| sound | The input sound. |
| timeRatio | The factor by which to stretch or compress time. |
| pitchScale | The factor by which to adjust the pitch. |
| quality | The processing quality level. |
| preserveFormant | Whether to preserve the vocal formants for the stretcher. |
◆ createReader()
| virtual std::shared_ptr<IReader> TimeStretchPitchScale::createReader |
( |
| ) |
|
|
virtual |
Creates a reader for playback of the sound source.
- Returns
- A pointer to an IReader object or nullptr if there has been an error.
- Exceptions
-
| Exception | An exception may be thrown if there has been a more unexpected error during reader creation. |
Implements ISound.
The documentation for this class was generated from the following file: