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
Tremolo.h
Go to the documentation of this file.
1#pragma once
2#include "ModulationEffect.h"
3
6namespace HephAudio
7{
12 {
13 public:
15
16 public:
19
21 Tremolo(double depth, const Oscillator& lfo);
22
24 virtual ~Tremolo() = default;
25
26 virtual std::string Name() const override;
27 virtual void Process(AudioBuffer& buffer, size_t startIndex, size_t frameCount) override;
28
29 protected:
30 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
31 };
32}
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 volume of the audio data periodically and mixes the result with the input signal.
Definition Tremolo.h:12
Tremolo(double depth, const Oscillator &lfo)
virtual ~Tremolo()=default
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
virtual void Process(AudioBuffer &buffer, size_t startIndex, size_t frameCount) override
virtual std::string Name() const override