Note Constructor |
Default note will be rest (zero frequency), quarter note.
It is expected that Note objects will be constructed using object intializers.
// Create a 3/8th length, middle C note Note note1 = new Note { Frequency = Note.C4, NamedValue = NoteValue.Quarter, Dots = 1 }; // Create a 1/8th length, E above middle C note Note note2 = new Note { ID = "E4", NamedValueBritish = NoteValueBritish.Quaver }; // Create a whole length, F# above middle C note, "p" soft dynamic Note note3 = new Note { Frequency = Note.F4S, Value = 1.0, NamedDynamic = Dynamic.Piano };