コード例 #1
0
        internal MixerConnector(PlatformMXController controller, Mixer mixer)
        {
            this.controller           = controller;
            this.mixer                = mixer;
            controller.ButtonChanged += HandleButtonChanged;
            controller.FaderMoved    += ChangeVolume;

            // TODO: Mapping from knob to input channel customization
            channels = Enumerable.Range(1, 8)
                       .Select(index => XAir.CreateInputChannel(mixer, index))
                       .ToList();
            renewTimer = new Timer(RefreshSubscriptionsAsync);
        }
コード例 #2
0
ファイル: MixerConnector.cs プロジェクト: marked23/DemoCode
        internal MixerConnector(XTouchMiniMackieController controller, Mixer mixer)
        {
            this.mixer             = mixer;
            controller.ButtonDown += HandleButtonDown;
            controller.KnobTurned += HandleKnobTurned;
            controller.FaderMoved += ChangeMainVolume;

            // TODO: Mapping from knob to input channel customization
            channels = Enumerable.Range(1, 8)
                       .Select(index => new ControlledChannel(XAir.CreateInputChannel(mixer, index), controller, index))
                       .ToList();
            mainOutput = XAir.CreateMainOutputChannel(mixer);
            renewTimer = new Timer(RefreshSubscriptionsAsync);
        }