-
Notifications
You must be signed in to change notification settings - Fork 0
/
Params.h
71 lines (57 loc) · 918 Bytes
/
Params.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#pragma once
enum EParams
{
kVolume,
kNoiseType,
kNoiseAmpMod,
kNoiseRate,
kNoiseRange,
kNoiseShape,
// parameter for automating the scrub between saved Noise Snapshots
kNoiseSnapshot,
kEnvAttack,
kEnvDecay,
kEnvSustain,
kEnvRelease,
kNumParams,
};
enum EParamSettings
{
// these are in dB
kVolumeMin = -48,
kVolumeMax = 12,
kVolumeDefault = 0,
kNoiseSnapshotMin = 0,
kNoiseSnapshotMax = 7,
kNoiseSnapshotCount,
kNoiseSnapshotDefault = 0,
};
enum ENoiseType
{
NT_White,
NT_Pink,
NT_Brown,
NT_Count,
};
enum ECtrlTags
{
kCtrlTagMeter = 0,
kMidiMapper,
kNumCtrlTags
};
// used by the UI to send messages to the main plugin class.
enum EMessages
{
kSetMidiMapping,
};
// data payload for the SetMidiMapping message
struct MidiMapping
{
enum CC
{
kNone = 128
};
const int param;
const CC midiCC;
MidiMapping(int p, CC cc = kNone) : param(p), midiCC(cc) {}
};