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

Method forceValueTreeOntoComponents

Source/gui/PhaserComponent.cpp:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void PhaserComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
158 m_sync_time.setValues(m_value_tree.state.getChildWithName("fx")[m_fx_synctime_numerator_identifier],
159 m_value_tree.state.getChildWithName("fx")[m_fx_synctime_denominator_identifier]);
160
161 m_sync.setToggleState((float)m_value_tree.state.getChildWithName("fx")["phaser_sync"] > 0.5f, dontSendNotification);
162 setSyncEnabled((float)m_value_tree.state.getChildWithName("fx")["phaser_sync"] > 0.5f);
163 //send change message to set member in processor
164 m_value_tree.state.getChildWithName("fx").sendPropertyChangeMessage((Identifier)("phaser_sync"));
165}
166
167void PhaserComponent::resized() {
168 GET_LOCAL_AREA(m_rate_label, "PhaserRateLabel");

Callers

nothing calls this directly

Calls 1

setValuesMethod · 0.80

Tested by

no test coverage detected