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