Animatroller.Framework.Expander.MidiInput2.WireUpDevice_Note C# (CSharp) Method

WireUpDevice_Note() private method

private WireUpDevice_Note ( Animatroller device, int midiChannel, int note ) : void
device Animatroller
midiChannel int
note int
return void
        private void WireUpDevice_Note(Animatroller.Framework.PhysicalDevice.DigitalInput device, int midiChannel, int note)
        {
            this.messageMapper.Add(Tuple.Create(midiChannel, ChannelCommand.NoteOn, note), m =>
                {
                    device.Trigger(true);
                });

            this.messageMapper.Add(Tuple.Create(midiChannel, ChannelCommand.NoteOff, note), m =>
                {
                    device.Trigger(false);
                });
        }