From e3a7e4a931ee7b4f3cb358f0d1af607e95d535e0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 1 Feb 2023 14:39:47 +0100 Subject: [PATCH] Allow any audio setup for midi_inverter --- plugins/examples/midi_inverter/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/examples/midi_inverter/src/lib.rs b/plugins/examples/midi_inverter/src/lib.rs index d87bd0e0..df781fda 100644 --- a/plugins/examples/midi_inverter/src/lib.rs +++ b/plugins/examples/midi_inverter/src/lib.rs @@ -40,6 +40,12 @@ impl Plugin for MidiInverter { self.params.clone() } + fn accepts_bus_config(&self, _config: &BusConfig) -> bool { + // This is a zero channel plugin, but the host can configure it to pass through audio as + // needed. Ableton Live for instance doesn't support note effects. + true + } + fn process( &mut self, _buffer: &mut Buffer,