Example #1
0
        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));
        }
Example #2
0
 public Note(string name)
 {
     this.name       = NoteNameEx.Parse(name.Substring(0, 1));
     this.accidental = AccidentalEx.Parse(name.Substring(1));
 }
Example #3
0
 public override string ToString()
 {
     return(NoteNameEx.ToString(name) + AccidentalEx.ToString(accidental));
 }