public static Note Parse(String s) { NoteName nName = NoteNameEx.Parse(s.Substring(0, 1)); Accidental nAccidental = AccidentalEx.Parse(s.Substring(1)); return(new Note(nName, nAccidental)); }
public Note(string name) { this.name = NoteNameEx.Parse(name.Substring(0, 1)); this.accidental = AccidentalEx.Parse(name.Substring(1)); }
public override string ToString() { return(NoteNameEx.ToString(name) + AccidentalEx.ToString(accidental)); }