Broken Preset Browser on VCSL example (C++ API)
-
Hi guys, anyone has a working example of the ValueTree implementation on HISE C++ API??
The one included in https://github.com/christophhart/vcsl_hise/tree/master/AdditionalSourceCode is not working.
-
Remove the if statement altogether and replace the loop in line 92 with this:
static const Array<Identifier> hiseIds = { Identifier("MPEData"), Identifier("MidiAutomation") }; // add any other "hardcoded" child element of the preset XML's root here... int index = 0; for(auto c: v) { if(hiseIds.contains(c.getType()) continue; storedData[index++]->restoreFromValueTree(c); }
Disclaimer: Just typed this out of my head directly in the forum so it might contain typos :)
-
@Christoph-Hart that worked!!!!!!! Do u have all of your codebase in your head??? Man u are a genius