private void InitPiano() { int i = 0; foreach (Keys key in liveInputManager.Binds) { PianoControl.ChangePianoKeyBind(i, $@"{CodeToNote(i + liveInputManager.OutDevice.LowNoteId)} : {key}"); i++; } PianoControl.Refresh(); }
private void LiveInputForm_KeyDown(object sender, KeyEventArgs e) { if (keySetting) { keySetting = !keySetting; PianoControl.ChangePianoKeyBind(keyIndex, $@"{CodeToNote(keyIndex + liveInputManager.OutDevice.LowNoteId)} : {e.KeyData.ToString()}"); PianoControl.Enabled = true; KeybindLabel.Text = ""; liveInputManager.Binds.Insert(keyIndex, e.KeyData); } }