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

Method SetRange

Source/MultiBandTracker.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void MultiBandTracker::SetRange(float minFreq, float maxFreq)
43{
44 for (int i = 0; i < mNumBands; ++i)
45 {
46 float a = float(i) / mNumBands;
47 float f = mMinFreq * powf(mMaxFreq / mMinFreq, a);
48 mBands[i].SetCrossoverFreq(f);
49 }
50}
51
52void MultiBandTracker::SetNumBands(int numBands)
53{

Callers 1

DrawModuleMethod · 0.45

Calls 1

SetCrossoverFreqMethod · 0.80

Tested by

no test coverage detected