-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94a7512
commit 2f42b5f
Showing
10 changed files
with
124 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule chowdsp_utils
updated
207 files
Submodule clap-juce-extensions
updated
9 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "WaveshaperChyron.h" | ||
#include "gui/Shared/Colours.h" | ||
|
||
namespace gui::waveshaper | ||
{ | ||
WaveshaperChyron::WaveshaperChyron (chowdsp::PluginState& pluginState, | ||
dsp::waveshaper::Params& params, | ||
const chowdsp::HostContextProvider& hcp) | ||
: state (pluginState), | ||
gainSlider (state, params.gainParam.get(), &hcp) | ||
{ | ||
gainSlider.setName ("Gain"); | ||
addAndMakeVisible (gainSlider); | ||
} | ||
|
||
void WaveshaperChyron::resized() | ||
{ | ||
auto bounds = getLocalBounds(); | ||
gainSlider.setBounds (bounds.reduced (proportionOfHeight (0.2f))); | ||
} | ||
|
||
void WaveshaperChyron::paint (juce::Graphics& g) | ||
{ | ||
const auto bounds = getLocalBounds(); | ||
|
||
g.setColour (juce::Colours::black.withAlpha (0.75f)); | ||
g.fillRoundedRectangle (bounds.toFloat(), 2.5f); | ||
|
||
g.setColour (colours::linesColour); | ||
g.drawRoundedRectangle (bounds.toFloat(), 2.5f, 1.0f); | ||
} | ||
} // namespace gui::waveshaper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include "dsp/Waveshaper/WaveshaperProcessor.h" | ||
#include "gui/Shared/Fonts.h" | ||
#include "gui/Shared/TextSlider.h" | ||
#include "state/PluginState.h" | ||
|
||
namespace gui::waveshaper | ||
{ | ||
class WaveshaperChyron : public juce::Component | ||
{ | ||
public: | ||
WaveshaperChyron (chowdsp::PluginState& pluginState, | ||
dsp::waveshaper::Params& params, | ||
const chowdsp::HostContextProvider& hcp); | ||
|
||
void resized() override; | ||
void paint (juce::Graphics& g) override; | ||
|
||
private: | ||
chowdsp::PluginState& state; | ||
|
||
TextSlider gainSlider; | ||
|
||
SharedFonts fonts; | ||
|
||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WaveshaperChyron) | ||
}; | ||
} // namespace gui::waveshaper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters