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.decay = 75.0f;
|
||||||
fParams.accent = 25.0f;
|
fParams.accent = 25.0f;
|
||||||
fParams.volume = 75.0f;
|
fParams.volume = 75.0f;
|
||||||
fParams.bypass = false;
|
|
||||||
|
|
||||||
// Internal stuff
|
// Internal stuff
|
||||||
fSynth.waveform = 0.0f;
|
fSynth.waveform = 0.0f;
|
||||||
|
@ -251,9 +250,6 @@ void DistrhoPluginNekobi::initParameter(uint32_t index, Parameter& parameter)
|
||||||
parameter.ranges.max = 100.0f;
|
parameter.ranges.max = 100.0f;
|
||||||
parameter.midiCC = 7; //Volume
|
parameter.midiCC = 7; //Volume
|
||||||
break;
|
break;
|
||||||
case paramBypass:
|
|
||||||
parameter.initDesignation(kParameterDesignationBypass);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -280,8 +276,6 @@ float DistrhoPluginNekobi::getParameterValue(uint32_t index) const
|
||||||
return fParams.accent;
|
return fParams.accent;
|
||||||
case paramVolume:
|
case paramVolume:
|
||||||
return fParams.volume;
|
return fParams.volume;
|
||||||
case paramBypass:
|
|
||||||
return fParams.bypass ? 1.0f : 0.0f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
@ -331,14 +325,6 @@ void DistrhoPluginNekobi::setParameterValue(uint32_t index, float value)
|
||||||
fSynth.volume = value/100.0f;
|
fSynth.volume = value/100.0f;
|
||||||
DISTRHO_SAFE_ASSERT(fSynth.volume >= 0.0f && fSynth.volume <= 1.0f);
|
DISTRHO_SAFE_ASSERT(fSynth.volume >= 0.0f && fSynth.volume <= 1.0f);
|
||||||
break;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore midi input if bypassed
|
|
||||||
if (fParams.bypass)
|
|
||||||
midiEventCount = 0;
|
|
||||||
|
|
||||||
while (framesDone < frames)
|
while (framesDone < frames)
|
||||||
{
|
{
|
||||||
if (fSynth.nugget_remains == 0)
|
if (fSynth.nugget_remains == 0)
|
||||||
|
|
|
@ -42,7 +42,6 @@ public:
|
||||||
paramDecay,
|
paramDecay,
|
||||||
paramAccent,
|
paramAccent,
|
||||||
paramVolume,
|
paramVolume,
|
||||||
paramBypass,
|
|
||||||
paramCount
|
paramCount
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -118,7 +117,6 @@ private:
|
||||||
float decay;
|
float decay;
|
||||||
float accent;
|
float accent;
|
||||||
float volume;
|
float volume;
|
||||||
bool bypass;
|
|
||||||
} fParams;
|
} fParams;
|
||||||
|
|
||||||
nekobee_synth_t fSynth;
|
nekobee_synth_t fSynth;
|
||||||
|
|
Loading…
Reference in New Issue