Beispiel #1
0
        public override void NoteOff(byte note, byte velocity)
        {
            IsOn = false;

            releaseCounter = releaseSample;

            Source.NoteOff(note, velocity);
        }
Beispiel #2
0
        public override void NoteOff(byte note, byte velocity)
        {
            IsOn      = false;
            Sustained = false;

            Component.NoteOff(note, velocity);

            if (IsStereo)
            {
                RightComponent.NoteOff(note, velocity);
            }
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 public override void NoteOff(byte note, byte velocity)
 {
     Envelope.NoteOff(note, velocity);
     Lfo.NoteOff(note, velocity);
 }