MCPcopy Create free account
hub / github.com/VASTDynamics/Vaporizer2 / clearCurrentNote

Method clearCurrentNote

VASTvaporizer/Source/Engine/VASTSingleNote.cpp:218–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216//from SynthesiserVoice
217
218void CVASTSingleNote::clearCurrentNote()
219{
220 if (currentlyPlayingNote != -1) {
221 VDBG("Note is cleared - voice is not playing / active anymore: " << getVoiceNo());
222 currentlyPlayingNote = -1;
223 currentlyPlayingSound = nullptr;
224 currentPlayingMidiChannel = 0;
225
226 //remove oscbank softfade
227 for (int bank = 0; bank < 4; bank++) {
228 m_Poly->m_OscBank[bank].removeSingleNoteSoftFadeCycle(mVoiceNo);
229 }
230 resetSoftFadeState();
231 }
232}
233
234
235bool CVASTSingleNote::canPlaySound(SynthesiserSound*)

Callers

nothing calls this directly

Calls 2

getVoiceNoFunction · 0.85

Tested by

no test coverage detected