Beispiel #1
0
        private void MidiVolumeSliderLearnCallback(object sender, MidiInMessageEventArgs e)
        {
            ControlChangeEvent evento = (ControlChangeEvent)e.MidiEvent;

            _volumeSliderMidiController = evento.Controller;
            GlobalStaticContext.RegisterPadWithMidiController(this, _volumeSliderMidiController.Value);
            GlobalStaticContext.ExitLearnMode();
        }
Beispiel #2
0
        private void MidiPushButtonLearnCallback(object sender, MidiInMessageEventArgs e)
        {
            NoteOnEvent evento = (NoteOnEvent)e.MidiEvent;

            _pushButtonMidiNote = evento.NoteNumber;
            GlobalStaticContext.RegisterPadWithMidiNote(this, _pushButtonMidiNote);
            GlobalStaticContext.ExitLearnMode();
        }