Skip to content

Commit

Permalink
smooth fft curve (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrahn13 authored Aug 18, 2024
1 parent c3cd5db commit 2835cdc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EQ/AnalyzerCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ void AnalyzerCurve::paint(juce::Graphics &g)

mFFTPath.lineTo(mFFTPath.getCurrentPosition().getX(), height); // Go to the bottom of the last x point
mFFTPath.lineTo(0, height); // Go to the bottom-left corner
mFFTPath = mFFTPath.createPathWithRoundedCorners(std::numeric_limits<float>::max());

mFFTPath.closeSubPath();
g.setColour(juce::Colours::grey.withAlpha(0.25f));
Expand Down

0 comments on commit 2835cdc

Please sign in to comment.