π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Allow MIDI messages for all external instrument plugins (#345)
Kevin Montagf29daa92f3b2
diff --git a/pedalboard/ExternalPlugin.h b/pedalboard/ExternalPlugin.hindex 0a5eb8d..2477ad7 100644--- a/pedalboard/ExternalPlugin.h+++ b/pedalboard/ExternalPlugin.h@@ -1232,7 +1232,7 @@ public:spec.numChannels = (juce::uint32)numChannels;prepare(spec);- if (pluginInstance->getMainBusNumInputChannels() > 0) {+ if (!foundPluginDescription.isInstrument) {throw std::invalid_argument("Plugin '" + pluginInstance->getName().toStdString() +"' expects audio as input, but was provided MIDI messages.");