-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApproachSquare.h
44 lines (30 loc) · 856 Bytes
/
ApproachSquare.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef MARSYAS_GUITAR_EFFECTS_APPROACHSQUARE_H
#define MARSYAS_GUITAR_EFFECTS_APPROACHSQUARE_H
#include <marsyas/system/MarSystem.h>
using namespace Marsyas;
namespace MarsyasGuitarEffects
{
/**
\class ApproachSquare
\ingroup Distortion
\brief Let wave be more likely to square wave.
\input wave samples
\output wave samples
\control mrs_natural/amount 0~+Infinity: higher amount => more distortion
*/
class ApproachSquare : public MarSystem
{
private:
mrs_natural amount_;
MarControlPtr ctrl_amount_;
void addControls (void);
void myUpdate (MarControlPtr);
mrs_natural _amount_;
public:
ApproachSquare (std::string name);
~ApproachSquare (void);
MarSystem* clone (void) const;
void myProcess (realvec& in, realvec& out);
};
} // namespace
#endif