MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / panic

Method panic

plugins/Cardinal/src/HostMIDI.cpp:160–181  ·  view source on GitHub ↗

Resets performance state */

Source from the content-addressed store, hash-verified

158
159 /** Resets performance state */
160 void panic(const bool resetPitch)
161 {
162 for (int c = 0; c < 16; c++) {
163 notes[c] = 60;
164 gates[c] = false;
165 gatesForceGap[c] = false;
166 velocities[c] = 0;
167 aftertouches[c] = 0;
168 pwFilters[c].reset();
169 modFilters[c].reset();
170 }
171 if (resetPitch) {
172 for (int c = 0; c < 16; c++) {
173 notes[c] = 60;
174 pws[c] = 8192;
175 mods[c] = 0;
176 }
177 }
178 pedal = false;
179 rotateIndex = -1;
180 heldNotes.clear();
181 }
182
183 bool process(const ProcessArgs& args, std::vector<rack::engine::Output>& outputs, const bool isBypassed)
184 {

Callers 1

appendContextMenuMethod · 0.45

Calls 2

resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected