| 248 | } |
| 249 | |
| 250 | juce::ValueTree ScriptModulationMatrix::exportAsValueTree() const |
| 251 | { |
| 252 | Array<var> l; |
| 253 | |
| 254 | for (auto t : targetData) |
| 255 | { |
| 256 | l.addArray(*t->getConnectionData().getArray()); |
| 257 | } |
| 258 | |
| 259 | return ValueTreeConverters::convertVarArrayToFlatValueTree(var(l), getUserPresetStateId(), "Connection"); |
| 260 | } |
| 261 | |
| 262 | void ScriptModulationMatrix::restoreFromValueTree(const ValueTree &previouslyExportedState) |
| 263 | { |
nothing calls this directly
no test coverage detected