Nibbles and Bits
The Care and Feeding of My Pet Arduino


by Budd Churchward - WB7FHC - NIBBLES AND BITS LIBRARY

'My Dog Has Fleas' - A Binary Music Machine
« 1 2 3 4 5 6 7 8 9 10  11  12 »

Section 11 - A Sample Tune and Short Video
The codes on the right are a short little tune that you might recognize. I have it listed in both decimal and binary numbers to help you with the buttons.

This one uses the natural scale so make sure you have uploaded a version of your code that has the call to the pentatonic scale REM'ed out with // marks.

5    0101
3    0011
5    0101

5    0101
3    0011
5    0101

6    0110
5    0101
4    0100
3    0011

2    0010
3    0011
4    0100

3    0011
4    0100
5    0101
1    0001
1    0001
1    0001
1    0001

1    0001
2    0010
3    0011
4    0100
5    0101

5    0101
2    0010
2    0010

4    0100
3    0011
2    0010
1    0001


Switch the // marks and use the pentatonic scale for this tune.

In the final section you will find the complete sketch, fully commented, that you can copy and paste into your own project.

Next Section »

6    0110
6    0110
7    0111
8    1000
7    0111
6    0110
5    0101

6    0110
6    0110
7    0111
8    1000
7    0111
6    0110
5    0101

6    0110
6    0110
7    0111
8    1000
8    1000
9    1001
10   1010

10   1010
9    1001
10   1010
9    1001
8    1000
7    0111

9    1001
9    1001
8    1000
10   1010

9    1001
9    1001
10   1010
9    1001
8    1000
7    0111
6    0110
8    1000