Skip to content

Commit 059f56f

Browse files
committed
Added Presets
1 parent 65fcc73 commit 059f56f

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

Plateau2/Plateau2.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ Plateau2::Plateau2(const InstanceInfo& info)
7979

8080
GetParam(kDanger)->InitBool("DANGER! Allow Unsafe Feedback Settings", false);
8181

82+
MakePreset("Default", 100.000000, false, false, true, 50.000000, 10.000000, 10.000000, 0.500000, 10.000000, 0.700000, 10.000000, 10.000000, 0.000000, 0.500000, 0.500000, 1.000000, false, false, false, true, 0.000000, false, false, 76.923000, 1.000000, false, 100.000000, 0.000000, 100.000000, 0.000000, false, 0.000000, 0.000000, 10.000000, 10.000000, false, 50.000000, 10.000000, 10.000000, 0.500000, 10.000000, 0.700000, 10.000000, 10.000000, 0.000000, 0.500000, 0.500000, 1.000000, false, false, false, true, 0.000000, false, false, 76.923000, 1.000000, false, 100.000000, 0.000000, 100.000000, 0.000000, false, 0.000000, 0.000000, 10.000000, 10.000000, false);
83+
MakePreset("Cave", 100.000000, false, false, true, 50.000000, 10.000000, 10.000000, 0.419643, 10.000000, 0.237998, 10.000000, 10.000000, 0.000000, 0.500000, 0.500000, 1.000000, false, false, false, true, 0.000000, false, false, 76.923000, 1.000000, false, 100.000000, 0.000000, 100.000000, 0.000000, true, 29.910714, 0.131696, 10.000000, 10.000000, true, 22.619048, 10.000000, 7.767857, 0.584821, 10.000000, 0.466990, 10.000000, 7.053571, 0.245536, 0.714286, 0.500000, 1.000000, false, false, false, true, 0.000000, true, false, 64.423000, 1.000000, false, 22.321429, 0.000000, 100.000000, 0.000000, false, 0.000000, 0.000000, 10.000000, 10.000000, false);
84+
MakePreset("Bass-ment", 68.452381, false, false, true, 92.261905, 10.000000, 4.866071, 0.473214, 3.571429, 0.377201, 10.000000, 6.875000, 0.272321, 1.285714, 0.500000, 1.000000, false, false, false, false, 0.000000, false, false, 99.244429, 0.982143, true, 100.000000, 0.000000, 131.250000, 0.000000, false, 0.000000, 0.000000, 10.000000, 10.000000, true, 75.595238, 3.616071, 10.000000, 0.495536, 5.892857, 0.768296, 7.232143, 10.000000, 0.218750, 3.000000, 1.000000, 0.459821, false, false, false, true, 0.039286, true, false, 36.744499, 0.165179, false, 100.000000, 0.000000, 100.000000, 0.000000, false, 0.000000, 0.000000, 10.000000, 10.000000, false);
85+
8286

8387
reverb1.setSampleRate(GetSampleRate());
8488
envelope1.setSampleRate(GetSampleRate());
@@ -208,6 +212,9 @@ Plateau2::Plateau2(const InstanceInfo& info)
208212
pGraphics->AttachControl(Buttons[i]);
209213
}
210214

215+
//Dump Preset Button
216+
pGraphics->AttachControl((new LEDButton(IRECT::MakeXYWH(0, 40, 102, 102), LEDScale, LedOffSVG, LedOnBothSVG, LedOnBothSVG, [this](IControl* button) {DumpMakePresetSrc("C:/dev/Plugins/Plateau/Plateau2/preset.txt");})));
217+
211218
//Tank Enable Switch
212219
Switches[4] = new LEDSwitch(IRECT::MakeXYWH(106.5f, 112, 102, 102), LEDScale, LedOffSVG, LedOn1SVG, LedOn2SVG, kEnable1, kEnable2);
213220
Switches[4]->SetValue(1);
@@ -703,7 +710,7 @@ void Plateau2::ProcessBlock(sample** inputs, sample** outputs, int nFrames)
703710
reverb2.freeze(frozen2);
704711
}
705712

706-
reverb2.process((double)(std::get<0>(sourceBalance2)* envelope2._value* inputs[0][s] * input2), (double)(std::get<1>(sourceBalance2)* envelope2._value* (inputs[nChans > 1 ? 1 : 0][s] * input2)), (send1to2 ? (envelope2._value * level1to2 * reverbOut1) : 0));
713+
//reverb2.process((double)(std::get<0>(sourceBalance2)* envelope2._value* inputs[0][s] * input2), (double)(std::get<1>(sourceBalance2)* envelope2._value* (inputs[nChans > 1 ? 1 : 0][s] * input2)), (send1to2 ? (envelope2._value * level1to2 * reverbOut1) : 0));
707714

708715

709716
std::tuple<double, double> out = seperation(reverb2.getLeftOutput(), reverb2.getRightOutput(), GetParam(kWidth2)->Value()/100);

Plateau2/Plateau2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "./controls/LEDRadio.cpp"
1313
#include "./controls/NavigatorButton.cpp"
1414

15-
const int kNumPresets = 1;
15+
const int kNumPresets = 3;
1616

1717
enum EParams
1818
{

Plateau2/config/Plateau2-mac.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ EXTRA_LNK_FLAGS = -framework Metal -framework MetalKit $(IGRAPHICS_LNK_FLAGS)
2424

2525
//------------------------------
2626
// PREPROCESSOR MACROS
27-
EXTRA_ALL_DEFS = OBJC_PREFIX=vPlateau2 SWELL_APP_PREFIX=Swell_vPlateau2 IGRAPHICS_SKIA IGRAPHICS_CPU
27+
EXTRA_ALL_DEFS = OBJC_PREFIX=vPlateau2 SWELL_APP_PREFIX=Swell_vPlateau2 IGRAPHICS_SKIA IGRAPHICS_CPU VST3_PRESET_LIST
2828
//EXTRA_DEBUG_DEFS =
2929
//EXTRA_RELEASE_DEFS =
3030
//EXTRA_TRACER_DEFS =

Plateau2/config/Plateau2-win.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup Label="UserMacros">
44
<IPLUG2_ROOT>$(ProjectDir)..\..\iPlug2</IPLUG2_ROOT>
55
<BINARY_NAME>Plateau2</BINARY_NAME>
6-
<EXTRA_ALL_DEFS>IGRAPHICS_SKIA;IGRAPHICS_CPU</EXTRA_ALL_DEFS>
6+
<EXTRA_ALL_DEFS>IGRAPHICS_SKIA;IGRAPHICS_CPU;VST3_PRESET_LIST</EXTRA_ALL_DEFS>
77
<EXTRA_DEBUG_DEFS />
88
<EXTRA_RELEASE_DEFS />
99
<EXTRA_TRACER_DEFS />

0 commit comments

Comments
 (0)