private void button_UpTone_Click(object sender, RoutedEventArgs e) { MidiPlay.changekey(1); toneId = toneId + 1; upWin_Tone.Text = toneOfMusic[toneId % 12]; keyDownColor_right(60); }
private void button_DownTone_Click(object sender, RoutedEventArgs e) { //if(toneId<=12) MidiPlay.changekey(-1); toneId = toneId - 1; if (toneId < 0) { toneId += 12; } upWin_Tone.Text = toneOfMusic[toneId % 12]; }