Gain (egui)
The gain plugin reimplemented with an egui GUI. Same DSP as the built-in gain example, different frontend.
Source: examples/truce-example-gain-egui/.
#What it demonstrates
EguiEditorwith a closure-based UI functionparam_knob,param_xy_pad,level_meterhelper widgets- Custom header using
egui::TopBottomPanel - Theme color constants from
truce_egui::theme - Consistent window sizing with
WINDOW_W/WINDOW_Hconstants - Screenshot testing with
truce_egui::screenshot
#Layout
Header bar with plugin name, followed by two knobs (Gain, Pan), a thin stereo meter spanning the full height, and an XY pad below the knobs.
#See also
- egui integration guide
- gain — same plugin with the built-in GUI
- gain-iced — same plugin with iced
- gain-slint — same plugin with slint
#Build and test
cargo build -p truce-example-gain-egui
cargo test -p truce-example-gain-egui