private void frmConfig_Load(object sender, EventArgs e) { List <float> flist = new List <float>(); flist.Add(0); flist.Add(2); flist.Add(4); flist.Add(6); flist.Add(8); flist.Add(10); DiscDraw.Draw(pictureBox1, flist); DiscDraw.Draw(pictureBox2, flist); _config = Config.ReadXML(configFilename); lstMIDIEvent.Items.Clear(); //ASIOドライバー一覧取得 foreach (string device in AsioOut.GetDriverNames()) { cboAsioDriver.Items.Add(device); } if (cboAsioDriver.Items.Count > 0) { cboAsioDriver.SelectedIndex = 0; } //MIDI入力デバイス一覧取得 for (int device = 0; device < MidiIn.NumberOfDevices; device++) { cboMIDIINDEVICE.Items.Add(MidiIn.DeviceInfo(device).ProductName); } if (cboMIDIINDEVICE.Items.Count > 0) { cboMIDIINDEVICE.SelectedIndex = 0; } }
private void MIDIinputToGraphic() { DiscDraw.Draw(pictureBox1, new List <float>()); DiscDraw.Draw(pictureBox2, new List <float>()); if (LOnOff) { DiscDraw.DrawTouch(pictureBox1); } if (ROnOff) { DiscDraw.DrawTouch(pictureBox2); } trkFader.Value = Fader; DiscDraw.DrawDiscPos(pictureBox1, LCount); DiscDraw.DrawDiscPos(pictureBox2, RCount); }