Creating multiple rack instances

I want to create a custom rack and add an instance to each track in my edits. The Rack will contain a few internal plugins, some routing, and some macro parameters.

For my purposes, every track needs its own Rack. The racks will all be identical, save for their parameters.

I thought I could use Result RackType::restoreStateFromValueTree (const juce::ValueTree& vt), but it fails with the following error:

Unable to apply preset due to Macro or Modifier connections, please create a new Rack from the preset

How do I create unique rack instances from a preset?

What does your preset look like? Does it have any modifier connections?

Looking at our code, we use RackTypeList::addRackTypeFrom to load a Rack from a preset ValueTree.

1 Like