Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            IsMdiContainer = true;

            mMid    = new M_MidModel();
            cMid    = new C_MidControl();
            formCap = new MidiOutCaps();

            gridForm           = new PianoRoll();
            gridForm.MdiParent = this;
            //FormBorderStyle = FormBorderStyle.None;
            //WindowState = FormWindowState.Maximized;

            wGraph           = new WaveGraph();
            wGraph.MdiParent = this;

            num_midi_devices = M_MidModel.midiInGetNumDevs();
            if (num_midi_devices == 0)
            {
                //Console.Write("Please connect MIDI device and try again.\nPress any key...");
                //Console.ReadLine();
                //Environment.Exit(1);
            }
            else
            {
                handle      = new HMIDIIN();
                formDevices = new MIDIINCAPS[num_midi_devices];
            }
        }
Esempio n. 2
0
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            num_midi_devices = M_MidModel.midiInGetNumDevs();

            if (num_midi_devices == 0)
            {
                //Console.Write("Please connect MIDI device and try again.\nPress any key...");
                //Console.ReadLine();
                //Environment.Exit(1);
            }
            else
            {
                handle      = new HMIDIIN();
                formDevices = new MIDIINCAPS[num_midi_devices];
            }
        }