Boilerplate juce code

Has anyone built a way to programatically add plugin parameters or select a certain number of them and have them generated? I would love to be able to pass in a list of strings to something and have a gui spun up woth getters and setters and a sized up gui.
I have said this before but it would be so awesome if all the tutorials came with 4 files like the projucer automatically spins up. Imagine if there was an 8 param or 16 or 32 param preset in the projucer.

there is a lot of potential to shorten parameter creation while also making it more powerful, but you have to write the logic for it yourself, so that it fits to your needs. i personally solved a lot of things by just introducing the enum class of a “Unit”. Cause then you can just say “ok i wanna make a parameter of Unit::Hz with a range between 0 and 40, center at 4. default at 4” and that’s it. in order to do that you have to write a lot of free functions that help with the parameter generation, so you can skip some the stuff that is always the same anyway, like choosing the genericParameterType, or converting a certain name to its corresponding id, or the string functions for the unit

1 Like