| 2064 | } |
| 2065 | |
| 2066 | void |
| 2067 | TimeWindow::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 | |
| 2101 | void |
| 2102 | TimeWindow::onDelayedConjugate(void) |
nothing calls this directly
no test coverage detected