Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static final int C = 2441;
- static final int D = 2741;
- static final int E = 3048;
- static final int F = 3255;
- static final int G = 3654;
- static final int A = 4058;
- static final int B = 4562;
- static final int C2 = 4882;
- static final int[25] song = {E, E, E, E, E, E, E, G, C, D, E, F, F, F, F, F, E, E, E, E, D, D, E, D, G};
- static final int[25] length = {1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2};
- /* IN THE CODE */
- for(int n = 0; n<25; n++){
- Sound.playTone(0, song[n], length[n] * 1000);
- Delay.msDelay(200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement