Click or drag to resize

Note Constructor

Creates a new note of the specified frequency and length.

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public Note()
View Source
Remarks

Default note will be rest (zero frequency), quarter note.

It is expected that Note objects will be constructed using object intializers.

Example
C#
// 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 };
See Also