mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Fix stuck notes on switch mono on/off
This commit is contained in:
parent
73ca1e6758
commit
3de6fc16aa
3 changed files with 8 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
- Fix crash initializing plugin on Linux
|
- Fix crash initializing plugin on Linux
|
||||||
- Fix channel config on Linux
|
- Fix channel config on Linux
|
||||||
- Renamed Legato rate to Legato Time
|
- Renamed Legato rate to Legato Time
|
||||||
|
- Fix stuck notes on switch mono on/off
|
||||||
|
|
||||||
1.0.2:
|
1.0.2:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -500,6 +500,8 @@ WavetableAudioProcessor::WavetableAudioProcessor()
|
||||||
|
|
||||||
setupModMatrix();
|
setupModMatrix();
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
lastMono = globalParams.mono->isOn();
|
||||||
}
|
}
|
||||||
|
|
||||||
WavetableAudioProcessor::~WavetableAudioProcessor()
|
WavetableAudioProcessor::~WavetableAudioProcessor()
|
||||||
|
|
@ -619,6 +621,7 @@ void WavetableAudioProcessor::stateUpdated()
|
||||||
|
|
||||||
reloadWavetables();
|
reloadWavetables();
|
||||||
presetLoaded = true;
|
presetLoaded = true;
|
||||||
|
lastMono = globalParams.mono->isOn();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WavetableAudioProcessor::updateState()
|
void WavetableAudioProcessor::updateState()
|
||||||
|
|
@ -732,9 +735,10 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blockMissed || presetLoaded)
|
if (blockMissed || presetLoaded || lastMono != globalParams.mono->isOn())
|
||||||
{
|
{
|
||||||
blockMissed = presetLoaded = false;
|
blockMissed = presetLoaded = false;
|
||||||
|
lastMono = ! lastMono;
|
||||||
turnOffAllVoices (false);
|
turnOffAllVoices (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -748,7 +752,7 @@ void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, ju
|
||||||
|
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
|
|
||||||
setMono (globalParams.mono->isOn());
|
setMono (lastMono);
|
||||||
setLegato (globalParams.legato->isOn());
|
setLegato (globalParams.legato->isOn());
|
||||||
setGlissando (globalParams.glideMode->getProcValue() == 1.0f);
|
setGlissando (globalParams.glideMode->getProcValue() == 1.0f);
|
||||||
setPortamento (globalParams.glideMode->getProcValue() == 2.0f);
|
setPortamento (globalParams.glideMode->getProcValue() == 2.0f);
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,7 @@ public:
|
||||||
juce::AudioPlayHead* playhead = nullptr;
|
juce::AudioPlayHead* playhead = nullptr;
|
||||||
bool blockMissed = false;
|
bool blockMissed = false;
|
||||||
bool presetLoaded = false;
|
bool presetLoaded = false;
|
||||||
|
bool lastMono = false;
|
||||||
|
|
||||||
struct CurTable
|
struct CurTable
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue