Lägg till inbyggd stämapparat i DownTune
This commit is contained in:
1 parent
aa94048f53
commit
53f9515ac9
5 files changed
+257
-120
No files matched your search
@@ -54,6 +54,18 @@ private:
|
||||
juce::Colour sectionColour;
|
||||
};
|
||||
|
||||
class TunerDisplay final : public juce::Component
|
||||
{
|
||||
public:
|
||||
TunerDisplay();
|
||||
|
||||
void setFrequency(float newFrequencyHz);
|
||||
void paint(juce::Graphics& g) override;
|
||||
|
||||
private:
|
||||
float frequencyHz = 0.0f;
|
||||
};
|
||||
|
||||
struct Knob
|
||||
{
|
||||
juce::Slider slider;
|
||||
@@ -74,6 +86,17 @@ private:
|
||||
juce::AudioProcessorValueTreeState::ButtonAttachment>
|
||||
downTuneAttachment;
|
||||
|
||||
SectionToggleButton tunerToggleButton {
|
||||
"TUNER",
|
||||
juce::Colour(0xffe5a536)
|
||||
};
|
||||
|
||||
std::unique_ptr<
|
||||
juce::AudioProcessorValueTreeState::ButtonAttachment>
|
||||
tunerToggleAttachment;
|
||||
|
||||
TunerDisplay tunerDisplay;
|
||||
|
||||
SectionToggleButton gateToggleButton {
|
||||
"NOISE GATE",
|
||||
juce::Colour(0xffe5a536)
|
||||
|
||||
Reference in new issue
Block a user