Lomse library. API documentation
0.30.0
|
#include <lomse_pitch.h>
Class DiatonicPitch represents the note in a diatonic scale. Only Step and Octave information. It has the following properties:
Public Member Functions | |
DiatonicPitch (int value) | |
DiatonicPitch (int step, int octave) | |
DiatonicPitch () | |
~DiatonicPitch () | |
operator int () | |
DiatonicPitch | operator- (int i) |
DiatonicPitch | operator+ (int i) |
DiatonicPitch | operator-= (int i) |
DiatonicPitch | operator+= (int i) |
MidiPitch | to_midi_pitch () |
FPitch | to_FPitch (EKeySignature nKey) |
string | get_english_note_name () |
string | get_ldp_name () |
int | step () |
int | octave () |
bool | operator== (DiatonicPitch dp) |
bool | operator!= (DiatonicPitch dp) |
bool | operator< (DiatonicPitch dp) |
bool | operator> (DiatonicPitch dp) |
bool | operator<= (DiatonicPitch dp) |
bool | operator>= (DiatonicPitch dp) |
|
inline |
Constructor from an int value representing a DiatonicPitch.
DiatonicPitch::DiatonicPitch | ( | int | step, |
int | octave | ||
) |
Constructor from pitch components.
|
inline |
Default constructor. Invalid pitch.
|
inline |
Destructor.
string DiatonicPitch::get_english_note_name | ( | ) |
Pitch conversion to other formats.
string DiatonicPitch::get_ldp_name | ( | ) |
Pitch conversion to other formats.
|
inline |
Components extraction
|
inline |
Operator to cast to an int.
|
inline |
Comparison operators
|
inline |
Increment / decrement pitch by a certain number of steps.
|
inline |
Increment / decrement pitch by a certain number of steps.
|
inline |
Increment / decrement pitch by a certain number of steps.
|
inline |
Increment / decrement pitch by a certain number of steps.
|
inline |
Comparison operators
|
inline |
Comparison operators
|
inline |
Comparison operators
|
inline |
Comparison operators
|
inline |
Comparison operators
|
inline |
Components extraction
FPitch DiatonicPitch::to_FPitch | ( | EKeySignature | nKey | ) |
Pitch conversion to other formats.
MidiPitch DiatonicPitch::to_midi_pitch | ( | ) |
Pitch conversion to other formats.