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); }); }