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:
parent
0943d54404
commit
eefb5e604c
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue