Browse Source

Remove the old useless bypass, update DPF

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 10 months ago
parent
commit
7072dd3776
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 1 additions and 21 deletions
  1. +1
    -1
      dpf
  2. +0
    -18
      plugins/Nekobi/DistrhoPluginNekobi.cpp
  3. +0
    -2
      plugins/Nekobi/DistrhoPluginNekobi.hpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 4165681819f934ef2ae8a262cc07cb643d0de025
Subproject commit 417f234b16911ab36311a4f31c5b82017e5e56e5

+ 0
- 18
plugins/Nekobi/DistrhoPluginNekobi.cpp View File

@@ -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)


+ 0
- 2
plugins/Nekobi/DistrhoPluginNekobi.hpp View File

@@ -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…
Cancel
Save