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

Public Types | |
| enum | CACrescendoType { Crescendo , Decrescendo } |
Public Types inherited from CAMark | |
| enum | CAMarkType { Undefined = -1 , Text , Tempo , Ritardando , Dynamic , Crescendo , Pedal , InstrumentChange , BookMark , RehersalMark , Fermata , RepeatMark , Articulation , Fingering } |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0 , Note , Rest , MidiNote , Barline , Clef , TimeSignature , KeySignature , Slur , Tuplet , Syllable , FunctionMark , FiguredBassMark , Mark } |
Static Public Member Functions | |
| static const QString | crescendoTypeToString (CACrescendoType t) |
| static CACrescendoType | crescendoTypeFromString (const QString r) |
Static Public Member Functions inherited from CAMark | |
| static const QString | markTypeToString (CAMarkType t) |
| static CAMarkType | markTypeFromString (const QString s) |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Private Attributes | |
| int | _finalVolume |
| CACrescendoType | _crescendoType |
Additional Inherited Members | |
Protected Member Functions inherited from CAMark | |
| void | setCommon (bool c) |
Protected Member Functions inherited from CAMusElement | |
| void | setMusElementType (CAMusElementType type) |
Protected Attributes inherited from CAMusElement | |
| CAMusElementType | _musElementType |
| QList< CAMark * > | _markList |
| QList< CANoteCheckerError * > | _noteCheckerErrorList |
| CAContext * | _context |
| int | _timeStart |
| int | _timeLength |
| bool | _visible |
| QColor | _color |
| QString | _name |
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().


|
virtual |
|
virtual |
Reimplemented from CAMark.
References CACrescendo(), crescendoType(), finalVolume(), CAMusElement::musElementType(), CAMusElement::Note, CAMusElement::timeLength(), and CAMusElement::timeStart().

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

|
inline |
References _crescendoType.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

|
static |
References Crescendo, and Decrescendo.
Referenced by CACanorusMLImport::importMark().

|
static |
References Crescendo, and Decrescendo.
Referenced by CACanorusMLExport::exportMarks().

|
inline |
References _finalVolume.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

|
inline |
|
inline |
|
private |
Referenced by crescendoType(), and setCrescendoType().
|
private |
Referenced by finalVolume(), and setFinalVolume().