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

Method tickMeters

src/gui/ClientCompEditor.cpp:348–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void ClientCompEditor::tickMeters()
349{
350 if (!m_audio) return;
351 ClientComp* c = comp();
352 if (!c) return;
353 if (m_threshFader) m_threshFader->setInputPeakDb(c->inputPeakDb());
354 if (m_grMeter) m_grMeter ->setValueDb(c->gainReductionDb());
355 if (m_outputMeter) {
356 m_outputMeter->setValueDb(c->outputPeakDb());
357 if (c->limiterEnabled()) {
358 m_outputMeter->setLimiterCeilingDb(c->limiterCeilingDb());
359 m_outputMeter->setLimiterGrDb(c->limiterGrDb());
360 } else {
361 m_outputMeter->setLimiterCeilingDb(1.0f); // disable overlay
362 m_outputMeter->setLimiterGrDb(0.0f);
363 }
364 }
365 if (m_limiterEnable) {
366 m_limiterEnable->setActive(c->limiterActive() && c->limiterEnabled());
367 }
368
369 // Mirror parameter changes made in the applet tile (or other
370 // surfaces) back onto the editor knobs. QSignalBlocker prevents
371 // a feedback loop through the valueChanged handlers.
372 if (m_ratio) { QSignalBlocker b(m_ratio); m_ratio->setValue(c->ratio()); }
373 if (m_attack) { QSignalBlocker b(m_attack); m_attack->setValue(c->attackMs()); }
374 if (m_release) { QSignalBlocker b(m_release); m_release->setValue(c->releaseMs()); }
375 if (m_knee) { QSignalBlocker b(m_knee); m_knee->setValue(c->kneeDb()); }
376 if (m_makeup) { QSignalBlocker b(m_makeup); m_makeup->setValue(c->makeupDb()); }
377 if (m_ceiling) { QSignalBlocker b(m_ceiling); m_ceiling->setValue(c->limiterCeilingDb()); }
378 if (m_threshFader) {
379 QSignalBlocker b(m_threshFader);
380 m_threshFader->setThresholdDb(c->thresholdDb());
381 }
382}
383
384void ClientCompEditor::applyThreshold(float db)
385{

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
inputPeakDbMethod · 0.45
gainReductionDbMethod · 0.45
outputPeakDbMethod · 0.45

Tested by

no test coverage detected