| 623 | } |
| 624 | |
| 625 | void OdinAudioProcessor::treeValueChangedAmp(const String &p_ID, float p_new_value) { |
| 626 | #ifdef DEBUG_VARIABLES |
| 627 | DBG("Amp: " + p_ID + ": " + std::to_string(p_new_value)); |
| 628 | #endif |
| 629 | StringRef id = StringRef(p_ID); |
| 630 | |
| 631 | if (id == m_amp_pan_identifier) { |
| 632 | for (int voice = 0; voice < VOICES; ++voice) { |
| 633 | m_voice[voice].amp.setPan(p_new_value); |
| 634 | } |
| 635 | } else if (id == m_amp_gain_identifier) { |
| 636 | for (int voice = 0; voice < VOICES; ++voice) { |
| 637 | m_voice[voice].amp.setGainDecibels(p_new_value); |
| 638 | } |
| 639 | } else if (id == m_amp_velocity_identifier) { |
| 640 | for (int voice = 0; voice < VOICES; ++voice) { |
| 641 | m_voice[voice].amp.setVelocityAmount(p_new_value); |
| 642 | } |
| 643 | } else if (id == m_dist_drywet_identifier) { |
| 644 | for (int voice = 0; voice < VOICES; ++voice) { |
| 645 | m_voice[voice].distortion[0].setDryWet(p_new_value); |
| 646 | m_voice[voice].distortion[1].setDryWet(p_new_value); |
| 647 | } |
| 648 | } else if (id == m_dist_threshold_identifier) { |
| 649 | for (int voice = 0; voice < VOICES; ++voice) { |
| 650 | m_voice[voice].distortion[0].setThreshold(p_new_value); |
| 651 | m_voice[voice].distortion[1].setThreshold(p_new_value); |
| 652 | } |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | void OdinAudioProcessor::treeValueChangedDelay(const String &p_ID, float p_new_value) { |
| 657 | #ifdef DEBUG_VARIABLES |
nothing calls this directly
no test coverage detected