Remove the old useless bypass, update DPF
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
566140b52b
commit
7072dd3776
2
dpf
2
dpf
|
@ -1 +1 @@
|
|||
Subproject commit 4165681819f934ef2ae8a262cc07cb643d0de025
|
||||
Subproject commit 417f234b16911ab36311a4f31c5b82017e5e56e5
|
|
@ -135,7 +135,6 @@ DistrhoPluginNekobi::DistrhoPluginNekobi()
|
|||
fParams.decay = 75.0f;
|
||||
fParams.accent = 25.0f;
|
||||
fParams.volume = 75.0f;
|
||||
fParams.bypass = false;
|
||||
|
||||
// Internal stuff
|
||||
fSynth.waveform = 0.0f;
|
||||
|
@ -251,9 +250,6 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter)
|
|||
parameter.ranges.max = 100.0f;
|
||||
parameter.midiCC = 7; //Volume
|
||||
break;
|
||||
case paramBypass:
|
||||
parameter.initDesignation(kParameterDesignationBypass);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -280,8 +276,6 @@ float DistrhoPluginNekobi::getParameterValue(uint32_t index) const
|
|||
return fParams.accent;
|
||||
case paramVolume:
|
||||
return fParams.volume;
|
||||
case paramBypass:
|
||||
return fParams.bypass ? 1.0f : 0.0f;
|
||||
}
|
||||
|
||||
return 0.0f;
|
||||
|
@ -331,14 +325,6 @@ void DistrhoPluginNekobi::setParameterValue(uint32_t index, float value)
|
|||
fSynth.volume = value/100.0f;
|
||||
DISTRHO_SAFE_ASSERT(fSynth.volume >= 0.0f && fSynth.volume <= 1.0f);
|
||||
break;
|
||||
case paramBypass: {
|
||||
const bool bypass = (value > 0.5f);
|
||||
if (fParams.bypass != bypass)
|
||||
{
|
||||
fParams.bypass = bypass;
|
||||
nekobee_synth_all_voices_off(&fSynth);
|
||||
}
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -374,10 +360,6 @@ void DistrhoPluginNekobi::run(const float**, float** outputs, uint32_t frames, c
|
|||
return;
|
||||
}
|
||||
|
||||
// ignore midi input if bypassed
|
||||
if (fParams.bypass)
|
||||
midiEventCount = 0;
|
||||
|
||||
while (framesDone < frames)
|
||||
{
|
||||
if (fSynth.nugget_remains == 0)
|
||||
|
|
|
@ -42,7 +42,6 @@ public:
|
|||
paramDecay,
|
||||
paramAccent,
|
||||
paramVolume,
|
||||
paramBypass,
|
||||
paramCount
|
||||
};
|
||||
|
||||
|
@ -118,7 +117,6 @@ private:
|
|||
float decay;
|
||||
float accent;
|
||||
float volume;
|
||||
bool bypass;
|
||||
} fParams;
|
||||
|
||||
nekobee_synth_t fSynth;
|
||||
|
|
Loading…
Reference in New Issue