commit ab12bc45263bdfbe65b99f139cd7964fe68a7f3d
parent cd8d466ee133b59384d7a1e71af0242d0f9955c8
Author: Friedolino <[email protected]>
Date: Fri, 5 Mar 2021 01:05:53 +0100
add rLinear to some rOptions Ports
to make them accessible via midi CC
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Effects/Distorsion.cpp b/src/Effects/Distorsion.cpp
@@ -49,7 +49,7 @@ rtosc::Ports Distorsion::ports = {
rOptions(Arctangent, Asymmetric, Pow, Sine, Quantisize,
Zigzag, Limiter, Upper Limiter, Lower Limiter,
Inverse Limiter, Clip, Asym2, Pow2, Sigmoid, Tanh,
- Cubic, Square),
+ Cubic, Square), rLinear(0,127),
rPresets(Arctangent, Asymmetric, Zigzag,
Asymmetric, Pow, Quantisize),
"Distortion Shape"),
diff --git a/src/Params/ADnoteParameters.cpp b/src/Params/ADnoteParameters.cpp
@@ -86,7 +86,7 @@ static const Ports voicePorts = {
rOptions(none, random, 50%, 33%, 25%), rDefault(none),
"Subvoice Phases"),
rOption(Type, rShort("type"), rOptions(Sound,White,Pink,DC),
- rDefault(Sound), "Type of Sound"),
+ rLinear(0,127), rDefault(Sound), "Type of Sound"),
rParamZyn(PDelay, rShort("delay"), rDefault(0),
"Voice Startup Delay"),
rToggle(Presonance, rShort("enable"), rDefault(true),
@@ -175,7 +175,7 @@ static const Ports voicePorts = {
//Modulator Stuff
rOption(PFMEnabled, rShort("mode"), rOptions(none, mix, ring, phase,
- frequency, pulse), rDefault(none), "Modulator mode"),
+ frequency, pulse), rLinear(0,127), rDefault(none), "Modulator mode"),
rParamI(PFMVoice, rShort("voice"), rDefault(-1),
"Modulator Oscillator Selection"),
rParamF(FMvolume, rShort("vol."), rLinear(0.0, 100.0),
diff --git a/src/Params/LFOParams.cpp b/src/Params/LFOParams.cpp
@@ -71,7 +71,7 @@ static const rtosc::Ports _ports = {
rParamZyn(Pcutoff, rShort("lp"), rDefault(127),
"RND/SQR lp-filter freq"),
rOption(PLFOtype, rShort("type"), rOptions(sine, triangle, square, up, down,
- exp1, exp2, random), rDefault(sine), "Shape of LFO"),
+ exp1, exp2, random), rLinear(0,127), rDefault(sine), "Shape of LFO"),
rParamZyn(Prandomness, rShort("a.r."), rSpecial(disable), rDefault(0),
"Amplitude Randomness (calculated uniformly at each cycle)"),
rParamZyn(Pfreqrand, rShort("f.r."), rSpecial(disable), rDefault(0),