AudioDataLib
A C++ library of classes supporting a variety of audio-data tasks.
Loading...
Searching...
No Matches
AudioDataLib::PitchShiftModule Class Reference

#include <PitchShiftModule.h>

Inheritance diagram for AudioDataLib::PitchShiftModule:
AudioDataLib::SynthModule

Public Member Functions

 PitchShiftModule ()
 
virtual ~PitchShiftModule ()
 
virtual bool GenerateSound (double durationSeconds, double samplesPerSecond, WaveForm &waveForm, SynthModule *callingModule, Error &error) override
 
virtual bool MoreSoundAvailable () override
 
void SetSourceAndTargetFrequencies (double sourceFrequency, double targetFrequency)
 
double GetSourceFrequency () const
 
double GetTargetFrequency () const
 
- Public Member Functions inherited from AudioDataLib::SynthModule
 SynthModule ()
 
virtual ~SynthModule ()
 
void AddDependentModule (std::shared_ptr< SynthModule > synthModule)
 
std::shared_ptr< SynthModuleGetDependentModule (uint32_t i)
 
uint32_t GetNumDependentModules () const
 
void PruneDeadBranches ()
 
void Clear ()
 
template<typename T >
T * FindModule ()
 

Protected Attributes

double sourceFrequency
 
double targetFrequency
 
- Protected Attributes inherited from AudioDataLib::SynthModule
std::vector< std::shared_ptr< SynthModule > > * dependentModulesArray
 

Constructor & Destructor Documentation

◆ PitchShiftModule()

PitchShiftModule::PitchShiftModule ( )

◆ ~PitchShiftModule()

PitchShiftModule::~PitchShiftModule ( )
virtual

Member Function Documentation

◆ GenerateSound()

bool PitchShiftModule::GenerateSound ( double durationSeconds,
double samplesPerSecond,
WaveForm & waveForm,
SynthModule * callingModule,
Error & error )
overridevirtual

◆ GetSourceFrequency()

double AudioDataLib::PitchShiftModule::GetSourceFrequency ( ) const
inline

◆ GetTargetFrequency()

double AudioDataLib::PitchShiftModule::GetTargetFrequency ( ) const
inline

◆ MoreSoundAvailable()

bool PitchShiftModule::MoreSoundAvailable ( )
overridevirtual

Reimplemented from AudioDataLib::SynthModule.

◆ SetSourceAndTargetFrequencies()

void PitchShiftModule::SetSourceAndTargetFrequencies ( double sourceFrequency,
double targetFrequency )

Member Data Documentation

◆ sourceFrequency

double AudioDataLib::PitchShiftModule::sourceFrequency
protected

◆ targetFrequency

double AudioDataLib::PitchShiftModule::targetFrequency
protected

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