#include <PartMC.h>
Inheritance diagram for PartMusic:

Public Member Functions | |
| int | getLen () |
| QString | getId () |
| void | startSlur (NoteMusic *, int id) |
| void | stopSlur (NoteMusic *, int id) |
| QPtrList< SlurMC > | getSlurs () |
| PartMusic (QString id, QString name) | |
| void | setVectorCommonNumerator (VectorCommonNumerator *) |
| ~PartMusic () | |
| MeasureMusic * | measureFactory () |
| void | append (MeasureMusic *measure) |
| MeasureMusic * | getMeasure (int nmeasure) |
| int | getNbStaves () |
| void | finalize () |
| void | computeNoteInBeetweenSlurs () |
| QString | toString () |
|
||||||||||||
|
In the constructor we set by default the number of staves to one. |
|
|
Destructor of part music |
|
|
This method append a measure at the end of the part. If the attributes in a staff are void, then we set the attributes of the following measure to those of the preceding measure. But as a default beahaviour those attribute are marked tacit (or implicit which is probalbly a better definition) If the preceding measure has no time signature the behaviour is undetermined and probably leads to a crash. Since the attributes we are giving to this mesure should not appear in the staff we mark them as tacit. Careful ! since we set the attribute the property is tacit we must do some copies of the clef and time signature If there is no time in the current measure we copy it from the last measure ant set this attribute as tacit If there is no key in the current measure we copy it from the last measure ant set this attribute as tacit For each Staff if there is no clef in the current measure we copy it from the last measure ant set this attribute as tacit If there is no divisions in the current measure we copy it from the last measure. |
|
|
This method is called after all the slur had been built. This compute all the note in between of a slur. And add this to the slur. This will help us to determine what are the possible note that can collide with the slur. Actually we do note really ass the notes in beetween but all the note belonging to the measure of the slur this is already a good approximation of the note in beetween of the slur. |
|
|
This method performs the various actions that should be performed once all the measures (filled with notes) had been appended tho the part. Note : This operation could not be performed at the append time because the xml parsing cause the score to first append a void part. |
|
|
This will be used for retrieving a part once it has been declared |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set the vector common numerator surcutre that give the common division for all the measures.
|
|
||||||||||||
|
This start a slur, it is stored in the part until a slur with the same id is ended |
|
||||||||||||
|
This end a slur. This work if it is possible to build the slur (i.e) a slur has been started |
|
|
|
1.3.6