-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCutoff.h
42 lines (29 loc) · 783 Bytes
/
Cutoff.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
#ifndef MARSYAS_GUITAR_EFFECTS_CUTOFF_H
#define MARSYAS_GUITAR_EFFECTS_CUTOFF_H
#include <marsyas/system/MarSystem.h>
using namespace Marsyas;
namespace MarsyasGuitarEffects
{
/**
\class Cutoff
\ingroup Distortion
\brief Set up threshold and cut input signals.
\input wave samples
\output wave samples
\control mrs_real/amount -Infinity~+Infinity: higher amount => more distortion
*/
class Cutoff : public MarSystem
{
private:
mrs_real amount_;
MarControlPtr ctrl_amount_;
void addControls (void);
void myUpdate (MarControlPtr);
public:
Cutoff (std::string name);
~Cutoff (void);
MarSystem* clone (void) const;
void myProcess (realvec& in, realvec& out);
};
} // namespace
#endif