Canorus 0.0
crescendo.h
Go to the documentation of this file.
1
8#ifndef CRESCENDO_H_
9#define CRESCENDO_H_
10
11#include "score/mark.h"
12
13class CANote;
14
15class CACrescendo: public CAMark {
16public:
20 };
21
23 virtual ~CACrescendo();
24
26 int compare( CAMusElement* );
27
28 inline const int finalVolume() { return _finalVolume; }
29 inline void setFinalVolume( const int v ) { _finalVolume = v; }
30 inline const CACrescendoType crescendoType() { return _crescendoType; }
32
33 static const QString crescendoTypeToString( CACrescendoType t );
34 static CACrescendoType crescendoTypeFromString( const QString r );
35
36private:
37 int _finalVolume; // volume percantage - from 0% to 100%
39};
40
41#endif /* CRESCENDO_H_ */
Crescendo and Decrescendo marks.
Definition: crescendo.h:15
int _finalVolume
Definition: crescendo.h:37
CACrescendo * clone(CAMusElement *elt=0)
Definition: crescendo.cpp:30
const CACrescendoType crescendoType()
Definition: crescendo.h:30
static const QString crescendoTypeToString(CACrescendoType t)
Definition: crescendo.cpp:50
CACrescendoType
Definition: crescendo.h:17
@ Crescendo
Definition: crescendo.h:18
@ Decrescendo
Definition: crescendo.h:19
static CACrescendoType crescendoTypeFromString(const QString r)
Definition: crescendo.cpp:60
int compare(CAMusElement *)
Definition: crescendo.cpp:34
CACrescendoType _crescendoType
Definition: crescendo.h:38
void setCrescendoType(CACrescendoType t)
Definition: crescendo.h:31
void setFinalVolume(const int v)
Definition: crescendo.h:29
CACrescendo(int finalVolume, CANote *note, CACrescendoType t=Crescendo, int timeStart=-1, int timeLength=-1)
Definition: crescendo.cpp:21
virtual ~CACrescendo()
Definition: crescendo.cpp:27
const int finalVolume()
Definition: crescendo.h:28
Marks that depend on other music elements.
Definition: mark.h:15
An abstract class which represents every music element in the score.
Definition: muselement.h:21
virtual int timeStart() const
Definition: muselement.h:51
virtual int timeLength() const
Definition: muselement.h:53
Represents a note in the score.
Definition: note.h:18