Skip to content

Commit 916835b

Browse files
author
mars
committed
Merge branch 'events'
2 parents 45bb284 + 9c513a9 commit 916835b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Source/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
void setup(ProgramVector* pv);
1111
void processBlock(ProgramVector* pv);
1212

13-
void doSetPatchParameter(uint8_t id, uint16_t value);
13+
void doSetPatchParameter(uint8_t id, int16_t value);
1414
void doSetButton(uint8_t id, uint16_t state, uint16_t samples);
1515
void onButtonChanged(uint8_t bid, uint16_t state, uint16_t samples);
1616
void onEncoderChanged(uint8_t bid, int16_t delta, uint16_t samples);

TestPatches/PatchParameterTestPatch.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ class PatchParameterTestPatch : public Patch {
99
FloatParameter p2;
1010
IntParameter p3;
1111
FloatParameter p4;
12-
12+
FloatParameter p5;
1313
public:
1414
PatchParameterTestPatch(){
1515
p1 = getFloatParameter("float", 0.0, 1.0);
1616
p2 = getFloatParameter("smoothfloat", 0.0, 1.0, 0.5, 0.9);
1717
p3 = getIntParameter("stiffint", 0, 10, 0, 0, 2);
18-
p4 = getFloatParameter("expfloat", 0.0, 10.0, 0.0, 0.0, 0.0, 2.0);
18+
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);
1920
}
2021
void processAudio(AudioBuffer &buffer){
2122
// debugMessage("p1/p2/p3", (float)p1, (float)p2, (float)p3);
22-
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);
2325
}
2426
};
2527

0 commit comments

Comments
 (0)