AlphaSynth.Bank.Patch.Sf2Patch.Stop C# (CSharp) Method

Stop() public method

public Stop ( AlphaSynth.Synthesis.VoiceParameters voiceparams ) : void
voiceparams AlphaSynth.Synthesis.VoiceParameters
return void
        public override void Stop(VoiceParameters voiceparams)
        {
            gen.Release(voiceparams.GeneratorParams[0]);
            if (gen.LoopMode != LoopMode.OneShot)
            {
                voiceparams.Envelopes[0].Release(SynthConstants.DenormLimit);
                voiceparams.Envelopes[1].ReleaseSf2VolumeEnvelope();
            }
        }