New structure of CreateModel

CreateModel has just been updated, and the changes will make your plugins incompatbile wth the newest sources.

The “old” CreateModel was like this:

createModel(std::string manufacturerSlug, std::string manufacturerName, std::string slug, std::string name)

the new version adds tags form modules, like this:

createModel(std::string manufacturer, std::string slug, std::string name, Tags… tags)

 

You will need to modify your main .cpp file. As an Example, taken from my modules:

p->addModel(createModel<DrumsMixerWidget>(“Autodafe – Drum Kit”, “Drums – 8-Channel Mixer”, “Drums – 8-Channel Mixer”, MIXER_TAG, DRUM_TAG));

Each module can have one or more tags, or none if you don’t want to tag it.
A list of tags is in /incude/plugin.hpp, see it here: https://github.com/VCVRack/Rack/blob/master/include/plugin.hpp#L9-L54

2 Comments on “New structure of CreateModel”

Leave a Reply to Dave Phillips Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.