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

Method onLPF

Components/TimeWindow.cpp:2066–2099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2064}
2065
2066void
2067TimeWindow::onLPF(void)
2068{
2069 if (!this->ui->realWaveform->isComplete())
2070 return;
2071
2072 try {
2073 SUFLOAT bw = SU_ABS2NORM_FREQ(
2074 this->fs,
2075 this->ui->lpfSpin->value());
2076 const SUCOMPLEX *orig;
2077 SUCOMPLEX *dest;
2078 SUSCOUNT len;
2079
2080 this->getTransformRegion(
2081 orig,
2082 dest,
2083 len,
2084 this->ui->transSelCheck->isChecked());
2085
2086 if (bw >= 1.f)
2087 bw = 1;
2088
2089 LPFTask *task = new LPFTask(orig, dest, len, bw);
2090
2091 this->notifyTaskRunning(true);
2092 this->taskController.process("lpf", task);
2093 } catch (Suscan::Exception &e) {
2094 QMessageBox::warning(
2095 this,
2096 "Low-pass filter",
2097 "Cannot perform operation: " + QString(e.what()));
2098 }
2099}
2100
2101void
2102TimeWindow::onDelayedConjugate(void)

Callers

nothing calls this directly

Calls 4

getTransformRegionMethod · 0.95
notifyTaskRunningMethod · 0.95
valueMethod · 0.80
processMethod · 0.45

Tested by

no test coverage detected