Methods added to plugin classes which simplify changing programs on plugins.#440
Open
Enpostive wants to merge 2 commits intospotify:masterfrom
Open
Methods added to plugin classes which simplify changing programs on plugins.#440Enpostive wants to merge 2 commits intospotify:masterfrom
Enpostive wants to merge 2 commits intospotify:masterfrom
Conversation
Author
|
Just realised that this merge has included a change to the pybind11 URL in it. I needed to make this change so that I could clone the repo correctly as the old URL didn't work for me. I'll leave it in as it doesn't change the actual repo, just changes it from SSH to HTTPS. Let me know if I'm doing anything wrong |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch adds these methods to both AudioUnit and VST3Plugin classes:
num_programs: "Return the number of programs supported by this plugin"
current_program: "Get and set the index of the current program"
get_program_name: "Return the name of the program at the specified index"
program_list: "The list of programs reported by the plugin"
This is much easier than creating "program_change" MIDI messages (except that process has to be called with reset=False to prevent the program change being reverted) and enables easy access to more than 128 programs in plugins which don't support bank messages (such as Sylenth1)