Octave
The main purpose of the Octave class is to provide an alternative way to get an instance of the Note class. Some examples of usage:
// Get first octave
var firstOctave = Octave.Get(1);
// Then we can get notes from this octave in a simple way
var aSharpNote = firstOctave.ASharp;
var bNote = firstOctave.B;
// Get middle C note
var middleC = Octave.Middle.C;
Parsing
Following strings can be parsed to Octave
:
OctaveNumber
where
- OctaveNumber is the number of an octave. A number must be between
-1
and9
.
Examples of valid interval strings:
-1
8
0