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

Method forceValueTreeOntoComponents

Source/gui/ArpComponent.cpp:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void ArpComponent::forceValueTreeOntoComponents(ValueTree p_tree) {
267
268 m_octave_selector.setValue((int)m_value_tree.state.getChildWithName("misc")["arp_octaves"]);
269
270 setNumberLEDsToShow((int)m_value_tree.state.getChildWithName("misc")["arp_steps"]);
271 m_steps_selector.setValue((int)m_value_tree.state.getChildWithName("misc")["arp_steps"]);
272
273 m_direction.setValue((int)m_value_tree.state.getChildWithName("misc")["arp_direction"]);
274 m_gate.setValue((int)m_value_tree.state.getChildWithName("misc")["arp_gate"]);
275 m_sync_time.setValues((int)m_value_tree.state.getChildWithName("misc")["arp_synctime_numerator"], (int)m_value_tree.state.getChildWithName("misc")["arp_synctime_denominator"]);
276
277 setModTranspose(!m_mod_transpose.getToggleState());
278 setComponentsEnabled();
279}
280
281void ArpComponent::setVisibleAndStartTimer(bool p_set_visible) {
282 if (p_set_visible) {

Callers

nothing calls this directly

Calls 2

setValuesMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected