Planeshift
|
Used to keep track of previous altered notes in the current measure. More...
#include <scoreelements.h>
Public Member Functions | |
psMusic::Accidental | GetPreviousAccidental (const Note ¬e) const |
Get an eventual accidental that previously appeared in the same measure. | |
NoteContext () | |
Constructor. | |
void | ResetContext () |
Empty the list of previously altered note. | |
void | UpdateContext (const MeasureElement &element) |
Update the list of previous accidental with all the notes in the given measure element. | |
void | UpdateContext (const Note ¬e) |
Update the list of previous accidental if the given note has any. |
Used to keep track of previous altered notes in the current measure.
Hides the implementation of note context updating to other classes. It must be resetted at every measure and updated at every note.
Definition at line 64 of file scoreelements.h.
Note::NoteContext::NoteContext | ( | ) |
Constructor.
psMusic::Accidental Note::NoteContext::GetPreviousAccidental | ( | const Note & | note | ) | const |
Get an eventual accidental that previously appeared in the same measure.
note | The note that should be checked. |
void Note::NoteContext::ResetContext | ( | ) |
Empty the list of previously altered note.
void Note::NoteContext::UpdateContext | ( | const MeasureElement & | element | ) |
Update the list of previous accidental with all the notes in the given measure element.
element | The current element. |
void Note::NoteContext::UpdateContext | ( | const Note & | note | ) |
Update the list of previous accidental if the given note has any.
note | The current played note. |