We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 45bb284 + 9c513a9 commit 916835bCopy full SHA for 916835b
2 files changed
Source/main.h
@@ -10,7 +10,7 @@
10
void setup(ProgramVector* pv);
11
void processBlock(ProgramVector* pv);
12
13
- void doSetPatchParameter(uint8_t id, uint16_t value);
+ void doSetPatchParameter(uint8_t id, int16_t value);
14
void doSetButton(uint8_t id, uint16_t state, uint16_t samples);
15
void onButtonChanged(uint8_t bid, uint16_t state, uint16_t samples);
16
void onEncoderChanged(uint8_t bid, int16_t delta, uint16_t samples);
TestPatches/PatchParameterTestPatch.hpp
@@ -9,17 +9,19 @@ class PatchParameterTestPatch : public Patch {
9
FloatParameter p2;
IntParameter p3;
FloatParameter p4;
-
+ FloatParameter p5;
public:
PatchParameterTestPatch(){
p1 = getFloatParameter("float", 0.0, 1.0);
p2 = getFloatParameter("smoothfloat", 0.0, 1.0, 0.5, 0.9);
17
p3 = getIntParameter("stiffint", 0, 10, 0, 0, 2);
18
- p4 = getFloatParameter("expfloat", 0.0, 10.0, 0.0, 0.0, 0.0, 2.0);
+ p4 = getFloatParameter("expfloat", 0.0, 10.0, 0.0, 0.0, 0.0, EXP);
19
+ p5 = getFloatParameter("logfloat", 0.0, 10.0, 0.0, 0.0, 0.0, LOG);
20
}
21
void processAudio(AudioBuffer &buffer){
22
// debugMessage("p1/p2/p3", (float)p1, (float)p2, (float)p3);
- debugMessage("p2/p3/p4", (float)p2, (float)p3, (float)p4);
23
+ // debugMessage("p2/p3/p4", (float)p2, (float)p3, (float)p4);
24
+ debugMessage("p3/p4/p5", (float)p3, (float)p4, (float)p5);
25
26
};
27
0 commit comments