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

Method initializeModules

Source/PluginProcessorMisc.cpp:222–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void OdinAudioProcessor::initializeModules() {
223 m_global_env.reset();
224 m_global_env.setEnvelopeOff(); // so it doesn't start by itself
225
226 m_mod_matrix.setSourcesAndDestinations(&m_mod_sources, &m_mod_destinations);
227
228 m_phaser.setRadiusBase(1.25f);
229
230 // make "stereo" chorus & flanger
231 m_chorus[1].setLFOResetPos(0.25);
232 m_flanger[1].setLFOResetPos(0.5);
233
234 setModulationPointers();
235
236 // set analog osc as sync osc for start
237 for (int voice = 0; voice < VOICES; ++voice) {
238 //todo these are probably set wrongly on plugin load....
239 m_voice[voice].setOscSyncOscillator(&(m_voice[voice].analog_osc[0]));
240 }
241}
242
243void OdinAudioProcessor::setPitchWheelValue(int p_value) {
244 *m_pitchbend = (float)(p_value - 8192) / 8192.f;

Callers

nothing calls this directly

Calls 6

setEnvelopeOffMethod · 0.80
setRadiusBaseMethod · 0.80
setOscSyncOscillatorMethod · 0.80
resetMethod · 0.45
setLFOResetPosMethod · 0.45

Tested by

no test coverage detected