zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit ab4184f725560149e93009362e781110a592aeaf
parent 9a1c77585b38d92ff487e3c095818bd3cbc2f996
Author: Friedolino <[email protected]>
Date:   Sun,  9 Oct 2022 12:11:35 +0200

fix gain bug in combfilter

Diffstat:
Msrc/DSP/Filter.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/DSP/Filter.cpp b/src/DSP/Filter.cpp @@ -60,7 +60,7 @@ Filter *Filter::generate(Allocator &memory, const FilterParams *pars, break; case 4: filter = memory.alloc<CombFilter>(&memory, Ftype, 1000.0f, pars->getq(), srate, bufsize); - filter->outgain = dB2rap(pars->getgain()); + filter->setgain(pars->getgain()); break; default: filter = memory.alloc<AnalogFilter>(Ftype, 1000.0f, pars->getq(), Fstages, srate, bufsize);