| 1645 | } |
| 1646 | |
| 1647 | void |
| 1648 | TimeWindow::onCarrierSlidersChanged(void) |
| 1649 | { |
| 1650 | qreal notchRelBw = |
| 1651 | static_cast<qreal>(this->ui->dcNotchSlider->value()) |
| 1652 | / static_cast<qreal>(this->ui->dcNotchSlider->maximum()); |
| 1653 | qreal avgRelBw = |
| 1654 | static_cast<qreal>(this->ui->averagerSlider->value()) |
| 1655 | / static_cast<qreal>(this->ui->averagerSlider->maximum()); |
| 1656 | |
| 1657 | this->ui->notchWidthLabel->setText( |
| 1658 | SuWidgetsHelpers::formatQuantity( |
| 1659 | this->fs * notchRelBw, |
| 1660 | 6, |
| 1661 | "Hz")); |
| 1662 | |
| 1663 | this->ui->averagerSpanLabel->setText( |
| 1664 | SuWidgetsHelpers::formatQuantity( |
| 1665 | this->fs * avgRelBw, |
| 1666 | 6, |
| 1667 | "Hz")); |
| 1668 | } |
| 1669 | |
| 1670 | void |
| 1671 | TimeWindow::onHistogramSamples(const float *samples, unsigned int size) |