Storing extra properties within ModulatorSamplerSound
Hi there! Quick question.
What would be the best approach to store extra properties (using a child ValueTree) within
ModulatorSamplerSound? I tried using the
ModulatorSamplerSound::getData()) and appending a new child ValueTree to store my own properties, but upon reloading it's getting interpreted has multi-mic data.
The alternative would be to store my properties outside but I thought I'd ask first, as there might be a way to do this already.
Thank you in advance!
Christoph Hart last edited by
yes if a sample value tree has a child it means it's multimic. You could add properties using
ValueTree::setProperty()but if you have complex data you might have to serialize (or Base64 encode) it.
@Christoph-Hart Hi! Thanks for the quick reply. Yeah, that's what I came down to, I'll base64 encode my properties to avoid adding a child ValueTree. That'll work even though it's not really optimal.