many UI fixes and new screenshot

This commit is contained in:
Armin 2026-09-17 11:29:01 +02:00
commit 88ed77a0c6
8 changed files with 43 additions and 29 deletions

View file

@ -13,6 +13,14 @@ VectorScope::~VectorScope()
void VectorScope::timerCallback()
{
// Refresh the numeric readouts at kMetricsRateHz while keeping the trail
// animation running at the full 30 Hz.
const float frozen = processor.apvts.getRawParameterValue("freeze")->load();
if (frozen < 0.5f && ++metricFrame >= 30 / kMetricsRateHz)
{
metricFrame = 0;
cachedMetrics = processor.getMetrics();
}
repaint();
}
@ -183,7 +191,7 @@ void VectorScope::drawLegends(juce::Graphics& g, float cx, float cy, float radiu
void VectorScope::drawMetricsOverlay(juce::Graphics& g, const juce::Rectangle<int>& bounds)
{
const auto& metrics = processor.getMetrics();
const auto& metrics = cachedMetrics;
const float s = currentScale;
const int margin = static_cast<int>(10.0f * s);
const int lineHeight = static_cast<int>(14.0f * s);
@ -217,6 +225,6 @@ void VectorScope::drawMetricsOverlay(juce::Graphics& g, const juce::Rectangle<in
drawMetric("Mid", metrics.midLevel, "dB", y); y += lineHeight;
drawMetric("Side", metrics.sideLevel, "dB", y); y += lineHeight;
drawMetric("Balance", metrics.balance, "dB", y); y += lineHeight;
drawMetric("Phase", metrics.phaseAngle, "\u00B0", y); y += lineHeight;
drawMetric("Phase", metrics.phaseAngle, "deg", y); y += lineHeight;
drawMetric("Crest", metrics.crestFactor, "dB", y); y += lineHeight;
}