| 1017 | } |
| 1018 | |
| 1019 | void OdinAudioProcessor::treeValueChangedLFO1(const String &p_ID, float p_new_value) { |
| 1020 | #ifdef DEBUG_VARIABLES |
| 1021 | DBG("LFO1: " + p_ID + ": " + std::to_string(p_new_value)); |
| 1022 | #endif |
| 1023 | StringRef id = StringRef(p_ID); |
| 1024 | |
| 1025 | if (id == m_lfo1_freq_identifier) { |
| 1026 | for (int voice = 0; voice < VOICES; ++voice) { |
| 1027 | m_voice[voice].lfo[0].setBaseFrequency(p_new_value); |
| 1028 | } |
| 1029 | } else if (id == m_lfo1_reset_identifier) { |
| 1030 | for (int voice = 0; voice < VOICES; ++voice) { |
| 1031 | m_voice[voice].lfo[0].setResetActive(p_new_value > 0.5f); |
| 1032 | } |
| 1033 | } |
| 1034 | } |
| 1035 | |
| 1036 | void OdinAudioProcessor::treeValueChangedLFO2(const String &p_ID, float p_new_value) { |
| 1037 | #ifdef DEBUG_VARIABLES |
nothing calls this directly
no test coverage detected