CSharpSynth.Synthesis.StreamSynthesizer.NoteOff C# (CSharp) 메소드

NoteOff() 공개 메소드

public NoteOff ( int channel, int note ) : void
channel int
note int
리턴 void
        public void NoteOff(int channel, int note)
        {
            NoteRegistryKey r = new NoteRegistryKey((byte)channel, (byte)note);
            List<Voice> voice;
            if (keyRegistry.TryGetValue(r, out voice))
            {
                if (voice.Count > 0)
                {
                    voice[0].Stop();
                    voice.RemoveAt(0);
                }
            }
        }