Skip to content

Commit

Permalink
fixed feedback bug
Browse files Browse the repository at this point in the history
  • Loading branch information
greyboxaudio committed Nov 27, 2022
1 parent 8d609ea commit 9f7e771
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>: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
Expand Down
2 changes: 1 addition & 1 deletion Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ void SG323AudioProcessor::processBlock(juce::AudioBuffer<float>& 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);
Expand Down

0 comments on commit 9f7e771

Please sign in to comment.