Enum Note
- Namespace
- GB
- Assembly
- GBSharp.Framework.dll
A pitch, as the value the frequency registers actually take.
public enum Note : ushort
Fields
A3 = 1452A4 = 1750A5 = 1899A6 = 1974As3 = 1486As4 = 1767As5 = 1907As6 = 1978B3 = 1517B4 = 1783B5 = 1915B6 = 1982C3 = 1046C4 = 1547C5 = 1798C6 = 1923Cs3 = 1102Cs4 = 1575Cs5 = 1812Cs6 = 1930D3 = 1155D4 = 1602D5 = 1825D6 = 1936Ds3 = 1205Ds4 = 1627Ds5 = 1837Ds6 = 1943E3 = 1253E4 = 1650E5 = 1849E6 = 1949F3 = 1297F4 = 1673F5 = 1860F6 = 1954Fs3 = 1339Fs4 = 1694Fs5 = 1871Fs6 = 1959G3 = 1379G4 = 1714G5 = 1881G6 = 1964Gs3 = 1417Gs4 = 1732Gs5 = 1890Gs6 = 1969
Remarks
These are periods, not frequencies: the hardware wants
2048 - 131072/Hz, and that is what the members hold. Higher values
are higher pitches, and the spacing is not linear.
The enum is backed by ushort so a note used at a call site folds to a
literal during lowering. There is no note table in ROM and no lookup at
runtime: writing Note.A4 costs exactly what writing 1750 would.