MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / tickMeters

Method tickMeters

src/gui/StripCompPanel.cpp:400–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void StripCompPanel::tickMeters()
401{
402 if (!m_audio) return;
403 ClientComp* c = comp();
404 if (!c) return;
405 if (m_threshFader) m_threshFader->setInputPeakDb(c->inputPeakDb());
406 if (m_grMeter) m_grMeter ->setValueDb(c->gainReductionDb());
407 if (m_outputMeter) {
408 m_outputMeter->setValueDb(c->outputPeakDb());
409 if (c->limiterEnabled()) {
410 m_outputMeter->setLimiterCeilingDb(c->limiterCeilingDb());
411 m_outputMeter->setLimiterGrDb(c->limiterGrDb());
412 } else {
413 m_outputMeter->setLimiterCeilingDb(1.0f); // disable overlay
414 m_outputMeter->setLimiterGrDb(0.0f);
415 }
416 }
417 if (m_limiterEnable) {
418 m_limiterEnable->setActive(c->limiterActive() && c->limiterEnabled());
419 }
420
421 // Mirror parameter changes made in the applet tile (or other
422 // surfaces) back onto the editor knobs. QSignalBlocker prevents
423 // a feedback loop through the valueChanged handlers.
424 if (m_ratio) { QSignalBlocker b(m_ratio); m_ratio->setValue(c->ratio()); }
425 if (m_attack) { QSignalBlocker b(m_attack); m_attack->setValue(c->attackMs()); }
426 if (m_release) { QSignalBlocker b(m_release); m_release->setValue(c->releaseMs()); }
427 if (m_knee) { QSignalBlocker b(m_knee); m_knee->setValue(c->kneeDb()); }
428 if (m_makeup) { QSignalBlocker b(m_makeup); m_makeup->setValue(c->makeupDb()); }
429 if (m_ceiling) { QSignalBlocker b(m_ceiling); m_ceiling->setValue(c->limiterCeilingDb()); }
430 if (m_drive) { QSignalBlocker b(m_drive); m_drive->setValue(c->driveDb()); }
431 if (m_phase) { QSignalBlocker b(m_phase); m_phase->setValue(static_cast<float>(c->phaseRotatorStages())); }
432 if (m_threshFader) {
433 QSignalBlocker b(m_threshFader);
434 m_threshFader->setThresholdDb(c->thresholdDb());
435 }
436}
437
438void StripCompPanel::applyThreshold(float db)
439{

Callers

nothing calls this directly

Calls 15

setInputPeakDbMethod · 0.80
setValueDbMethod · 0.80
limiterEnabledMethod · 0.80
limiterCeilingDbMethod · 0.80
setLimiterGrDbMethod · 0.80
limiterGrDbMethod · 0.80
limiterActiveMethod · 0.80
kneeDbMethod · 0.80
makeupDbMethod · 0.80
phaseRotatorStagesMethod · 0.80
inputPeakDbMethod · 0.45
gainReductionDbMethod · 0.45

Tested by

no test coverage detected