From 91ed1b209f4faa2994eadcf0c96ec347974ee80f Mon Sep 17 00:00:00 2001 From: Armin Date: Wed, 5 Aug 2026 00:19:57 +0200 Subject: [PATCH] Remove autonomous shuffle ghost-note generation --- Source/PluginProcessor.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index f42e88f..dcec474 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -106,20 +106,7 @@ void TrommelkisteProcessor::processBlock(juce::AudioBuffer& buffer, juce: } } - // Independent shuffle: generate events even without MIDI input, on the same track std::uniform_real_distribution dist(0.0f, 1.0f); - if (globalShuffleAmt > 0.0f && barAllowed && lastTriggeredTrack >= 0) - { - float prob = globalShuffleAmt * 0.15f; - if (dist(rng) < prob && numPendingShuffle < MAX_PENDING_SHUFFLE) - { - float vel = (0.3f + dist(rng) * 0.5f) * globalShuffleAmt; - int stepsAhead = std::uniform_int_distribution(1, 4)(rng); - double gridPpq = nextGridPpq(ppq) + stepsAhead * sixteenthPpq; - int delay = juce::jmax(1, (int)((gridPpq - ppq) / ppqPerSample)); - pendingShuffle[numPendingShuffle++] = { lastTriggeredTrack, vel, delay }; - } - } for (const auto metadata : midi) {