Canorus  0.0
tempo.h
Go to the documentation of this file.
1 
8 #ifndef TEMPO_H_
9 #define TEMPO_H_
10 
11 #include "score/mark.h"
12 #include "score/playable.h"
13 
14 class CATempo : public CAMark {
15 public:
17  virtual ~CATempo();
18 
19  CATempo *clone(CAMusElement* elt=0);
20  int compare( CAMusElement *elt );
21 
22  inline int bpm() { return _bpm; }
23  inline void setBpm( int bpm ) { _bpm = bpm; }
24  inline CAPlayableLength beat() { return _beat; }
25  inline void setBeat( CAPlayableLength l ) { _beat = l; }
26 
27 private:
29  int _bpm; // beats per minute
30 };
31 
32 #endif /* TEMPO_H_ */
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
playable.h
CATempo::~CATempo
virtual ~CATempo()
Definition: tempo.cpp:24
CAMark::Tempo
@ Tempo
Definition: mark.h:20
CATempo::bpm
int bpm()
Definition: tempo.h:22
CATempo::_beat
CAPlayableLength _beat
Definition: tempo.h:28
CAMark::markType
CAMarkType markType()
Definition: mark.h:45
CATempo::compare
int compare(CAMusElement *elt)
Definition: tempo.cpp:31
CATempo
Tempo mark.
Definition: tempo.h:14
CATempo::setBeat
void setBeat(CAPlayableLength l)
Definition: tempo.h:25
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CATempo::CATempo
CATempo(CAPlayableLength l, int bpm, CAMusElement *m)
Definition: tempo.cpp:18
CAPlayableLength
Musical length of notes and rests.
Definition: playablelength.h:16
CATempo::clone
CATempo * clone(CAMusElement *elt=0)
Definition: tempo.cpp:27
tempo.h
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CATempo::setBpm
void setBpm(int bpm)
Definition: tempo.h:23
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
CATempo::_bpm
int _bpm
Definition: tempo.h:29
mark.h
CATempo::beat
CAPlayableLength beat()
Definition: tempo.h:24