MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / treeValueChangedFilFormant

Method treeValueChangedFilFormant

Source/PluginProcessorValueChange.cpp:605–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void 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
625void OdinAudioProcessor::treeValueChangedAmp(const String &p_ID, float p_new_value) {
626#ifdef DEBUG_VARIABLES

Callers

nothing calls this directly

Calls 1

setTransitionMethod · 0.80

Tested by

no test coverage detected