MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / forceValueTreeOntoComponents

Method forceValueTreeOntoComponents

Source/gui/AmpDistortionFlowComponent.cpp:145–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void AmpDistortionFlowComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
146 m_distortion_algo.setValue(m_value_tree.state.getChildWithName("misc")["dist_algo"]);
147 setDistortionPanelActive((float)m_value_tree.state.getChildWithName("misc")["dist_on"] > 0.5f);
148 m_distortion.setToggleState((float)m_value_tree.state.getChildWithName("misc")["dist_on"] > 0.5f, dontSendNotification);
149}
150
151void AmpDistortionFlowComponent::setDistortionPanelActive(bool p_active) {
152 m_distortion_algo.setEnabled(p_active);

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected