|
Canorus
0.7
|
Crescendo and Decrescendo marks. More...
#include <crescendo.h>

Public Types | |
| enum | CACrescendoType { Crescendo, Decrescendo } |
Public Member Functions | |
| CACrescendo (int finalVolume, CANote *note, CACrescendoType t=Crescendo, int timeStart=-1, int timeLength=-1) | |
| virtual | ~CACrescendo () |
| CACrescendo * | clone (CAMusElement *elt=0) |
| int | compare (CAMusElement *) |
| const int | finalVolume () |
| void | setFinalVolume (const int v) |
| const CACrescendoType | crescendoType () |
| void | setCrescendoType (CACrescendoType t) |
Static Public Member Functions | |
| static const QString | crescendoTypeToString (CACrescendoType t) |
| static CACrescendoType | crescendoTypeFromString (const QString r) |
Private Attributes | |
| int | _finalVolume |
| CACrescendoType | _crescendoType |
Crescendo and Decrescendo marks.
Copyright (c) 2007, 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 dynamic marks.
Crescendo starts with the current volume and linearily increases the volume
to the final volume. Decrescendo decreases volume to the final volume.| CACrescendo::CACrescendo | ( | int | finalVolume, |
| CANote * | note, | ||
| CACrescendoType | t = Crescendo, |
||
| int | timeStart = -1, |
||
| int | timeLength = -1 |
||
| ) |
References setCrescendoType(), and setFinalVolume().
Referenced by clone().


| CACrescendo::~CACrescendo | ( | ) | [virtual] |
| CACrescendo * CACrescendo::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
Reimplemented from CAMark.
References CACrescendo(), crescendoType(), finalVolume(), CAMusElement::musElementType(), CAMusElement::Note, CAMusElement::timeLength(), and CAMusElement::timeStart().

| int CACrescendo::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 Crescendo, crescendoType(), finalVolume(), CAMusElement::Mark, and CAMusElement::musElementType().

| const CACrescendoType CACrescendo::crescendoType | ( | ) | [inline] |
References _crescendoType.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

| CACrescendo::CACrescendoType CACrescendo::crescendoTypeFromString | ( | const QString | r | ) | [static] |
References Crescendo, and Decrescendo.
Referenced by CACanorusMLImport::importMark().

| const QString CACrescendo::crescendoTypeToString | ( | CACrescendoType | t | ) | [static] |
References Crescendo, and Decrescendo.
Referenced by CACanorusMLExport::exportMarks().

| const int CACrescendo::finalVolume | ( | ) | [inline] |
References _finalVolume.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

| void CACrescendo::setCrescendoType | ( | CACrescendoType | t | ) | [inline] |
| void CACrescendo::setFinalVolume | ( | const int | v | ) | [inline] |
CACrescendoType CACrescendo::_crescendoType [private] |
Referenced by crescendoType(), and setCrescendoType().
int CACrescendo::_finalVolume [private] |
Referenced by finalVolume(), and setFinalVolume().
1.8.0