Пример #1
0
        public void Stop(INoteKey key)
        {
            var k = key as NoteKey;

            if (channels[k.channel].user[k.pitch] != k.guid)
            {
                return;
            }
            midiOutShortMsg(handle, (uint)(0x80 | (k.pitch << 8) | k.channel));
            channels[k.channel].activeCount--;
            channels[k.channel].user[k.pitch] = Guid.Empty;
        }
Пример #2
0
 public PlayingSound(Point16 point, Prog program, byte pitch, byte velocity)
 {
     this.point = point;
     key        = ModContainer.device.Play(program, pitch, velocity);
 }