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 
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_ */
CAMark::Crescendo
@ Crescendo
Definition: mark.h:23
CACrescendo::finalVolume
const int finalVolume()
Definition: crescendo.h:28
CACrescendo::Decrescendo
@ Decrescendo
Definition: crescendo.h:19
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
CACrescendo::_finalVolume
int _finalVolume
Definition: crescendo.h:37
note.h
CANote
Represents a note in the score.
Definition: note.h:18
CACrescendo::crescendoTypeToString
static const QString crescendoTypeToString(CACrescendoType t)
Definition: crescendo.cpp:50
CACrescendo::clone
CACrescendo * clone(CAMusElement *elt=0)
Definition: crescendo.cpp:30
CACrescendo::CACrescendo
CACrescendo(int finalVolume, CANote *note, CACrescendoType t=Crescendo, int timeStart=-1, int timeLength=-1)
Definition: crescendo.cpp:21
CACrescendo::crescendoType
const CACrescendoType crescendoType()
Definition: crescendo.h:30
CACrescendo::~CACrescendo
virtual ~CACrescendo()
Definition: crescendo.cpp:27
crescendo.h
CACrescendo
Crescendo and Decrescendo marks.
Definition: crescendo.h:15
CAMark::markType
CAMarkType markType()
Definition: mark.h:45
CAMusElement::timeLength
virtual int timeLength() const
Definition: muselement.h:53
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CACrescendo::Crescendo
@ Crescendo
Definition: crescendo.h:18
CACrescendo::setFinalVolume
void setFinalVolume(const int v)
Definition: crescendo.h:29
CACrescendo::CACrescendoType
CACrescendoType
Definition: crescendo.h:17
CAMusElement::Note
@ Note
Definition: muselement.h:25
CACrescendo::_crescendoType
CACrescendoType _crescendoType
Definition: crescendo.h:38
CACrescendo::crescendoTypeFromString
static CACrescendoType crescendoTypeFromString(const QString r)
Definition: crescendo.cpp:60
CAMusElement::timeStart
virtual int timeStart() const
Definition: muselement.h:51
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CACrescendo::compare
int compare(CAMusElement *)
Definition: crescendo.cpp:34
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
mark.h
CACrescendo::setCrescendoType
void setCrescendoType(CACrescendoType t)
Definition: crescendo.h:31