Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
crescendo.h
Go to the documentation of this file.
1 
8 #ifndef CRESCENDO_H_
9 #define CRESCENDO_H_
10 
11 #include "core/mark.h"
12 
13 class CANote;
14 
15 class CACrescendo: public CAMark {
16 public:
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 
36 private:
37  int _finalVolume; // volume percantage - from 0% to 100%
39 };
40 
41 #endif /* CRESCENDO_H_ */
int _finalVolume
Definition: crescendo.h:37
CACrescendo(int finalVolume, CANote *note, CACrescendoType t=Crescendo, int timeStart=-1, int timeLength=-1)
Definition: crescendo.cpp:21
Definition: crescendo.h:18
CACrescendo * clone(CAMusElement *elt=0)
Definition: crescendo.cpp:30
const int finalVolume()
Definition: crescendo.h:28
Marks that depend on other music elements.
Definition: mark.h:15
virtual ~CACrescendo()
Definition: crescendo.cpp:27
virtual int timeStart()
Definition: muselement.h:48
Represents a note in the score.
Definition: note.h:18
const CACrescendoType crescendoType()
Definition: crescendo.h:30
virtual int timeLength()
Definition: muselement.h:50
void setFinalVolume(const int v)
Definition: crescendo.h:29
An abstract class which represents every music element in the score.
Definition: muselement.h:20
Definition: crescendo.h:19
Crescendo and Decrescendo marks.
Definition: crescendo.h:15
CACrescendoType _crescendoType
Definition: crescendo.h:38
CACrescendoType
Definition: crescendo.h:17
void setCrescendoType(CACrescendoType t)
Definition: crescendo.h:31
int compare(CAMusElement *)
Definition: crescendo.cpp:34
static CACrescendoType crescendoTypeFromString(const QString r)
Definition: crescendo.cpp:59
static const QString crescendoTypeToString(CACrescendoType t)
Definition: crescendo.cpp:50