public float GetNoteY(Note note, bool aboveNote = false) { if (NotesPerString.ContainsKey(note.String)) { return(Y + NotesPerString[note.String].Y + (aboveNote ? -NotesPerString[note.String].Height / 2 : 0)); } return(0); }
public float GetNoteX(Note note, bool onEnd = true) { if (NotesPerString.ContainsKey(note.String)) { var n = NotesPerString[note.String]; var pos = X + n.X; if (onEnd) { pos += n.Width; } return(pos); } return(0); }