MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setRelativeBw

Method setRelativeBw

Panoramic/Scanner.cpp:388–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388void
389Scanner::setRelativeBw(float ratio)
390{
391 if (ratio > 1)
392 ratio = 1;
393 else if (ratio < 2.f / SIGDIGGER_SCANNER_SPECTRUM_SIZE)
394 ratio = 2.f / SIGDIGGER_SCANNER_SPECTRUM_SIZE;
395
396 this->views[0].fftRelBw = this->views[1].fftRelBw = ratio;
397 this->relBw = ratio;
398}
399
400SpectrumView &
401Scanner::getSpectrumView(void)

Callers 2

onPanSpectrumStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected