COSA
An Object-Oriented Platform for Arduino Programming
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Note.hh
Go to the documentation of this file.
1
21
#ifndef COSA_NOTE_HH
22
#define COSA_NOTE_HH
23
24
#include <math.h>
25
38
class
Note
{
39
public
:
40
enum
{
41
END
= 0,
42
PAUSE
= 1,
43
44
C0
= 16,
45
Cis0
= 17,
46
Des0
= 17,
47
D0
= 18,
48
Dis0
= 19,
49
Es0
= 19,
50
E0
= 21,
51
F0
= 22,
52
Fis0
= 23,
53
Ges0
= 23,
54
G0
= 25,
55
Gis0
= 26,
56
As0
= 26,
57
A0
= 28,
58
Ais0
= 29,
59
Bes0
= 29,
60
B0
= 31,
61
62
C1
= 33,
63
Cis1
= 35,
64
Des1
= 35,
65
D1
= 37,
66
Dis1
= 39,
67
Es1
= 39,
68
E1
= 41,
69
F1
= 44,
70
Fis1
= 46,
71
Ges1
= 46,
72
G1
= 49,
73
Gis1
= 52,
74
As1
= 52,
75
A1
= 55,
76
Ais1
= 58,
77
Bes1
= 58,
78
B1
= 62,
79
80
C2
= 65,
81
Cis2
= 69,
82
Des2
= 69,
83
D2
= 73,
84
Dis2
= 78,
85
Es2
= 78,
86
E2
= 82,
87
F2
= 87,
88
Fis2
= 93,
89
Ges2
= 93,
90
G2
= 98,
91
Gis2
= 104,
92
As2
= 104,
93
A2
= 110,
94
Ais2
= 117,
95
Bes2
= 117,
96
B2
= 123,
97
98
C3
= 131,
99
Cis3
= 139,
100
Des3
= 139,
101
D3
= 147,
102
Dis3
= 156,
103
Es3
= 156,
104
E3
= 165,
105
F3
= 175,
106
Fis3
= 185,
107
Ges3
= 185,
108
G3
= 196,
109
Gis3
= 208,
110
As3
= 208,
111
A3
= 220,
112
Ais3
= 233,
113
Bes3
= 233,
114
B3
= 247,
115
116
C4
= 262,
117
Cis4
= 277,
118
Des4
= 277,
119
D4
= 294,
120
Dis4
= 311,
121
Es4
= 311,
122
E4
= 330,
123
F4
= 349,
124
Fis4
= 370,
125
Ges4
= 370,
126
G4
= 392,
127
Gis4
= 415,
128
As4
= 415,
129
A4
= 440,
130
Ais4
= 466,
131
Bes4
= 466,
132
B4
= 494,
133
134
C5
= 523,
135
Cis5
= 554,
136
Des5
= 554,
137
D5
= 587,
138
Dis5
= 622,
139
Es5
= 622,
140
E5
= 659,
141
F5
= 698,
142
Fis5
= 740,
143
Ges5
= 740,
144
G5
= 784,
145
Gis5
= 831,
146
As5
= 831,
147
A5
= 880,
148
Ais5
= 932,
149
Bes5
= 932,
150
B5
= 988,
151
152
C6
= 1047,
153
Cis6
= 1109,
154
Des6
= 1109,
155
D6
= 1175,
156
Dis6
= 1245,
157
Es6
= 1245,
158
E6
= 1319,
159
F6
= 1397,
160
Fis6
= 1480,
161
Ges6
= 1480,
162
G6
= 1568,
163
Gis6
= 1661,
164
As6
= 1661,
165
A6
= 1760,
166
Ais6
= 1865,
167
Bes6
= 1865,
168
B6
= 1976,
169
170
C7
= 2093,
171
Cis7
= 2217,
172
Des7
= 2217,
173
D7
= 2349,
174
Dis7
= 2489,
175
Es7
= 2489,
176
E7
= 2637,
177
F7
= 2794,
178
Fis7
= 2960,
179
Ges7
= 2960,
180
G7
= 3136,
181
Gis7
= 3322,
182
As7
= 3322,
183
A7
= 3520,
184
Ais7
= 3729,
185
Bes7
= 3729,
186
B7
= 3951,
187
188
C8
= 4186,
189
Cis8
= 4435,
190
Des8
= 4435,
191
D8
= 4699,
192
Dis8
= 4978,
193
Es8
= 4978,
194
E8
= 5274,
195
F8
= 5588,
196
Fis8
= 5920,
197
Ges8
= 5920,
198
G8
= 6272,
199
Gis8
= 6645,
200
As8
= 6645,
201
A8
= 7040,
202
Ais8
= 7459,
203
Bes8
= 7459,
204
B8
= 7902
205
};
206
212
static
uint16_t
MIDI
(uint8_t n)
213
{
214
return
(round(440.0 * (pow(2.0, (n - 69.0) / 12))));
215
}
216
};
217
#endif
218
Note::F3
Definition:
Note.hh:105
Note::F4
Definition:
Note.hh:123
Note::Bes0
Definition:
Note.hh:59
Note::D6
Definition:
Note.hh:155
Note::B2
Definition:
Note.hh:96
Note::B7
Definition:
Note.hh:186
Note::G2
Definition:
Note.hh:90
Note::Cis0
Definition:
Note.hh:45
Note::Dis0
Definition:
Note.hh:48
Note::F7
Definition:
Note.hh:177
Note::A7
Definition:
Note.hh:183
Note::Es8
Definition:
Note.hh:193
Note::Es5
Definition:
Note.hh:139
Note::Dis2
Definition:
Note.hh:84
Note::B1
Definition:
Note.hh:78
Note::C6
Definition:
Note.hh:152
Note::Des6
Definition:
Note.hh:154
Note::E5
Definition:
Note.hh:140
Note::G5
Definition:
Note.hh:144
Note::C0
Definition:
Note.hh:44
Note::Des8
Definition:
Note.hh:190
Note::Bes5
Definition:
Note.hh:149
Note
Definition:
Note.hh:38
Note::E3
Definition:
Note.hh:104
Note::C4
Definition:
Note.hh:116
Note::Gis1
Definition:
Note.hh:73
Note::B0
Definition:
Note.hh:60
Note::G0
Definition:
Note.hh:54
Note::A5
Definition:
Note.hh:147
Note::Gis8
Definition:
Note.hh:199
Note::Fis0
Definition:
Note.hh:52
Note::Ais1
Definition:
Note.hh:76
Note::Ges8
Definition:
Note.hh:197
Note::Dis1
Definition:
Note.hh:66
Note::As0
Definition:
Note.hh:56
Note::Cis6
Definition:
Note.hh:153
Note::Bes1
Definition:
Note.hh:77
Note::F2
Definition:
Note.hh:87
Note::B8
Definition:
Note.hh:204
Note::Des3
Definition:
Note.hh:100
Note::C3
Definition:
Note.hh:98
Note::Des5
Definition:
Note.hh:136
Note::A0
Definition:
Note.hh:57
Note::Des4
Definition:
Note.hh:118
Note::Cis5
Definition:
Note.hh:135
Note::Dis6
Definition:
Note.hh:156
Note::G3
Definition:
Note.hh:108
Note::E6
Definition:
Note.hh:158
Note::C1
Definition:
Note.hh:62
Note::Es1
Definition:
Note.hh:67
Note::Dis8
Definition:
Note.hh:192
Note::Ges3
Definition:
Note.hh:107
Note::Bes7
Definition:
Note.hh:185
Note::Es2
Definition:
Note.hh:85
Note::Ais2
Definition:
Note.hh:94
Note::B6
Definition:
Note.hh:168
Note::Fis6
Definition:
Note.hh:160
Note::B5
Definition:
Note.hh:150
Note::As4
Definition:
Note.hh:128
Note::Dis5
Definition:
Note.hh:138
Note::A1
Definition:
Note.hh:75
Note::Cis1
Definition:
Note.hh:63
Note::As1
Definition:
Note.hh:74
Note::Dis4
Definition:
Note.hh:120
Note::Cis8
Definition:
Note.hh:189
Note::A3
Definition:
Note.hh:111
Note::Ges7
Definition:
Note.hh:179
Note::D8
Definition:
Note.hh:191
Note::Ges1
Definition:
Note.hh:71
Note::Gis2
Definition:
Note.hh:91
Note::Ges4
Definition:
Note.hh:125
Note::D2
Definition:
Note.hh:83
Note::Fis2
Definition:
Note.hh:88
Note::C2
Definition:
Note.hh:80
Note::Es0
Definition:
Note.hh:49
Note::Ges6
Definition:
Note.hh:161
Note::Fis1
Definition:
Note.hh:70
Note::Fis5
Definition:
Note.hh:142
Note::E0
Definition:
Note.hh:50
Note::Des0
Definition:
Note.hh:46
Note::Bes4
Definition:
Note.hh:131
Note::Ges5
Definition:
Note.hh:143
Note::Gis4
Definition:
Note.hh:127
Note::END
Definition:
Note.hh:41
Note::MIDI
static uint16_t MIDI(uint8_t n)
Definition:
Note.hh:212
Note::C7
Definition:
Note.hh:170
Note::G1
Definition:
Note.hh:72
Note::B4
Definition:
Note.hh:132
Note::Gis0
Definition:
Note.hh:55
Note::F1
Definition:
Note.hh:69
Note::Bes3
Definition:
Note.hh:113
Note::Bes6
Definition:
Note.hh:167
Note::Es7
Definition:
Note.hh:175
Note::D3
Definition:
Note.hh:101
Note::E4
Definition:
Note.hh:122
Note::Gis5
Definition:
Note.hh:145
Note::D4
Definition:
Note.hh:119
Note::D7
Definition:
Note.hh:173
Note::Gis3
Definition:
Note.hh:109
Note::Es6
Definition:
Note.hh:157
Note::Gis6
Definition:
Note.hh:163
Note::Gis7
Definition:
Note.hh:181
Note::Cis4
Definition:
Note.hh:117
Note::Ais4
Definition:
Note.hh:130
Note::Ais0
Definition:
Note.hh:58
Note::Ais5
Definition:
Note.hh:148
Note::Es4
Definition:
Note.hh:121
Note::As5
Definition:
Note.hh:146
Note::Des1
Definition:
Note.hh:64
Note::E8
Definition:
Note.hh:194
Note::D1
Definition:
Note.hh:65
Note::Fis7
Definition:
Note.hh:178
Note::As3
Definition:
Note.hh:110
Note::Bes8
Definition:
Note.hh:203
Note::Des7
Definition:
Note.hh:172
Note::E7
Definition:
Note.hh:176
Note::PAUSE
Definition:
Note.hh:42
Note::F6
Definition:
Note.hh:159
Note::Ges0
Definition:
Note.hh:53
Note::Ges2
Definition:
Note.hh:89
Note::As8
Definition:
Note.hh:200
Note::D0
Definition:
Note.hh:47
Note::A6
Definition:
Note.hh:165
Note::Fis3
Definition:
Note.hh:106
Note::Fis4
Definition:
Note.hh:124
Note::G6
Definition:
Note.hh:162
Note::A2
Definition:
Note.hh:93
Note::Ais3
Definition:
Note.hh:112
Note::Ais8
Definition:
Note.hh:202
Note::C5
Definition:
Note.hh:134
Note::E1
Definition:
Note.hh:68
Note::G7
Definition:
Note.hh:180
Note::As7
Definition:
Note.hh:182
Note::Bes2
Definition:
Note.hh:95
Note::G8
Definition:
Note.hh:198
Note::Es3
Definition:
Note.hh:103
Note::C8
Definition:
Note.hh:188
Note::F5
Definition:
Note.hh:141
Note::Cis7
Definition:
Note.hh:171
Note::Cis3
Definition:
Note.hh:99
Note::As6
Definition:
Note.hh:164
Note::A8
Definition:
Note.hh:201
Note::As2
Definition:
Note.hh:92
Note::E2
Definition:
Note.hh:86
Note::Ais7
Definition:
Note.hh:184
Note::G4
Definition:
Note.hh:126
Note::A4
Definition:
Note.hh:129
Note::Dis7
Definition:
Note.hh:174
Note::Cis2
Definition:
Note.hh:81
Note::D5
Definition:
Note.hh:137
Note::Dis3
Definition:
Note.hh:102
Note::Fis8
Definition:
Note.hh:196
Note::F0
Definition:
Note.hh:51
Note::Ais6
Definition:
Note.hh:166
Note::B3
Definition:
Note.hh:114
Note::F8
Definition:
Note.hh:195
Note::Des2
Definition:
Note.hh:82
cores
cosa
Cosa
Note.hh
Generated on Thu Aug 31 2017 17:02:02 for COSA by
1.8.11