Resets performance state */
| 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 | { |
no test coverage detected