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

Method FloatSliderUpdated

Source/BandVocoder.cpp:268–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void BandVocoder::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
269{
270 if (slider == mFBaseSlider || slider == mFRangeSlider || slider == mQSlider || slider == mSpacingStyleSlider)
271 {
272 CalcFilters();
273 }
274 if (slider == mRingTimeSlider)
275 {
276 for (int i = 0; i < VOCODER_MAX_BANDS; ++i)
277 {
278 mPeaks[i].SetDecayTime(mRingTime);
279 mOutputPeaks[i].SetDecayTime(mRingTime);
280 }
281 }
282 if (slider == mMaxBandSlider)
283 {
284 for (int i = 0; i < VOCODER_MAX_BANDS; ++i)
285 {
286 mPeaks[i].SetLimit(mMaxBand);
287 mOutputPeaks[i].SetLimit(mMaxBand);
288 }
289 }
290}
291
292void BandVocoder::LoadLayout(const ofxJSONElement& moduleInfo)
293{

Callers

nothing calls this directly

Calls 2

SetDecayTimeMethod · 0.80
SetLimitMethod · 0.45

Tested by

no test coverage detected