Class SfzNoteName
Parses SFZ key values, which may be a MIDI note number (0–127) or a note
name such as c4, c#3 or db5 — case-insensitive, in
both the letter and the flat (Db4, dB4 and DB4 all
equal db4). SFZ uses the convention that middle C (c4) is
MIDI note 60, so c-1 is 0.
public static class SfzNoteName
- Inheritance
-
SfzNoteName
- Inherited Members
Methods
Parse(string, int)
Parses a key value to a MIDI note number, returning
fallback if it is neither a number nor a note name.
public static int Parse(string text, int fallback)
Parameters
Returns
TryParse(string, out int)
Tries to parse a key value (note number or note name) to a MIDI note number. Returns false if the text is neither.
public static bool TryParse(string text, out int note)