Skip to content

Methods added to plugin classes which simplify changing programs on plugins.#440

Open
Enpostive wants to merge 2 commits intospotify:masterfrom
Enpostive:master
Open

Methods added to plugin classes which simplify changing programs on plugins.#440
Enpostive wants to merge 2 commits intospotify:masterfrom
Enpostive:master

Conversation

@Enpostive
Copy link
Copy Markdown

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)

@Enpostive
Copy link
Copy Markdown
Author

Enpostive commented Oct 30, 2025

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

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.

1 participant