|
|
|
@@ -211,10 +211,6 @@ void SUBnote::setup(float freq, |
|
|
|
GlobalFilter->updateNoteFreq(basefreq); |
|
|
|
} |
|
|
|
|
|
|
|
if(GlobalFilter) |
|
|
|
GlobalFilter->updateSense(velocity, pars.PGlobalFilterVelocityScale, |
|
|
|
pars.PGlobalFilterVelocityScaleFunction); |
|
|
|
|
|
|
|
oldamplitude = newamplitude; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -391,6 +387,9 @@ void SUBnote::initparameters(float freq) |
|
|
|
|
|
|
|
GlobalFilter = memory.alloc<ModFilter>(*pars.GlobalFilter, synth, time, memory, stereo, freq); |
|
|
|
|
|
|
|
GlobalFilter->updateSense(velocity, pars.PGlobalFilterVelocityScale, |
|
|
|
pars.PGlobalFilterVelocityScaleFunction); |
|
|
|
|
|
|
|
GlobalFilter->addMod(*GlobalFilterEnvelope); |
|
|
|
} |
|
|
|
computecurrentparameters(); |
|
|
|
|