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

Method forceValueTreeOntoComponents

Source/gui/FXComponent.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void FXComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
142 m_sync_time.setValues(m_value_tree.state.getChildWithName("fx")[m_fx_synctime_numerator_identifier],
143 m_value_tree.state.getChildWithName("fx")[m_fx_synctime_denominator_identifier]);
144
145 m_sync.setToggleState((float)m_value_tree.state.getChildWithName("fx")[(Identifier)(m_fx_name + "_sync")] > 0.5f, dontSendNotification);
146 setSyncEnabled((float)m_value_tree.state.getChildWithName("fx")[(Identifier)(m_fx_name + "_sync")] > 0.5f);
147 //send change message to set member in processor
148 m_value_tree.state.getChildWithName("fx").sendPropertyChangeMessage(((Identifier)(m_fx_name + "_sync")));
149}
150
151void FXComponent::resized() {
152

Callers

nothing calls this directly

Calls 1

setValuesMethod · 0.80

Tested by

no test coverage detected