|
MUSX Document Model
|
A spelled pitch, expressed relative to C4. More...
#include <music_theory.hpp>
Public Member Functions | |
| constexpr | Pitch ()=default |
| Creates an unspecified pitch. | |
| constexpr | Pitch (NoteName pitchName, int pitchOctave, int pitchAlteration=0) |
| Creates a spelled pitch. | |
Public Attributes | |
| NoteName | noteName {} |
| The diatonic note name. | |
| int | octave {} |
| The octave number, where C4 is middle C. | |
| int | alteration {} |
| The alteration relative to the natural note name, in EDO divisions. | |
A spelled pitch, expressed relative to C4.
The alteration is relative to the natural note name, in EDO divisions. This type does not encode a key signature or scale degree.
|
inlineconstexpr |
Creates a spelled pitch.
| pitchName | The diatonic note name. |
| pitchOctave | The octave number, where C4 is middle C. |
| pitchAlteration | The alteration relative to the natural note name, in EDO divisions. |