Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
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
:
16
CATempo
(
CAPlayableLength
l,
int
bpm
,
CAMusElement
*m );
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
:
30
CAPlayableLength
_beat
;
31
int
_beatDotted
;
32
int
_bpm
;
// beats per minute
33
};
34
35
#endif
/* TEMPO_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3