public void AddNote(double x, double y) { var startTime = MusicMath.Current.GetAbsoluteTime(x); var noteNum = MusicMath.Current.GetNoteNum(y); Part.AddNote(startTime, noteNum); OnPartChanged(); }