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
ArctanDistortion.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#include "AudioEffect.h"
4
7namespace HephAudio
8{
14 {
15 protected:
21 double factor;
22
23 public:
26
33 explicit ArctanDistortion(double factor);
34
36 virtual ~ArctanDistortion() = default;
37
38 virtual std::string Name() const override;
39
44 virtual double GetFactor() const;
45
51 virtual void SetFactor(double factor);
52
53 protected:
54 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
55 };
56}
applies soft-clipping distortion via arctan function.
Definition ArctanDistortion.h:14
double factor
Definition ArctanDistortion.h:21
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
ArctanDistortion(double factor)
virtual double GetFactor() const
virtual void SetFactor(double factor)
virtual ~ArctanDistortion()=default
virtual std::string Name() const override
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for the audio effects.
Definition AudioEffect.h:15