forked from Press-Play-On-Tape/LayingPipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSounds.ino
55 lines (36 loc) · 1.12 KB
/
Sounds.ino
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
50
51
52
53
54
const uint16_t puzzleSolved[] PROGMEM = {
NOTE_C4,50, NOTE_D4,50, NOTE_E4,50,
NOTE_C4,50, NOTE_D4,50, NOTE_E4,50,
NOTE_C4,50, NOTE_D4,50, NOTE_E4,50,
TONES_END
};
/* ----------------------------------------------------------------------------
* Play the 'Clear Selection' tune.
*/
void playClearSelectionTune() {
sound.tone(NOTE_C2,50, NOTE_D2,50, NOTE_E2,50);
}
/* ----------------------------------------------------------------------------
* Play the 'Select Node' tune.
*/
void playSelectNodeTune() {
sound.tone(NOTE_C4, 50);
}
/* ----------------------------------------------------------------------------
* Play the 'Match Node' tune.
*/
void playMatchNodeTune() {
sound.tone(NOTE_C4,50, NOTE_D4,50, NOTE_E4,50);
}
/* ----------------------------------------------------------------------------
* Play the 'Splash' tune.
*/
void playSplashTune() {
sound.tone(NOTE_C1,50, NOTE_D1,50, NOTE_C1,50);
}
/* ----------------------------------------------------------------------------
* Play the 'Puzzle Solved' tune.
*/
void playPuzzleSolved() {
sound.tones(puzzleSolved);
}