|
Canorus
0.7
|
Ritardando and Accellerando marks. More...
#include <ritardando.h>

Public Types | |
| enum | CARitardandoType { Ritardando, Accellerando } |
Public Member Functions | |
| CARitardando (int finalTempo, CAPlayable *p, int timeLength, CARitardandoType t=Ritardando) | |
| virtual | ~CARitardando () |
| CARitardando * | clone (CAMusElement *elt=0) |
| int | compare (CAMusElement *) |
| const int | finalTempo () |
| void | setFinalTempo (const int t) |
| const CARitardandoType | ritardandoType () |
| void | setRitardandoType (CARitardandoType t) |
Static Public Member Functions | |
| static const QString | ritardandoTypeToString (CARitardandoType t) |
| static CARitardandoType | ritardandoTypeFromString (const QString r) |
Private Attributes | |
| int | _finalTempo |
| CARitardandoType | _ritardandoType |
Ritardando and Accellerando marks.
Copyright (c) 2008, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
Relative tempo marks.
Ritardando starts with the current tempo and linearily decreases the tempo
to the final tempo. The original tempo is restored after the ritardando is finished.
Accellerando does the opposite.| CARitardando::CARitardando | ( | int | finalTempo, |
| CAPlayable * | p, | ||
| int | timeLength, | ||
| CARitardandoType | t = Ritardando |
||
| ) |
References setFinalTempo(), and setRitardandoType().
Referenced by clone().


| CARitardando::~CARitardando | ( | ) | [virtual] |
| CARitardando * CARitardando::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
Reimplemented from CAMark.
References CARitardando(), finalTempo(), CAMusElement::isPlayable(), ritardandoType(), and CAMusElement::timeLength().

| int CARitardando::compare | ( | CAMusElement * | elt | ) | [virtual] |
Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.
This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.
Reimplemented from CAMark.
References finalTempo(), CAMusElement::Mark, CAMusElement::musElementType(), Ritardando, and ritardandoType().

| const int CARitardando::finalTempo | ( | ) | [inline] |
References _finalTempo.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

| const CARitardandoType CARitardando::ritardandoType | ( | ) | [inline] |
References _ritardandoType.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

| CARitardando::CARitardandoType CARitardando::ritardandoTypeFromString | ( | const QString | r | ) | [static] |
References Accellerando, and Ritardando.
Referenced by CACanorusMLImport::importMark().

| const QString CARitardando::ritardandoTypeToString | ( | CARitardandoType | t | ) | [static] |
References Accellerando, and Ritardando.
Referenced by CACanorusMLExport::exportMarks().

| void CARitardando::setFinalTempo | ( | const int | t | ) | [inline] |
| void CARitardando::setRitardandoType | ( | CARitardandoType | t | ) | [inline] |
References _ritardandoType.
Referenced by CARitardando().

int CARitardando::_finalTempo [private] |
Referenced by finalTempo(), and setFinalTempo().
Referenced by ritardandoType(), and setRitardandoType().
1.8.0