| 88 | } |
| 89 | |
| 90 | void 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 | |
| 101 | void LFOComponent::resized() { |
| 102 | GET_LOCAL_AREA(m_selector, "LFOSelector"); |
nothing calls this directly
no test coverage detected