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

Method onCarrierSlidersChanged

Components/TimeWindow.cpp:1647–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645}
1646
1647void
1648TimeWindow::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
1670void
1671TimeWindow::onHistogramSamples(const float *samples, unsigned int size)

Callers 1

setDataMethod · 0.95

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected