MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / FloatSliderUpdated

Method FloatSliderUpdated

Source/MultibandCompressor.cpp:164–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void MultibandCompressor::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
165{
166 if (slider == mFMinSlider || slider == mFMaxSlider)
167 {
168 CalcFilters();
169 }
170 if (slider == mRingTimeSlider)
171 {
172 for (int i = 0; i < COMPRESSOR_MAX_BANDS; ++i)
173 mPeaks[i].SetDecayTime(mRingTime);
174 }
175 if (slider == mMaxBandSlider)
176 {
177 for (int i = 0; i < COMPRESSOR_MAX_BANDS; ++i)
178 mPeaks[i].SetLimit(mMaxBand);
179 }
180}
181
182void MultibandCompressor::LoadLayout(const ofxJSONElement& moduleInfo)
183{

Callers

nothing calls this directly

Calls 2

SetDecayTimeMethod · 0.80
SetLimitMethod · 0.45

Tested by

no test coverage detected