From 9f7e7717e57399b1de39ca82feda4b1780475cb5 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 27 Nov 2022 09:29:12 +0100 Subject: [PATCH] fixed feedback bug --- Source/CMakeLists.txt | 2 +- Source/PluginEditor.cpp | 2 +- Source/PluginProcessor.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 401ffaf..904fcf4 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -14,7 +14,7 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") # `project()` command. `project()` sets up some helpful variables that describe source/binary # directories, and the current project version. This is a standard CMake command. -project(SG323 VERSION 0.3.0) +project(SG323 VERSION 0.3.1) # If you've installed JUCE somehow (via a package manager, or directly using the CMake install # target), you'll need to tell this project that it depends on the installed copy of JUCE. If you've diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index a52a355..c41c69d 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -81,7 +81,7 @@ void SG323AudioProcessorEditor::paint(juce::Graphics& g) g.setColour(juce::Colours::white); g.setFont(15.0f); - g.drawFittedText ("v0.3.0", getLocalBounds(), juce::Justification::bottomRight, 1); + g.drawFittedText ("v0.3.1", getLocalBounds(), juce::Justification::bottomRight, 1); } void SG323AudioProcessorEditor::resized() diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index accc188..25b96f2 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -491,6 +491,7 @@ void SG323AudioProcessor::processBlock(juce::AudioBuffer& buffer, juce::M feedbackDelayGain = feedbackGain * (feedbackDelayGainMult * nextDecayValue); feedbackOutputSample += fractionalDelay.popSample(0, feedbackDelayTime * lastSampleRate, false) * feedbackDelayGain; } + feedbackOutputSample *= 0.06666667f; feedbackBuffer.setSample(0, i, feedbackOutputSample); //process random sample float randomSample = randomBuffer.getSample(0, i);