Search Results for

    Show / Hide Table of Contents

    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 and 9.

    Examples of valid interval strings:

    -1
    8
    0

    In this article
    Back to top 2024 / Generated by DocFX