I’ve got two ValueTrees, one in the Processor and one in the Editor. Now, I’d like to synchronize a property between these two trees. I was trying referTo on the property as value, but it doesn’t work. What is the best way to solve this?
// In the processor : ValueTree processorVT("Processor") processorVT.setProperty("First", 1.0, nullptr); //In the Editor : ValueTree editorVT("Editor") editorVT.setProperty("First", 1.0, nullptr); editorVT.getPropertyAsValue("First", nullptr).referTo(p.processorVT.getPropertyAsValue("First",nullptr) );