repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Agora ele olha pra frente deitado
[Projeto-PCG.git]
/
nota.h
blob
60b5d6fe28ce05da65b4090d99a5c37e95c78313
1
#include <string>
2
3
typedef
char
byte
;
4
5
class
Nota
{
6
private
:
7
enum
acidentes
{
bemol
=-
1
,
normal
=
0
,
sustenido
=
1
};
8
std
::
string diatonica
;
9
int
oitava
;
10
char
nome
;
11
acidentes semitom
;
12
int
indiceDiatonica
();
13
int
midiOitava
();
14
void
setNome
(
char
t
);
15
void
setSemitom
(
char
st
);
16
public
:
17
Nota
(
std
::
string nota
);
18
Nota
(
byte midi
);
19
byte
toMidi
();
20
Nota
*
proximoTom
(
byte dif
);
21
bool
operator
==(
const
Nota
&
n
);
22
};