#include <TimeConstraint.h>
Public Member Functions | |
| TimeConstraint () | |
| ~TimeConstraint () | |
| void | reset (double) |
| void | moveX (double) |
| void | moveXAfterDivision (int, double) |
| double | getMinimumXAttribute (int) |
| double | getMinimumX (int) |
| double | getLastX () |
| double | getFirstXNote () |
| void | setMinimumXNote (int, double) |
| void | setMinimumXAttribute (int, double) |
| void | sideMapMusicSymbol (int start, MusicSymbol *ms) |
| void | mapMusicSymbol (int start, int end, MusicSymbol *ms) |
| void | adjustSize (int) |
| int | countWhiteSpace () |
| QString | toString () |
| void | applyKerning (double) |
|
|
Construct a time constraint |
|
|
Detructor of the time constraint not implemnted yet |
|
|
This adjust the size of the vector
|
|
|
This apply the kerning is the extra white we add |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
This function associate a music symbol to a division this set the minimum X note to ms->getX()+ms->length()
|
|
|
Is called in the second pass it displace the whole time constraint to X by substracting the difference to all the elements of the time constraint This also move the attributes
|
|
||||||||||||
|
Move all the note after the start division of the value specified by the movement variable Note : This does not move the atributes
|
|
|
Is called by the Constructor and when a new line is started. It set all the minimum x to start
|
|
||||||||||||
|
Set the minimum x for the division div Consequently it also set the minimum x for the following divisions |
|
||||||||||||
|
Set the minimum x for the division div Consequently it also set the minimum x for the following divisions Implementation Notes : The two fields manipulated by this method
|
|
||||||||||||
|
This attach to the left a music symbol on the division map. This is useful for grace notes. this function works fine in quite rare case. For instance, this assume that the length of the side symbol is always the same. actually the set minimumXnote should use the greatest length of all the side symbols |
|
|
|
1.3.6