Exemple #1
0
        public void SetFader(IOutputDevice device, int value)
        {
            if (value > 127 || value < 0)
            {
                return;
            }

            if (Value != value)
            {
                Value = value;
            }
            OnFaderChangedHandler(new FaderChangedEvent(Track, Value));
            device.SendControlChange(Channel.Channel1, (Control)Convert.ToInt32(MapStrings[1]), value);
        }