-
Notifications
You must be signed in to change notification settings - Fork 1
/
rektifier.h
51 lines (43 loc) · 933 Bytes
/
rektifier.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
45
46
47
48
49
50
51
#pragma once
//#define SOUNDWOOFER_NO_API
#include "./config.h"
#include "./GuitarD/src/headless/compile_unit/GHeadlessUnit.h"
#include "IPlug_include_in_plug_hdr.h"
#include "IControls.h"
#include "IPlugPaths.h"
const int kNumPresets = 1;
enum EParams
{
kParamGate = 0,
kParamGain,
kParamWidth,
kParamCab,
kParamRekt,
kParamSag,
kParamInput,
kNumParams
};
enum EControlTags
{
kCtrlTags
};
using namespace iplug;
using namespace igraphics;
class rektifier final : public Plugin
{
public:
rektifier(const InstanceInfo& info);
#if IPLUG_EDITOR
void OnMidiMsgUI(const IMidiMsg& msg) override;
void OnUIClose() override;
#endif
#if IPLUG_DSP // http://bit.ly/2S64BDd
public:
void ProcessBlock(sample** inputs, sample** outputs, int nFrames) override;
void OnIdle() override;
void OnReset() override;
void OnActivate(bool active) override;
private:
guitard::GuitarDHeadless mGuitard;
#endif
};