|
| Note (const Pitch &n=Pitch(), const Fraction &duration=1) |
| Constructor for note based on pitch. More...
|
|
| Note (NoteName n, Accidental mod=Accidental::None, Octave o=4, const Fraction &duration=Fraction(1)) |
| Constructor for note with full info. More...
|
|
bool | operator== (const Note &o) const __attribute__((pure)) |
| Comparison operator for Note done.
|
|
bool | operator!= (const Note &o) const __attribute__((pure)) |
| Difference operator for Note done.
|
|
| Pitch (const CompleteNoteName &n, Octave o=4) |
| Construtor for Pitch with a CompleteNotename. More...
|
|
| Pitch (NoteName n=NoteName::C, Accidental mod=Accidental::None, Octave o=4) |
| Construtor for Pitch with full info If the note is A Flat, and octave o, it means it is a G Sharp at octave o. More...
|
|
Pitch & | operator+= (int nb) |
| Adds half tones to pitch. More...
|
|
Pitch | operator+ (int nb) const __attribute__((pure)) |
| Creates new Pitch by adding nb half tones to this one. More...
|
|
Pitch & | operator-= (int nb) |
| Substract half tones to pitch. More...
|
|
Pitch | operator- (int nb) const __attribute__((pure)) |
| Creates new Pitch by substracting nb half tones to this one. More...
|
|
bool | operator== (const Pitch &o) const __attribute__((pure)) |
| Comparison operator for Pitch done.
|
|
bool | operator!= (const Pitch &o) const __attribute__((pure)) |
| Difference operator for Pitch done.
|
|
CompleteNoteName | getNoteName () const __attribute__((pure)) |
| Returns the name of the note, ommiting the octave. More...
|
|
| CompleteNoteName (NoteName n=NoteName::C, Accidental mod=Accidental::None) |
| Constructor for CompleteNoteName. More...
|
|
bool | operator== (const CompleteNoteName &o) const __attribute__((pure)) |
| Comparison operator for CompleteNoteName. More...
|
|
bool | operator!= (const CompleteNoteName &o) const __attribute__((pure)) |
| Difference operator for CompleteNoteName. More...
|
|
Describe a note as a musical event (pitch + duration)