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

Method treeValueChangedLFO1

Source/PluginProcessorValueChange.cpp:1019–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017}
1018
1019void 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
1036void OdinAudioProcessor::treeValueChangedLFO2(const String &p_ID, float p_new_value) {
1037#ifdef DEBUG_VARIABLES

Callers

nothing calls this directly

Calls 2

setResetActiveMethod · 0.80
setBaseFrequencyMethod · 0.45

Tested by

no test coverage detected