Clear track activity flags each audio block

This commit is contained in:
Armin 2026-08-05 00:21:26 +02:00
commit 801c461970

View file

@ -57,6 +57,9 @@ void TrommelkisteProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce:
const int numSamples = buffer.getNumSamples(); const int numSamples = buffer.getNumSamples();
buffer.clear(); buffer.clear();
for (int i = 0; i < NUM_TRACKS; ++i)
trackActive[i] = false;
// Shuffle: add ghost notes (bar-quantized) // Shuffle: add ghost notes (bar-quantized)
const float globalShuffleAmt = apvts.getRawParameterValue("global_shuffleAmount")->load(); const float globalShuffleAmt = apvts.getRawParameterValue("global_shuffleAmount")->load();
const float globalGroove = apvts.getRawParameterValue("global_groove")->load(); const float globalGroove = apvts.getRawParameterValue("global_groove")->load();