-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeSignature.cpp
More file actions
47 lines (37 loc) · 1.04 KB
/
Copy pathTimeSignature.cpp
File metadata and controls
47 lines (37 loc) · 1.04 KB
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
#include "TimeSignature.h"
TimeSignature::TimeSignature(uint8_t* numer, uint8_t* denom, uint8_t* metro, uint8_t* thirtySecondsNotes) {
this->numer = new uint8_t(*numer);
this->denom = new uint8_t(*denom);
this->metro = new uint8_t(*metro);
this->thirtySecondsNotes = new uint8_t(*thirtySecondsNotes);
}
TimeSignature::TimeSignature() {
this->numer = new uint8_t;
this->denom = new uint8_t;
this->metro = new uint8_t;
this->thirtySecondsNotes = new uint8_t;
}
uint8_t* TimeSignature::getNumer() {
return numer;
}
uint8_t* TimeSignature::getDenom() {
return denom;
}
uint8_t* TimeSignature::getMetro() {
return metro;
}
uint8_t* TimeSignature::getThirtySecondsNotes() {
return thirtySecondsNotes;
}
void TimeSignature::setNumer(uint8_t* newNumer) {
*numer = *newNumer;
}
void TimeSignature::setDenom(uint8_t* newDenom) {
*denom = *newDenom;
}
void TimeSignature::setMetro(uint8_t* newMetro) {
*metro = *newMetro;
}
void TimeSignature::setThirtySecondsNotes(uint8_t* newThirtySecondsNotes) {
*thirtySecondsNotes = *newThirtySecondsNotes;
}