mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Fixed envelopes not reseting
This commit is contained in:
parent
138c2ab433
commit
6898ef0dac
3 changed files with 15 additions and 1 deletions
|
|
@ -723,7 +723,16 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
|
||||||
{
|
{
|
||||||
juce::ScopedNoDenormals noDenormals;
|
juce::ScopedNoDenormals noDenormals;
|
||||||
if (! dspLock.tryEnter())
|
if (! dspLock.tryEnter())
|
||||||
|
{
|
||||||
|
blockMissed = true;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (blockMissed)
|
||||||
|
{
|
||||||
|
blockMissed = false;
|
||||||
|
turnOffAllVoices (false);
|
||||||
|
}
|
||||||
|
|
||||||
startBlock();
|
startBlock();
|
||||||
setMPE (globalParams.mpe->isOn());
|
setMPE (globalParams.mpe->isOn());
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,7 @@ public:
|
||||||
gin::StepLFO modStepLFO;
|
gin::StepLFO modStepLFO;
|
||||||
|
|
||||||
juce::AudioPlayHead* playhead = nullptr;
|
juce::AudioPlayHead* playhead = nullptr;
|
||||||
|
bool blockMissed = false;
|
||||||
|
|
||||||
struct CurTable
|
struct CurTable
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -52,13 +52,17 @@ void WavetableVoice::noteStarted()
|
||||||
|
|
||||||
for (auto& osc : oscillators)
|
for (auto& osc : oscillators)
|
||||||
osc.noteOn();
|
osc.noteOn();
|
||||||
|
|
||||||
noise.noteOn();
|
noise.noteOn();
|
||||||
sub.noteOn();
|
sub.noteOn();
|
||||||
|
|
||||||
filterADSR.noteOn();
|
filterADSR.noteOn();
|
||||||
|
|
||||||
for (auto& a : modADSRs)
|
for (auto& a : modADSRs)
|
||||||
|
{
|
||||||
|
a.reset();
|
||||||
a.noteOn();
|
a.noteOn();
|
||||||
|
}
|
||||||
|
|
||||||
for (auto& l : modLFOs)
|
for (auto& l : modLFOs)
|
||||||
l.noteOn();
|
l.noteOn();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue