public void pianoKeyDown(int xKey) { string send = NoteInput.input(xKey); if (editSingleNote) { inputMainMelodyChange(singleNoteId, send); editSingleNote = false; } else { this.textBlock_main.Text += send; addMelody(send.Trim());//加一个音 } keyDown(send); }
public void pianoKeyUp(int xKey) { string send = NoteInput.input(xKey); send.Substring(0, send.Length - 1); }