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

Method tick

src/gui/ClientGateLevelView.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void ClientGateLevelView::tick()
59{
60 if (!m_gate) return;
61 Sample s;
62 s.inputDb = std::clamp(m_gate->inputPeakDb(), kBottomDb, kTopDb);
63 s.grDb = std::clamp(m_gate->gainReductionDb(), -80.0f, 0.0f);
64 m_history[m_writeIdx] = s;
65 m_writeIdx = (m_writeIdx + 1) % kHistoryCount;
66 update();
67}
68
69float ClientGateLevelView::dbToY(float db) const
70{

Callers

nothing calls this directly

Calls 2

inputPeakDbMethod · 0.45
gainReductionDbMethod · 0.45

Tested by

no test coverage detected