-
Notifications
You must be signed in to change notification settings - Fork 0
/
Melody.h
49 lines (42 loc) · 1.32 KB
/
Melody.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
/**
* Melody.h - Holds the theme song
*/
#define NOTE_C4 262
#define NOTE_D4 294
#define NOTE_E4 330
#define NOTE_F4 349
#define NOTE_G4 392
#define NOTE_A4 440
#define NOTE_B4 494
#define NOTE_C5 523
#define NOTE_D5 587
#define NOTE_E5 659
#define NOTE_F5 698
#define REST 0
int melody[] = {
// Zelda's Song of Storms
// Credit to https://github.com/robsoncouto/arduino-songs - i modified their source code to support timers instead of delay
NOTE_D4, 4, NOTE_A4, 4, NOTE_A4, 4,
REST, 8, NOTE_E4, 8, NOTE_B4, 2,
NOTE_F4, 4, NOTE_C5, 4, NOTE_C5, 4,
REST, 8, NOTE_E4, 8, NOTE_B4, 2,
NOTE_D4, 4, NOTE_A4, 4, NOTE_A4, 4,
REST, 8, NOTE_E4, 8, NOTE_B4, 2,
NOTE_F4, 4, NOTE_C5, 4, NOTE_C5, 4,
REST, 8, NOTE_E4, 8, NOTE_B4, 2,
NOTE_D4, 8, NOTE_F4, 8, NOTE_D5, 2,
NOTE_D4, 8, NOTE_F4, 8, NOTE_D5, 2,
NOTE_E5, -4, NOTE_F5, 8, NOTE_E5, 8, NOTE_E5, 8,
NOTE_E5, 8, NOTE_C5, 8, NOTE_A4, 2,
NOTE_A4, 4, NOTE_D4, 4, NOTE_F4, 8, NOTE_G4, 8,
NOTE_A4, -2,
NOTE_A4, 4, NOTE_D4, 4, NOTE_F4, 8, NOTE_G4, 8,
NOTE_E4, -2,
NOTE_D4, 8, NOTE_F4, 8, NOTE_D5, 2,
NOTE_D4, 8, NOTE_F4, 8, NOTE_D5, 2,
NOTE_E5, -4, NOTE_F5, 8, NOTE_E5, 8, NOTE_E5, 8,
NOTE_E5, 8, NOTE_C5, 8, NOTE_A4, 2,
NOTE_A4, 4, NOTE_D4, 4, NOTE_F4, 8, NOTE_G4, 8,
NOTE_A4, 2, NOTE_A4, 4,
NOTE_D4, 1
};