Gain (iced)
The gain plugin reimplemented with an iced GUI. Same DSP as the built-in gain example, different frontend.
Source: examples/truce-example-gain-iced/.
#What it demonstrates
IcedPlugintrait with customview()methodknob,xy_pad,metercanvas widgets with.el()shorthandIntoElementtrait for clean iced layout code- Custom header using
iced::widget::containerwith styled background - Default
update()(no custom messages needed for this simple UI) - Consistent window sizing with
WINDOW_W/WINDOW_Hconstants - Screenshot testing with
truce_iced::screenshot
#Layout
Header bar with plugin name. Left column with two knobs (Gain, Pan) and an XY pad. Thin stereo meter spanning the full height on the right.
#See also
- iced integration guide
- gain — same plugin with the built-in GUI
- gain-egui — same plugin with egui
- gain-slint — same plugin with slint
#Build and test
cargo build -p truce-example-gain-iced
cargo test -p truce-example-gain-iced