MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / timerCallback

Method timerCallback

Source/Components/Modulators/EnvPanel.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91void EnvPanel::parameterValueChanged(int, float) { mParamHasChanged.store(true); }
92
93void EnvPanel::timerCallback() {
94 if (mParamHasChanged.load()) {
95 mParamHasChanged.store(false);
96 mSliderAttack.setValue(mModEnv.attack->get(), juce::dontSendNotification);
97 mSliderDecay.setValue(mModEnv.decay->get(), juce::dontSendNotification);
98 mSliderSustain.setValue(mModEnv.sustain->get(), juce::dontSendNotification);
99 mSliderRelease.setValue(mModEnv.release->get(), juce::dontSendNotification);
100 }
101}
102
103void EnvPanel::paint(juce::Graphics& g) {
104 g.setColour(Utils::Colour::PANEL);

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected