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]
/
acorde.h
blob
750b1af2418d0a8bcdf898a63e4cb7d6528eda4f
1
#include <string>
2
#include <vector>
3
#include <regex.h>
4
5
#include
"nota.h"
6
#include
"intervalos.h"
7
8
typedef
char
byte
;
9
10
class
Acorde
{
11
private
:
12
std
::
string cifra
;
13
regmatch_t parser
[
3
];
14
byte numNotas
;
15
Nota
*
raiz
;
16
std
::
vector
<
byte
>
acorde
;
17
void
triade
();
18
void
tetrade
();
19
void
diminuta
();
20
void
aumentada
();
21
void
menor
();
22
void
maior
();
23
bool
valida
();
24
public
:
25
Acorde
(
std
::
string c
);
26
Nota
*
getNota
(
byte n
);
27
Nota
**
getNotas
();
28
};