| 
    HephAudio v3.1.0
    
   A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS. 
   | 
 
delays the audio data and changes its pitch periodically. Then mixes the result with the input signal. More...
#include <Chorus.h>
  
Public Member Functions | |
| Chorus () | |
| Chorus (double depth, double constantDelay, double variableDelay, double extent, const Oscillator &lfo) | |
| virtual | ~Chorus ()=default | 
| virtual std::string | Name () const override | 
| virtual size_t | CalculateRequiredFrameCount (size_t outputFrameCount, const AudioFormatInfo &formatInfo) const override | 
| virtual double | GetExtent () const | 
| virtual void | SetExtent (double extent) | 
  Public Member Functions inherited from HephAudio::Flanger | |
| Flanger () | |
| Flanger (double depth, double constantDelay, double variableDelay, const Oscillator &lfo) | |
| virtual | ~Flanger ()=default | 
| virtual void | ResetInternalState () override | 
| virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) override | 
| virtual double | GetConstantDelay () const | 
| virtual void | SetConstantDelay (double constantDelay) | 
| virtual double | GetVariableDelay () const | 
| virtual void | SetVariableDelay (double variableDelay) | 
  Public Member Functions inherited from HephAudio::ModulationEffect | |
| virtual | ~ModulationEffect ()=default | 
| virtual void | SetOscillator (const Oscillator &lfo) | 
| virtual double | GetDepth () const | 
| virtual void | SetDepth (double depth) | 
| virtual void | Process (AudioBuffer &buffer) | 
| virtual void | Process (AudioBuffer &buffer, size_t startIndex) | 
  Public Member Functions inherited from HephAudio::DoubleBufferedAudioEffect | |
| virtual | ~DoubleBufferedAudioEffect ()=default | 
  Public Member Functions inherited from HephAudio::AudioEffect | |
| virtual | ~AudioEffect ()=default | 
| virtual bool | HasMTSupport () const | 
| virtual bool | HasRTSupport () const | 
| virtual size_t | GetThreadCount () const | 
| virtual void | SetThreadCount (size_t threadCount) | 
| virtual size_t | CalculateOutputFrameCount (size_t inputFrameCount, const AudioFormatInfo &formatInfo) const | 
| virtual size_t | CalculateAdvanceSize (size_t renderFrameCount, const AudioFormatInfo &formatInfo) const | 
Protected Member Functions | |
| virtual void | ProcessST (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override | 
| virtual size_t | CalculatePastSamplesSize (const AudioBuffer &inputBuffer) const override | 
  Protected Member Functions inherited from HephAudio::ModulationEffect | |
| ModulationEffect () | |
| ModulationEffect (double depth, const Oscillator &lfo) | |
  Protected Member Functions inherited from HephAudio::DoubleBufferedAudioEffect | |
| DoubleBufferedAudioEffect () | |
| virtual AudioBuffer | CreateOutputBuffer (const AudioBuffer &inputBuffer, size_t startIndex, size_t frameCount) const | 
| virtual void | InitializeOutputBuffer (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) const | 
  Protected Member Functions inherited from HephAudio::AudioEffect | |
| AudioEffect () | |
| virtual void | ProcessMT (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) | 
Protected Attributes | |
| double | extent | 
  Protected Attributes inherited from HephAudio::Flanger | |
| double | constantDelay | 
| double | variableDelay | 
| AudioBuffer | pastSamples | 
  Protected Attributes inherited from HephAudio::ModulationEffect | |
| Heph::DoubleBuffer | lfoBuffer | 
| double | depth | 
| size_t | lfoIndex | 
  Protected Attributes inherited from HephAudio::AudioEffect | |
| size_t | threadCount | 
delays the audio data and changes its pitch periodically. Then mixes the result with the input signal.
| HephAudio::Chorus::Chorus | ( | ) | 
creates a new instance and initializes it with default values.
| HephAudio::Chorus::Chorus | ( | double | depth, | 
| double | constantDelay, | ||
| double | variableDelay, | ||
| double | extent, | ||
| const Oscillator & | lfo ) | 
creates a new instance and initializes it with the provided values.
| depth | controls the dry/wet mix ratio. Ranges between 0 and 1. | 
| lfo | low-frequency oscillator. | 
| constantDelay | constant delay in milliseconds. | 
| variableDelay | maximum value of the variable delay in milliseconds. | 
| extent | maximum pitch change in terms of semitones. | 
      
  | 
  virtualdefault | 
releases the resources and destroys the instance.
      
  | 
  overridevirtual | 
gets the name of the audio effect.
Reimplemented from HephAudio::Flanger.
      
  | 
  overridevirtual | 
calculates the number of frames required to obtain the number of frames desired for the output buffer.
| outputFrameCount | the number of frames desired for the output buffer. | 
| formatInfo | the format info of the input buffer. | 
Reimplemented from HephAudio::AudioEffect.
      
  | 
  virtual | 
gets the maximum pitch change in terms of semitones.
      
  | 
  virtual | 
sets extent.
| extent | maximum pitch change in terms of semitones. | 
      
  | 
  overrideprotectedvirtual | 
applies the effect using single thread.
| inputBuffer | contains the audio data which will be processed. | 
| outputBuffer | contains the processed audio data. | 
| startIndex | index of the first sample to process. | 
| frameCount | number of frames to process. | 
Reimplemented from HephAudio::Flanger.
      
  | 
  overrideprotectedvirtual | 
calculates the number of past samples required.
| inputBuffer | contains the dry data. | 
Reimplemented from HephAudio::Flanger.
      
  | 
  protected | 
maximum pitch change in terms of semitones.