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_ */