MCPcopy Create free account
hub / github.com/asb2m10/dexed / DexedAudioProcessor

Method DexedAudioProcessor

Source/PluginProcessor.cpp:67–121  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

65
66//==============================================================================
67DexedAudioProcessor::DexedAudioProcessor()
68 : AudioProcessor(BusesProperties().withOutput("output", AudioChannelSet::stereo(), true)) {
69#ifdef DEBUG
70 // avoid creating the log file if it is in standalone mode
71 if ( !JUCEApplication::isStandaloneApp() ) {
72 Logger *tmp = Logger::getCurrentLogger();
73 if ( tmp == NULL ) {
74 Logger::setCurrentLogger(FileLogger::createDateStampedLogger("Dexed", "DebugSession-", "log", "DexedAudioProcessor Created"));
75 }
76 }
77 TRACE("Hi");
78#endif
79
80 Exp2::init();
81 Tanh::init();
82 Sin::init();
83
84 synthTuningState = createStandardTuning();
85 synthTuningStateLast = createStandardTuning();
86
87 lastStateSave = 0;
88 currentNote = -1;
89 engineType = -1;
90
91 vuSignal = 0;
92 monoMode = 0;
93
94 resolvAppDir();
95
96 initCtrl();
97 sendSysexChange = true;
98 normalizeDxVelocity = false;
99 sysexComm.listener = this;
100 showKeyboard = true;
101
102 memset(&voiceStatus, 0, sizeof(VoiceStatus));
103 setEngineType(DEXED_ENGINE_MARKI);
104
105 controllers.values_[kControllerPitchRangeUp] = 3;
106 controllers.values_[kControllerPitchRangeDn] = 3;
107 controllers.values_[kControllerPitchStep] = 0;
108 controllers.masterTune = 0;
109
110 loadPreference();
111
112 for (int note = 0; note < MAX_ACTIVE_NOTES; ++note) {
113 voices[note].dx7_note = NULL;
114 }
115 setCurrentProgram(0);
116 nextMidi = NULL;
117 midiMsg = NULL;
118
119 mtsClient = NULL;
120 mtsClient = MTS_RegisterClient();
121}
122
123DexedAudioProcessor::~DexedAudioProcessor() {
124 Logger *tmp = Logger::getCurrentLogger();

Callers

nothing calls this directly

Calls 1

createStandardTuningFunction · 0.85

Tested by

no test coverage detected