|
Canorus
0.7
|
00001 00008 #ifndef TEMPO_H_ 00009 #define TEMPO_H_ 00010 00011 #include "core/mark.h" 00012 #include "core/playable.h" 00013 00014 class CATempo : public CAMark { 00015 public: 00016 CATempo( CAPlayableLength l, int bpm, CAMusElement *m ); 00017 virtual ~CATempo(); 00018 00019 CATempo *clone(CAMusElement* elt=0); 00020 int compare( CAMusElement *elt ); 00021 00022 inline int bpm() { return _bpm; } 00023 inline void setBpm( int bpm ) { _bpm = bpm; } 00024 inline CAPlayableLength beat() { return _beat; } 00025 inline void setBeat( CAPlayableLength l ) { _beat = l; } 00026 inline int beatDotted() { return _beatDotted; } 00027 inline void setBeatDotted( int dotted ) { _beatDotted = dotted; } 00028 00029 private: 00030 CAPlayableLength _beat; 00031 int _beatDotted; 00032 int _bpm; // beats per minute 00033 }; 00034 00035 #endif /* TEMPO_H_ */
1.8.0