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

Method forceValueTreeOntoComponents

Source/gui/LFOComponent.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void LFOComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
91
92 m_selector.setValueGUIOnly(m_value_tree.state.getChildWithName("lfo")[m_lfo_wave_identifier]);
93
94 m_sync_time.setValues(m_value_tree.state.getChildWithName("lfo")[m_lfo_synctime_numerator_identifier],
95 m_value_tree.state.getChildWithName("lfo")[m_lfo_synctime_denominator_identifier]);
96 setSync((float)m_value_tree.state.getChildWithName("lfo")[(Identifier)("lfo" + m_lfo_number + "_sync")] > 0.5f);
97 //m_value_tree.state.getChildWithName("lfo").sendPropertyChangeMessage((Identifier)("lfo" + m_lfo_number + "_sync"));
98 m_sync.setToggleState((float)m_value_tree.state.getChildWithName("lfo")[(Identifier)("lfo" + m_lfo_number + "_sync")] > 0.5f, dontSendNotification);
99}
100
101void LFOComponent::resized() {
102 GET_LOCAL_AREA(m_selector, "LFOSelector");

Callers

nothing calls this directly

Calls 2

setValueGUIOnlyMethod · 0.80
setValuesMethod · 0.80

Tested by

no test coverage detected