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
ritardando.h
Go to the documentation of this file.
1
8
#ifndef RITARDANDO_H_
9
#define RITARDANDO_H_
10
11
#include "
core/mark.h
"
12
13
class
CAPlayable
;
14
15
class
CARitardando
:
public
CAMark
{
16
public
:
17
enum
CARitardandoType
{
18
Ritardando
,
19
Accellerando
20
};
21
22
CARitardando
(
int
finalTempo
,
CAPlayable
*p,
int
timeLength
,
CARitardandoType
t=
Ritardando
);
23
virtual
~CARitardando
();
24
25
CARitardando
*
clone
(
CAMusElement
* elt=0);
26
int
compare
(
CAMusElement
* );
27
28
inline
const
int
finalTempo
() {
return
_finalTempo
; }
29
inline
void
setFinalTempo
(
const
int
t ) {
_finalTempo
= t; }
30
inline
const
CARitardandoType
ritardandoType
() {
return
_ritardandoType
; }
31
inline
void
setRitardandoType
(
CARitardandoType
t ) {
_ritardandoType
= t; }
32
33
static
const
QString
ritardandoTypeToString
(
CARitardandoType
t );
34
static
CARitardandoType
ritardandoTypeFromString
(
const
QString r );
35
36
private
:
37
int
_finalTempo
;
// tempo bpm at the end
38
CARitardandoType
_ritardandoType
;
39
};
40
41
#endif
/* RITARDANDO_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3