Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MIDI messages for all external instrument plugins #345

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

kmontag
Copy link
Contributor

@kmontag kmontag commented Jun 23, 2024

Problem

Some external instrument plugins have audio inputs on the main bus when loaded in pedalboard. This has been observed with AU and VST3 versions of Native Instruments Reaktor 6 and Arturia ARP 2600 V3, for example. When attempting to send MIDI inputs to such plugins, pedalboard throws an error like "ValueError: Plugin '[name]' expects audio as input, but was provided MIDI messages."

Solution

Instead of using the presence of audio inputs to determine whether a plugin accepts MIDI messages, use the isInstrument value from the plugin description object.

Problem

Some external instrument plugins have audio inputs on the main bus
when loaded in pedalboard. This has been observed with AU and VST3
versions of Native Instruments Reaktor 6 and Arturia ARP 2600 V3, for
example. When attempting to send MIDI inputs to such plugins,
pedalboard throws an error like "ValueError: Plugin '[name]' expects
audio as input, but was provided MIDI messages."

Solution

Instead of using the presence of audio inputs to determine whether
a plugin accepts MIDI messages, use the `isInstrument` value from the
plugin description object.
@kmontag
Copy link
Contributor Author

kmontag commented Jun 23, 2024

Unfortunately there are no new tests added here, since I couldn't find any OSS plugins that reproduce this issue - I've only seen it with proprietary ones. I'm happy to add tests if anyone has ideas for how to do so...

@psobot
Copy link
Member

psobot commented Jun 25, 2024

This is great - thanks @kmontag!

@psobot psobot merged commit f29daa9 into spotify:master Jun 25, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants