-
Notifications
You must be signed in to change notification settings - Fork 1
/
TGEffectTrill.h
49 lines (37 loc) · 1.15 KB
/
TGEffectTrill.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef TG_EFFECT_TRILL
#define TG_EFFECT_TRILL
#include "TGFactory.h"
#include "TGDuration.h"
class TGEffectTrill {
protected:
int fret;
TGDuration *duration;
public:
TGEffectTrill(TGFactory *factory) {
fret = 0;
duration = factory->newDuration();
}
int getFret() {
return fret;
}
void setFret(int aFret) {
fret = aFret;
}
TGDuration *getDuration() {
return duration;
}
void setDuration(TGDuration *aDuration) {
duration = aDuration;
}
TGEffectTrill* clone(TGFactory *factory){
TGEffectTrill *effect = factory->newEffectTrill();
effect->setFret(getFret());
effect->getDuration()->setValue(getDuration()->getValue());
effect->getDuration()->setDotted(getDuration()->isDotted());
effect->getDuration()->setDoubleDotted(getDuration()->isDoubleDotted());
effect->getDuration()->getTupleto()->setEnters(getDuration()->getTupleto()->getEnters());
effect->getDuration()->getTupleto()->setTimes(getDuration()->getTupleto()->getTimes());
return effect;
}
};
#endif