Class NoteUtilities
Provides utilities for working with the
Note.
Inheritance
NoteUtilities
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class NoteUtilities
Methods
GetNoteName(SevenBitNumber)
Gets name of the note presented by note number.
Declaration
public static NoteName GetNoteName(SevenBitNumber noteNumber)
Parameters
Type |
Name |
Description |
SevenBitNumber |
noteNumber |
Note number to get note name of. |
Returns
Type |
Description |
NoteName |
Name of the note presented by noteNumber . |
GetNoteNumber(NoteName, int)
Gets the note number for the specified note name and octave.
Declaration
public static SevenBitNumber GetNoteNumber(NoteName noteName, int octave)
Parameters
Type |
Name |
Description |
NoteName |
noteName |
Name of the note. |
int |
octave |
Number of the octave in scientific pitch notation. |
Returns
Type |
Description |
SevenBitNumber |
Number of the note represented by specified name and octave. |
Exceptions
GetNoteOctave(SevenBitNumber)
Gets octave number of the note presented by note number in scientific pitch notation.
Declaration
public static int GetNoteOctave(SevenBitNumber noteNumber)
Parameters
Type |
Name |
Description |
SevenBitNumber |
noteNumber |
Note number to get octave of. |
Returns
Type |
Description |
int |
Octave of the note presented by noteNumber . |
Transpose(NoteName, Interval)
Transposes note name by the specified interval.
Declaration
public static NoteName Transpose(this NoteName noteName, Interval interval)
Parameters
Returns
Type |
Description |
NoteName |
Note name which is noteName transposed by interval . |
Exceptions