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

Method forceValueTreeOntoComponents

Source/gui/DelayComponent.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void DelayComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
143 m_sync_time.setValues(m_value_tree.state.getChildWithName("fx")[m_delay_synctime_numerator_identifier],
144 m_value_tree.state.getChildWithName("fx")[m_delay_synctime_denominator_identifier]);
145 m_sync.setToggleState((float)m_value_tree.state.getChildWithName("fx")["delay_sync"] > 0.5f, dontSendNotification);
146 setSync((float)m_value_tree.state.getChildWithName("fx")["delay_sync"] > 0.5f);
147 //send change message to set member in processor
148 m_value_tree.state.getChildWithName("fx").sendPropertyChangeMessage((Identifier)("delay_sync"));
149}
150
151void DelayComponent::resized() {
152 GET_LOCAL_AREA(m_time_label, "DelayTimeLabel");

Callers

nothing calls this directly

Calls 1

setValuesMethod · 0.80

Tested by

no test coverage detected