1
0
Fork 0

Actually, adjust the peak meter range to -60 dBFS

This is the same range Bitwig shows in their tiny VU meters in between
devices.
This commit is contained in:
Robbert van der Helm 2022-02-06 14:59:13 +01:00
parent 0943d54404
commit eefb5e604c

View file

@ -142,7 +142,7 @@ impl Plugin for Gain {
String::from("-inf dBFS") 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.allocate_space(egui::Vec2::splat(2.0));
ui.add( ui.add(
egui::widgets::ProgressBar::new(peak_meter_normalized) egui::widgets::ProgressBar::new(peak_meter_normalized)