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;
|
||||
if (! dspLock.tryEnter())
|
||||
{
|
||||
blockMissed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (blockMissed)
|
||||
{
|
||||
blockMissed = false;
|
||||
turnOffAllVoices (false);
|
||||
}
|
||||
|
||||
startBlock();
|
||||
setMPE (globalParams.mpe->isOn());
|
||||
|
|
|
|||
|
|
@ -269,6 +269,7 @@ public:
|
|||
gin::StepLFO modStepLFO;
|
||||
|
||||
juce::AudioPlayHead* playhead = nullptr;
|
||||
bool blockMissed = false;
|
||||
|
||||
struct CurTable
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,13 +52,17 @@ void WavetableVoice::noteStarted()
|
|||
|
||||
for (auto& osc : oscillators)
|
||||
osc.noteOn();
|
||||
|
||||
noise.noteOn();
|
||||
sub.noteOn();
|
||||
|
||||
filterADSR.noteOn();
|
||||
|
||||
for (auto& a : modADSRs)
|
||||
a.noteOn();
|
||||
{
|
||||
a.reset();
|
||||
a.noteOn();
|
||||
}
|
||||
|
||||
for (auto& l : modLFOs)
|
||||
l.noteOn();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue