Skip to content

Commit

Permalink
Define remote controls for Crossover
Browse files Browse the repository at this point in the history
  • Loading branch information
robbert-vdh committed Apr 22, 2023
1 parent 911c0d5 commit 56c0a21
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugins/crossover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56c0a21

Please sign in to comment.