MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / setInitialProgramValue

Method setInitialProgramValue

Source/Core/CtrlrPanel/CtrlrPanel.cpp:781–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void CtrlrPanel::setInitialProgramValue (const String &modulatorName, const var &value)
782{
783 ValueTree v(Ids::value);
784 v.setProperty(Ids::name, modulatorName, 0);
785 v.setProperty(Ids::value, value, 0);
786 initialProgram.addChild (v, -1, nullptr);
787}
788
789ValueTree CtrlrPanel::getProgram(ValueTree treeToWriteTo)
790{

Callers 1

restoreStateMethod · 0.80

Calls 2

setPropertyMethod · 0.45
addChildMethod · 0.45

Tested by

no test coverage detected