From eefb5e604c71cbac2cd7283681efac219d953c84 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 6 Feb 2022 14:59:13 +0100 Subject: [PATCH] Actually, adjust the peak meter range to -60 dBFS This is the same range Bitwig shows in their tiny VU meters in between devices. --- plugins/examples/gain-gui/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/examples/gain-gui/src/lib.rs b/plugins/examples/gain-gui/src/lib.rs index 42155f52..88682fdb 100644 --- a/plugins/examples/gain-gui/src/lib.rs +++ b/plugins/examples/gain-gui/src/lib.rs @@ -142,7 +142,7 @@ impl Plugin for Gain { String::from("-inf dBFS") }; - let peak_meter_normalized = (peak_meter + 40.0) / 40.0; + let peak_meter_normalized = (peak_meter + 60.0) / 60.0; ui.allocate_space(egui::Vec2::splat(2.0)); ui.add( egui::widgets::ProgressBar::new(peak_meter_normalized)