Have own JUCE plugin recognized as Instrument #255
Labels
bug
Something isn't working
Plugin Issue
Issues with audio plugins in general (not specific to one plugin)
Thanks for making this amazing library!
I'm working on building a synth with JUCE and I'd like to be able to use it from Python with
pedalboard
. But I'm having issues loading the VST3.When I load it, it gets detected as an effect. After browsing
pedalboard
's code a bit, I realized that this was determined by whether the plugin accepts audio in the main input buses. This was the case for me as I had something like this:So I removed the
.withInput("Input", AudioChannelSet::stereo(), true))
.But when I try to load this new version of the plugin (with 0 channels as input), I get an exception from
pedalboard
coming fromExternalPlugin.h
(setNumChannels()
, line 741) saying:Plugin '...' does not support 2-channel output. (Main bus currently expects 0 input channels and 2 output channels.)
It seems that this function tries to make the number of input and output channels (from the main bus) match, I'm not sure why. Perhaps
mainInputBus
should benullptr
for an instrument? In this case, the number of main input channels would not be modified.As a dirty fix, I've added this to the
setNumChannels()
function, and with that I can load my plugin as an instrument:Do you know how I can have my plugin recognized as an instrument properly?
Ideally I'd like to be able to keep my original
busesProperties
to stereo/stereo. Maybeload_plugin
could have another argumentis_instrument=None
, that is used only if set to true or false to determine the type of plugin.Anyway thanks for your help!
The text was updated successfully, but these errors were encountered: