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

Method timerCallback

Source/Components/FilterControl.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75void FilterControl::parameterValueChanged(int, float) { mParamHasChanged.store(true); }
76
77void FilterControl::timerCallback() {
78 if (mParamHasChanged.load()) {
79 mParamHasChanged.store(false);
80 mSliderCutoff.setValue(mParameters.global.filterCutoff->get(), juce::dontSendNotification);
81 mSliderResonance.setValue(mParameters.global.filterRes->get(),
82 juce::dontSendNotification);
83 mFilterType.setSelectedId(mParameters.global.filterType->getIndex() + 1,
84 juce::dontSendNotification);
85 updateFilterPath();
86 repaint();
87 }
88}
89
90void FilterControl::paint(juce::Graphics& g) {
91 juce::Colour colour = Utils::Colour::GLOBAL;

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected