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

Method treeValueChangedFilMisc

Source/PluginProcessorValueChange.cpp:572–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void OdinAudioProcessor::treeValueChangedFilMisc(const String &p_ID, float p_new_value) {
573#ifdef DEBUG_VARIABLES
574 DBG("fil_misc: " + p_ID + ": " + std::to_string(p_new_value));
575#endif
576 StringRef id = StringRef(p_ID);
577
578 if (id == m_fil1_ring_mod_amount_identifier) {
579 for (int voice = 0; voice < VOICES; ++voice) {
580 m_voice[voice].ring_mod[0].setAmount(p_new_value);
581 }
582 } else if (id == m_fil2_ring_mod_amount_identifier) {
583 for (int voice = 0; voice < VOICES; ++voice) {
584 m_voice[voice].ring_mod[1].setAmount(p_new_value);
585 }
586 } else if (id == m_fil1_sem_transition_identifier) {
587 for (int voice = 0; voice < VOICES; ++voice) {
588 m_voice[voice].SEM_filter_12[0].m_transition = p_new_value;
589 }
590 } else if (id == m_fil2_sem_transition_identifier) {
591 for (int voice = 0; voice < VOICES; ++voice) {
592 m_voice[voice].SEM_filter_12[1].m_transition = p_new_value;
593 }
594 } else if (id == m_fil3_sem_transition_identifier) {
595 m_SEM_filter_12[0].m_transition = p_new_value;
596 m_SEM_filter_12[1].m_transition = p_new_value;
597 }
598
599 else if (id == m_fil3_ring_mod_amount_identifier) {
600 m_ring_mod[0].setAmount(p_new_value);
601 m_ring_mod[1].setAmount(p_new_value);
602 }
603}
604
605void OdinAudioProcessor::treeValueChangedFilFormant(const String &p_ID, float p_new_value) {
606#ifdef DEBUG_VARIABLES

Callers

nothing calls this directly

Calls 1

setAmountMethod · 0.45

Tested by

no test coverage detected