| 1132 | } |
| 1133 | |
| 1134 | void OdinEditor::forceValueTreeOntoComponents(bool p_reset_audio) { |
| 1135 | |
| 1136 | // reset audioengine |
| 1137 | if (p_reset_audio) { |
| 1138 | processor.resetAudioEngine(); |
| 1139 | } |
| 1140 | |
| 1141 | forceValueTreeOntoComponentsOnlyMainPanel(); |
| 1142 | |
| 1143 | // constructor, these seems to have no influence |
| 1144 | setOsc1Plate(m_value_tree.state.getChildWithName("osc")["osc1_type"]); |
| 1145 | setOsc2Plate(m_value_tree.state.getChildWithName("osc")["osc2_type"]); |
| 1146 | setOsc3Plate(m_value_tree.state.getChildWithName("osc")["osc3_type"]); |
| 1147 | setFilter1Plate(m_value_tree.state.getChildWithName("misc")["fil1_type"]); |
| 1148 | setFilter2Plate(m_value_tree.state.getChildWithName("misc")["fil2_type"]); |
| 1149 | setFilter3Plate(m_value_tree.state.getChildWithName("misc")["fil3_type"]); |
| 1150 | |
| 1151 | m_osc1.forceValueTreeOntoComponents(m_value_tree.state, 1, true); |
| 1152 | m_osc2.forceValueTreeOntoComponents(m_value_tree.state, 2, true); |
| 1153 | m_osc3.forceValueTreeOntoComponents(m_value_tree.state, 3, true); |
| 1154 | m_fil1_component.forceValueTreeOntoComponents(m_value_tree.state, 1); |
| 1155 | m_fil2_component.forceValueTreeOntoComponents(m_value_tree.state, 2); |
| 1156 | m_fil3_component.forceValueTreeOntoComponents(m_value_tree.state, 3); |
| 1157 | m_mod_matrix.forceValueTreeOntoComponents(m_value_tree.state); |
| 1158 | m_lfo_1.forceValueTreeOntoComponents(m_value_tree.state); |
| 1159 | m_lfo_2.forceValueTreeOntoComponents(m_value_tree.state); |
| 1160 | m_lfo_3.forceValueTreeOntoComponents(m_value_tree.state); |
| 1161 | m_lfo_4.forceValueTreeOntoComponents(m_value_tree.state); |
| 1162 | m_flanger.forceValueTreeOntoComponents(m_value_tree.state); |
| 1163 | m_phaser.forceValueTreeOntoComponents(m_value_tree.state); |
| 1164 | m_chorus.forceValueTreeOntoComponents(m_value_tree.state); |
| 1165 | m_delay.forceValueTreeOntoComponents(m_value_tree.state); |
| 1166 | m_midsection.forceValueTreeOntoComponents(m_value_tree.state); |
| 1167 | m_fx_buttons_section.forceValueTreeOntoComponents(m_value_tree.state); |
| 1168 | m_arp.forceValueTreeOntoComponents(m_value_tree.state); |
| 1169 | |
| 1170 | m_patch_browser.setSelectedEntriesFromValueTree(); |
| 1171 | } |
| 1172 | |
| 1173 | void OdinEditor::setFXModulesEnablements() { |
| 1174 | m_delay.setEnabled(m_delay_on_button.getToggleState()); |
no test coverage detected