ofxPDSP
Saturator2.h
1 
2 // Saturator2.h
3 // ofxPDSP
4 // Nicola Pisanti, MIT License, 2016
5 
6 #ifndef PDSP_SIGNAL_TANHSATURATOR_H_INCLUDED
7 #define PDSP_SIGNAL_TANHSATURATOR_H_INCLUDED
8 
9 #include "../pdspCore.h"
10 
11 namespace pdsp{
12 
19 class Saturator2 : public Formula {
20 
21 private:
22 
23  float formula(const float &x) noexcept override;
24 
25  void formulaAudioRate(float* &output, const float* &input, const int &bufferSize) noexcept override;
26 
27 };
28 
29 }//END NAMESPACE
30 
31 
32 #endif // PDSP_SIGNAL_TANHSATURATOR_H_INCLUDED
Saturator unit, tanh curve.
Definition: Saturator2.h:19
Thread-safe value control with smoothing.
Definition: SequencerBridge.h:11
An abstract unit with one input and one output and no other controls, for simple processing.
Definition: Formula.h:20