commit 2456ef3689cf58fd6ec9c240b7a0fa499f2b844b
parent 6c85169d69c132411092a22be245f90211123243
Author: Friedolino <mkirchn@freenet.de>
Date: Wed, 22 Nov 2023 17:27:58 +0100
add negative Combfiltertypes
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/DSP/CombFilter.cpp b/src/DSP/CombFilter.cpp
@@ -113,6 +113,18 @@ void CombFilter::settype(unsigned char type_)
gainfwd = q;
gainbwd = q;
break;
+ case 3:
+ gainfwd = 0.0f;
+ gainbwd = -q;
+ break;
+ case 4:
+ gainfwd = -q;
+ gainbwd = 0.0f;
+ break;
+ case 5:
+ gainfwd = -q;
+ gainbwd = -q;
+ break;
}
}
diff --git a/src/Params/FilterParams.cpp b/src/Params/FilterParams.cpp
@@ -173,7 +173,7 @@ const rtosc::Ports FilterParams::ports = {
rOptions(HP, BP, LP)
rDoc("Filter Type"), 0, rOptionCb(Ptype)},
{"type-comb::i:c:S", rProp(parameter) rProp(enumerated) rShort("type")
- rOptions(BWD, FWD, both)
+ rOptions(BWD, FWD, both, BWDN, FWDN, bothN)
rDoc("Comb Filter Type"), 0, rOptionCb(Ptype)},
//UI reader
{"Pvowels:", rDoc("Get Formant Vowels"), NULL,