HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
Vibrato.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#include "ModulationEffect.h"
4
7namespace HephAudio
8{
15 {
16 public:
18
19 protected:
24
28 double extent;
29
30 public:
33
39 Vibrato(double depth, double extent, const Oscillator& lfo);
40
42 virtual ~Vibrato() = default;
43
44 virtual std::string Name() const override;
45 virtual size_t CalculateRequiredFrameCount(size_t outputFrameCount, const AudioFormatInfo& formatInfo) const override;
46 virtual void Process(AudioBuffer& buffer, size_t startIndex, size_t frameCount) override;
47
52 virtual double GetExtent() const;
53
60 virtual void SetExtent(double extent);
61
62 protected:
63 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
64
71 virtual size_t CalculatePastSamplesSize(const AudioBuffer& inputBuffer) const;
72 };
73}
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for effects that use LFOs.
Definition ModulationEffect.h:15
double depth
Definition ModulationEffect.h:35
virtual void Process(AudioBuffer &buffer, size_t startIndex, size_t frameCount) override
base class for oscillators.
Definition Oscillator.h:16
changes the pitch of the audio data periodically and mixes the result with the input signal.
Definition Vibrato.h:15
virtual void Process(AudioBuffer &buffer, size_t startIndex, size_t frameCount) override
virtual double GetExtent() const
AudioBuffer pastSamples
Definition Vibrato.h:23
virtual size_t CalculatePastSamplesSize(const AudioBuffer &inputBuffer) const
virtual void SetExtent(double extent)
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
virtual size_t CalculateRequiredFrameCount(size_t outputFrameCount, const AudioFormatInfo &formatInfo) const override
double extent
Definition Vibrato.h:28
virtual std::string Name() const override
virtual ~Vibrato()=default
Vibrato(double depth, double extent, const Oscillator &lfo)
stores the properties of the audio signals
Definition AudioFormatInfo.h:20