public override void NoteOff(byte note, byte velocity) { IsOn = false; releaseCounter = releaseSample; Source.NoteOff(note, velocity); }
public override void NoteOff(byte note, byte velocity) { IsOn = false; Sustained = false; Component.NoteOff(note, velocity); if (IsStereo) { RightComponent.NoteOff(note, velocity); } }
public sealed override void NoteOff(byte note, byte velocity) { IsOn = false; if (onCounter >= onLength) { releaseDrop = Sustain; } else if (onCounter <= attackSample) { releaseDrop = (double)onCounter / attackSample; } else { releaseDrop = 1 - decayDrop * (onCounter - attackSample) / decaySample; } Source.NoteOff(note, velocity); }
public override void NoteOff(byte note, byte velocity) { Envelope.NoteOff(note, velocity); Lfo.NoteOff(note, velocity); }