From 56c0a2198932022f85413de9b3af21587cf984b0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 22 Apr 2023 16:59:18 +0200 Subject: [PATCH] Define remote controls for Crossover --- plugins/crossover/src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/crossover/src/lib.rs b/plugins/crossover/src/lib.rs index d7f407ac..d43d3c81 100644 --- a/plugins/crossover/src/lib.rs +++ b/plugins/crossover/src/lib.rs @@ -392,6 +392,21 @@ impl ClapPlugin for Crossover { ClapFeature::Stereo, ClapFeature::Utility, ]; + + fn remote_controls(&self, context: &mut impl RemoteControlsContext) { + context.add_section("Main", |section| { + section.add_page("Main controls", |page| { + page.add_param(&self.params.num_bands); + page.add_param(&self.params.crossover_type); + page.add_spacer(); + page.add_spacer(); + page.add_param(&self.params.crossover_1_freq); + page.add_param(&self.params.crossover_2_freq); + page.add_param(&self.params.crossover_3_freq); + page.add_param(&self.params.crossover_4_freq); + }) + }) + } } impl Vst3Plugin for Crossover {