A MIDI Library for .NET

Note Constructor

Constructs a note name from a letter and accidental.

Note(
   char letter,
   int accidental
);

Parameters

letter
The letter, which must be in ['A'..'G'].
accidental
The accidental. Zero means natural, positive values are sharp by that many semitones, and negative values are flat by that many semitones. Likely values are Natural (0), Sharp (1), DoubleSharp (2), Flat (-1), and DoubleFlat (-2).

Exceptions

Exception Type Condition
ArgumentOutOfRangeException letter is out of range.

See Also

Note Class | Midi Namespace | Note Constructor Overload List