From dc9f1bff4568a9cfb4458b2353b7c03d81328fe8 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 17 Mar 2022 23:20:16 +0100 Subject: [PATCH] Rename Gain GUI to Gain GUI (iced) --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 7 +++++-- plugins/examples/{gain-gui => gain-gui-iced}/Cargo.toml | 4 +++- plugins/examples/{gain-gui => gain-gui-iced}/src/editor.rs | 0 plugins/examples/{gain-gui => gain-gui-iced}/src/lib.rs | 6 +++--- 6 files changed, 13 insertions(+), 8 deletions(-) rename plugins/examples/{gain-gui => gain-gui-iced}/Cargo.toml (80%) rename plugins/examples/{gain-gui => gain-gui-iced}/src/editor.rs (100%) rename plugins/examples/{gain-gui => gain-gui-iced}/src/lib.rs (97%) diff --git a/Cargo.lock b/Cargo.lock index b8ea3401..421eee41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1298,7 +1298,7 @@ dependencies = [ ] [[package]] -name = "gain_gui" +name = "gain_gui_iced" version = "0.1.0" dependencies = [ "atomic_float", diff --git a/Cargo.toml b/Cargo.toml index 28795e9f..7f1f4dc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ members = [ "xtask", "plugins/examples/gain", - "plugins/examples/gain-gui", + "plugins/examples/gain-gui-iced", "plugins/examples/sine", "plugins/examples/stft", diff --git a/README.md b/README.md index 4d22a0cf..16c76d8f 100644 --- a/README.md +++ b/README.md @@ -130,8 +130,11 @@ examples. - [**gain**](plugins/examples/gain) is a simple smoothed gain plugin that shows off a couple other parts of the API, like support for storing arbitrary serializable state. -- [**gain-gui**](plugins/examples/gain-gui) is the same plugin as gain, but with - a GUI to control the parameter and a digital peak meter. +- **gain-gui** is the same plugin as gain, but with a GUI to control the + parameter and a digital peak meter. Comes in three exciting flavors: + [egui](plugins/examples/gain-gui-egui), + [iced](plugins/examples/gain-gui-iced), and + [VIZIA](plugins/examples/gain-gui-vizia). - [**sine**](plugins/examples/sine) is a simple test tone generator plugin with frequency smoothing that can also make use of MIDI input instead of generating a static signal based on the plugin's parameters. diff --git a/plugins/examples/gain-gui/Cargo.toml b/plugins/examples/gain-gui-iced/Cargo.toml similarity index 80% rename from plugins/examples/gain-gui/Cargo.toml rename to plugins/examples/gain-gui-iced/Cargo.toml index 7ce24be1..ea4f8f3b 100644 --- a/plugins/examples/gain-gui/Cargo.toml +++ b/plugins/examples/gain-gui-iced/Cargo.toml @@ -1,10 +1,12 @@ [package] -name = "gain_gui" +name = "gain_gui_iced" version = "0.1.0" edition = "2021" authors = ["Robbert van der Helm "] license = "ISC" +description = "A simple gain plugin with an iced GUI" + [lib] crate-type = ["cdylib"] diff --git a/plugins/examples/gain-gui/src/editor.rs b/plugins/examples/gain-gui-iced/src/editor.rs similarity index 100% rename from plugins/examples/gain-gui/src/editor.rs rename to plugins/examples/gain-gui-iced/src/editor.rs diff --git a/plugins/examples/gain-gui/src/lib.rs b/plugins/examples/gain-gui-iced/src/lib.rs similarity index 97% rename from plugins/examples/gain-gui/src/lib.rs rename to plugins/examples/gain-gui-iced/src/lib.rs index e6e1c3c2..231ef05c 100644 --- a/plugins/examples/gain-gui/src/lib.rs +++ b/plugins/examples/gain-gui-iced/src/lib.rs @@ -58,7 +58,7 @@ impl Default for GainParams { } impl Plugin for Gain { - const NAME: &'static str = "Gain GUI"; + const NAME: &'static str = "Gain GUI (iced)"; const VENDOR: &'static str = "Moist Plugins GmbH"; const URL: &'static str = "https://youtu.be/dQw4w9WgXcQ"; const EMAIL: &'static str = "info@example.com"; @@ -137,7 +137,7 @@ impl Plugin for Gain { } impl ClapPlugin for Gain { - const CLAP_ID: &'static str = "com.moist-plugins-gmbh.gain-gui"; + const CLAP_ID: &'static str = "com.moist-plugins-gmbh.gain-gui-iced"; const CLAP_DESCRIPTION: &'static str = "A smoothed gain parameter example plugin"; const CLAP_FEATURES: &'static [&'static str] = &["audio_effect", "mono", "stereo", "tool"]; const CLAP_MANUAL_URL: &'static str = Self::URL; @@ -145,7 +145,7 @@ impl ClapPlugin for Gain { } impl Vst3Plugin for Gain { - const VST3_CLASS_ID: [u8; 16] = *b"GainGuiYeahBoyyy"; + const VST3_CLASS_ID: [u8; 16] = *b"GainGuiIcedAaAAa"; const VST3_CATEGORIES: &'static str = "Fx|Dynamics"; }