コード例 #1
0
        // Edit tone controls:
        //...

        // Constructor
        public UIHandler(StackLayout mainStackLayout, Integra7Random_Xamarin.MainPage mainPage)
        {
            this.mainStackLayout = mainStackLayout;
            this.mainPage        = mainPage;
            MainPage_Device      = mainPage.MainPage_Device;
            Init();
        }
コード例 #2
0
 public void Init(Integra7Random_Xamarin.MainPage mainPage, String deviceName, Picker OutputDeviceSelector, Picker InputDeviceSelector, object MainActivity, byte MidiOutPortChannel, byte MidiInPortChannel)
 {
     mainActivity           = (MainActivity)MainActivity;
     this.MainPage_Portable = mainPage;
     timer = new Timer();
     timer.ScheduleAtFixedRate(this, 1, 1);
 }
コード例 #3
0
 // Constructor using a combobox for full device watch:
 public MIDI(Integra7Random_Xamarin.MainPage mainPage, MainPage mainPage_UWP, Picker OutputDeviceSelector, Picker InputDeviceSelector, byte MidiOutPortChannel, byte MidiInPortChannel)
 {
     this.mainPage           = mainPage;
     this.MainPage_UWP       = mainPage_UWP;
     midiOutputDeviceWatcher = new MidiDeviceWatcher(MidiOutPort.GetDeviceSelector(), OutputDeviceSelector, mainPage_UWP.Dispatcher_UWP);
     midiInputDeviceWatcher  = new MidiDeviceWatcher(MidiInPort.GetDeviceSelector(), InputDeviceSelector, mainPage_UWP.Dispatcher_UWP);
     midiOutputDeviceWatcher.StartWatcher();
     midiInputDeviceWatcher.StartWatcher();
     this.MidiOutPortChannel = MidiOutPortChannel;
     this.MidiInPortChannel  = MidiInPortChannel;
 }
コード例 #4
0
 public void Init(Integra7Random_Xamarin.MainPage mainPage, String deviceName, Picker OutputDeviceSelector, Picker InputDeviceSelector, object Dispatcher, byte MidiOutPortChannel, byte MidiInPortChannel)
 {
     this.mainPage           = mainPage;
     midiOutputDeviceWatcher = new MidiDeviceWatcher(MidiOutPort.GetDeviceSelector(), OutputDeviceSelector, (CoreDispatcher)Dispatcher);
     midiInputDeviceWatcher  = new MidiDeviceWatcher(MidiInPort.GetDeviceSelector(), InputDeviceSelector, (CoreDispatcher)Dispatcher);
     midiOutputDeviceWatcher.StartWatcher();
     midiInputDeviceWatcher.StartWatcher();
     this.MidiOutPortChannel = MidiOutPortChannel;
     this.MidiInPortChannel  = MidiInPortChannel;
     Init(deviceName);
 }
コード例 #5
0
 public MIDI(Integra7Random_Xamarin.MainPage mainPage, Picker OutputDeviceSelector, Picker InputDeviceSelector, byte MidiOutPortChannel, byte MidiInPortChannel)
 {
     Init("INTEGRA-7", mainPage, OutputDeviceSelector, InputDeviceSelector, MidiOutPortChannel, MidiInPortChannel);
 }
コード例 #6
0
 public void Init(String deviceName, Integra7Random_Xamarin.MainPage mainPage, Picker OutputDeviceSelector, Picker InputDeviceSelector)
 {
     this.mainPage = mainPage;
     Init(deviceName, mainPage, OutputDeviceSelector, InputDeviceSelector, 0, 0);
 }
コード例 #7
0
 public void Init(String deviceName, Integra7Random_Xamarin.MainPage mainPage)
 {
     this.mainPage = mainPage;
     Init(deviceName);
 }
コード例 #8
0
        public App()
        {
            InitializeComponent();

            MainPage = new Integra7Random_Xamarin.MainPage();
        }