| 603 | } |
| 604 | |
| 605 | void OdinAudioProcessor::treeValueChangedFilFormant(const String &p_ID, float p_new_value) { |
| 606 | #ifdef DEBUG_VARIABLES |
| 607 | DBG("fil_formant: " + p_ID + ": " + std::to_string(p_new_value)); |
| 608 | #endif |
| 609 | StringRef id = StringRef(p_ID); |
| 610 | |
| 611 | if (id == m_fil1_formant_transition_identifier) { |
| 612 | for (int voice = 0; voice < VOICES; ++voice) { |
| 613 | m_voice[voice].formant_filter[0].setTransition(p_new_value); |
| 614 | } |
| 615 | } else if (id == m_fil2_formant_transition_identifier) { |
| 616 | for (int voice = 0; voice < VOICES; ++voice) { |
| 617 | m_voice[voice].formant_filter[1].setTransition(p_new_value); |
| 618 | } |
| 619 | } else if (id == m_fil3_formant_transition_identifier) { |
| 620 | m_formant_filter[0].setTransition(p_new_value); |
| 621 | m_formant_filter[1].setTransition(p_new_value); |
| 622 | } |
| 623 | } |
| 624 | |
| 625 | void OdinAudioProcessor::treeValueChangedAmp(const String &p_ID, float p_new_value) { |
| 626 | #ifdef DEBUG_VARIABLES |
nothing calls this directly
no test coverage detected