Instantiate subgraph or module from front panel (in performance)

Add a way to click a button from the front panel (in performance mode), to instantiate a subgraph or module.

Example use case:

In a poly-synth, you can click a button to create additional voices, which are instances of a module or subgraph. The instantiate button specifies which input wires are routed to the newly instantiated subgraph/module , and where the subgraph/module’s output wires are routed to.

This can allow the user to choose how many voices their machine can handle at run time.

The relevant front panel UI elements would then get populated automatically to the front panel. To handle this properly, there may need to be a new container widget which can auto-format / layout the newly instantiated controls. The container widget can have rules such as container max-width or max height constraints, and column or row layouts, with a scroll view for the ability to scroll within the container.

I have a much different use case for this using MIDI, but I think this example can explain how it can be used easily.

(A way to delete or remove instances may also be needed)

Thanks for the request, I’ll take note of it!

Getting back into building my tool and I wanted to know if there’s a way to do instantiation yet?

For now, the way to do this is to place as many copies as you’ll ever need, already wired. Then give the panel a button for each one that switches the copy’s Bypass, so a switched off copy costs no CPU, and its Visible through an Appearance Changer, so its controls disappear from the panel.

Thanks Mario. I’ll try this approach.

The caveat for my project is that I wanted the user to be able to set up as many keyswitches / triggers as possible (based on how many physical Midi devices they want to configure).