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
14class CATempo : public CAMark {
15public:
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
27private:
29 int _bpm; // beats per minute
30};
31
32#endif /* TEMPO_H_ */
Marks that depend on other music elements.
Definition: mark.h:15
An abstract class which represents every music element in the score.
Definition: muselement.h:21
Musical length of notes and rests.
Definition: playablelength.h:16
Tempo mark.
Definition: tempo.h:14
int compare(CAMusElement *elt)
Definition: tempo.cpp:31
CAPlayableLength _beat
Definition: tempo.h:28
void setBpm(int bpm)
Definition: tempo.h:23
CAPlayableLength beat()
Definition: tempo.h:24
virtual ~CATempo()
Definition: tempo.cpp:24
int bpm()
Definition: tempo.h:22
int _bpm
Definition: tempo.h:29
CATempo * clone(CAMusElement *elt=0)
Definition: tempo.cpp:27
void setBeat(CAPlayableLength l)
Definition: tempo.h:25
CATempo(CAPlayableLength l, int bpm, CAMusElement *m)
Definition: tempo.cpp:18