forked from getdunne/VanillaJuce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSynthParameters.h
39 lines (32 loc) · 888 Bytes
/
SynthParameters.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
#pragma once
#include "../JuceLibraryCode/JuceHeader.h"
#include "SynthWaveform.h"
class SynthParameters
{
public:
String programName;
// main
float masterLevel;
float oscBlend; // [0.0, 1.0] relative osc1 level
int pitchBendUpSemitones;
int pitchBendDownSemitones;
// osc 1
SynthWaveform osc1Waveform;
int osc1PitchOffsetSemitones;
float osc1DetuneOffsetCents;
// osc 2
SynthWaveform osc2Waveform;
int osc2PitchOffsetSemitones;
float osc2DetuneOffsetCents;
// amp EG
float ampEgAttackTimeSeconds;
float ampEgDecayTimeSeconds;
float ampEgSustainLevel; // [0.0, 1.0]
float ampEgReleaseTimeSeconds;
public:
// Set default values
void setDefaultValues();
// Save and Restore from XML
XmlElement* getXml();
void putXml(XmlElement* xml);
};