Exemplo n.º 1
0
        public static void InitialSettings()
        {
            faderPage           = 1;
            EncoderMenuPosition = 1;
            BigEncoderOption    = BigEncoderButtonFunctionMidiValue.straightenAngle;
            ActivePanel         = ActivePanel.loupe;

            SendToMidiDevice.Send("Encoder");

            Display.Send(1, "High.  ", "Tone   ");
            Display.Send(2, "Lights ", "Tone   ");
            Display.Send(3, "Darks  ", "Tone   ");
            Display.Send(4, "Shadow ", "Tone   ");
            Display.Send(5, "Shadow ", "Split  ");
            Display.Send(6, "Midtone", "Split  ");
            Display.Send(7, "High.  ", "Split  ");
            Display.Send(8, "       ", "       ");

            LrParameters.BigEncoderDisplayButtons();

            SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 95, 0);

            SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 80, 0);
            SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 81, 0);
            SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 82, 0);
            SendToMidiDevice.MidiSend(ChannelCommand.NoteOn, 0, 83, 0);
        }
Exemplo n.º 2
0
        public static void Read(int id)
        {
            var saveList          = GlobalSettings.saveParameterList;
            var acctualParameters = LrParameters.listParameter;

            var model = saveList.Where(x => x.Id == id).FirstOrDefault();

            if (model != null)
            {
                foreach (var item in model.ParameterList)
                {
                    var model2 = acctualParameters.Where(x => x.name == item.name).FirstOrDefault();

                    model2.value = item.value;

                    SendToMidiDevice.Send(model2.name);
                }
            }

            foreach (var item in saveList.Where(x => x.Id == id).FirstOrDefault().ParameterList)
            {
                SendToLr.Send(item.name, item.value.ToString());
            }
        }