Some useful methods to get the label of a note. More...
Static Public Member Functions | |
static bool | IsSharp (int midiValue) |
static string | LabelC4FromMidi (int midiValue) |
static string | LabelFromEcart (int valueNote) |
static string | LabelFromMidi (int midiValue) |
static string | LabelPercussion (int midiValue) |
static int | NoteNumber (int midiValue) |
static int | OctaveNumber (int midiValue) |
Get the octave number from the MIDI value (0 to 127) based on Middle C = C4. v2.86. http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html#BMA1_3 More... | |
Some useful methods to get the label of a note.
|
static |
Is this note is a sharp ?
midiValue |
|
static |
Get the label of the note from a MIDI value. C4 standard. v2.86.
Maestro Synth follows the MIDI standard based on Middle C = C4.
http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html#BMA1_3
midiValue | Note value between 0 (C-1) and 127 (G9). 60 will return C4 |
|
static |
Get the label of the note (C, C#, ... E) from a value (0 to 11)
valueNote |
|
static |
Get the label of the note from a MIDI value. C5 standard.
Maestro Synth follows the MIDI standard based on Middle C = C4.
http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html#BMA1_3
But this method is based on Middle C = C5, so 60 return "C5" (for some stupid historic reason).
Use LabelC4FromMidi for label is based based on Middle C = C4.
midiValue | Note value between 0 (C0) and 127 (G10). 60 will return C5 |
|
static |
Get the name of the note from a MIDI value. C5 standard.
In GM standard MIDI files, channel 9 (10 if start at channem 1) is reserved for percussion instruments only.
Notes recorded on channel 10/17 always produce percussion sounds. Each distinct note number specifies a unique percussive instrument, rather than the sound's pitch.
https://en.wikipedia.org/wiki/General_MIDI
midiValue | Note value between 27 (D2#) and 87 (D7#) return the label of a percussive instrument else return an empty string. |
|
static |
Get the note number (0=C, 11=B) from the MIDI value (0 to 127). v2.86.
http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html#BMA1_3
midiValue | Value of the midi event note-on from 0 to 127 |
|
static |
Get the octave number from the MIDI value (0 to 127) based on Middle C = C4. v2.86.
http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html#BMA1_3
midiValue | Value of the midi event note-on |