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
crescendo.h
Go to the documentation of this file.
1
8
#ifndef CRESCENDO_H_
9
#define CRESCENDO_H_
10
11
#include "
core/mark.h
"
12
13
class
CANote
;
14
15
class
CACrescendo
:
public
CAMark
{
16
public
:
17
enum
CACrescendoType
{
18
Crescendo
,
19
Decrescendo
20
};
21
22
CACrescendo
(
int
finalVolume
,
CANote
*note,
CACrescendoType
t=
Crescendo
,
int
timeStart
=-1,
int
timeLength
=-1 );
23
virtual
~CACrescendo
();
24
25
CACrescendo
*
clone
(
CAMusElement
* elt=0);
26
int
compare
(
CAMusElement
* );
27
28
inline
const
int
finalVolume
() {
return
_finalVolume
; }
29
inline
void
setFinalVolume
(
const
int
v ) {
_finalVolume
= v; }
30
inline
const
CACrescendoType
crescendoType
() {
return
_crescendoType
; }
31
inline
void
setCrescendoType
(
CACrescendoType
t ) {
_crescendoType
= t; }
32
33
static
const
QString
crescendoTypeToString
(
CACrescendoType
t );
34
static
CACrescendoType
crescendoTypeFromString
(
const
QString r );
35
36
private
:
37
int
_finalVolume
;
// volume percantage - from 0% to 100%
38
CACrescendoType
_crescendoType
;
39
};
40
41
#endif
/* CRESCENDO_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3