Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
tempo.h
Go to the documentation of this file.
1 
8 #ifndef TEMPO_H_
9 #define TEMPO_H_
10 
11 #include "core/mark.h"
12 #include "core/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  inline int beatDotted() { return _beatDotted; }
27  inline void setBeatDotted( int dotted ) { _beatDotted = dotted; }
28 
29 private:
32  int _bpm; // beats per minute
33 };
34 
35 #endif /* TEMPO_H_ */
Tempo mark.
Definition: tempo.h:14
void setBpm(int bpm)
Definition: tempo.h:23
virtual ~CATempo()
Definition: tempo.cpp:24
Marks that depend on other music elements.
Definition: mark.h:15
int beatDotted()
Definition: tempo.h:26
int compare(CAMusElement *elt)
Definition: tempo.cpp:31
void setBeat(CAPlayableLength l)
Definition: tempo.h:25
int bpm()
Definition: tempo.h:22
int _bpm
Definition: tempo.h:32
Musical length of notes and rests.
Definition: playablelength.h:16
int _beatDotted
Definition: tempo.h:31
CATempo * clone(CAMusElement *elt=0)
Definition: tempo.cpp:27
An abstract class which represents every music element in the score.
Definition: muselement.h:20
CAPlayableLength beat()
Definition: tempo.h:24
void setBeatDotted(int dotted)
Definition: tempo.h:27
CAPlayableLength _beat
Definition: tempo.h:30
CATempo(CAPlayableLength l, int bpm, CAMusElement *m)
Definition: tempo.cpp:18