This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
0 | |
0 | |
1 | |
0 | |
1 | |
0 | |
1 | |
1 | |
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Notes come in byte-pairs. | |
// Even numbers (0th, 2nd, 4th...) are note numbers (based on MIDI notes) | |
// Odd numbers (1st, 3rd, 5th...) are duration. 12 is a quarter note | |
// The music is divided into sections because the Roomba can't store the whole song. | |
// Part 1 is played once. | |
// Part 2 is played twice. | |
// Parts 3 and 4 are played together, twice. | |
// Part 5 is played once. | |
// Part 2 is played twice again. |