Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ievan(){
- BPM=120;
- Q=60000/BPM;
- W=4*Q;
- H=2*Q;
- E=Q/2;
- S=Q/4;
- //1
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, E3,E);
- delay(E+15);
- //2
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, E3,E);
- delay(E+15);
- //3
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, E3,E);
- delay(E+15);
- //4
- tone(11, Gb3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, Db3,E);
- delay(E+15);
- tone(11, LA4,S);
- delay(E+15);
- tone(11, LA4,S);
- delay(S+15);
- delay(Q+E);
- tone(11, Gb4,E);
- delay(E+15);
- //5
- tone(11, Db4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //6
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Gb4,S);
- delay(S+15);
- //7
- tone(11, Db4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //8
- tone(11, Db5,S);
- delay(S+15);
- tone(11, Db5,S);
- delay(S+15);
- tone(11, Db5,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //9
- tone(11, Db5,E);
- delay(E+15);
- tone(11, Db5,E);
- delay(E+15);
- tone(11, B4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,S);
- delay(S+15);
- //10
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //11
- tone(11, Db5,E);
- delay(E+15);
- tone(11, Db5,E);
- delay(E+15);
- tone(11, B4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,S);
- delay(S+15);
- //12
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- delay(Q+S);
- tone(11, Gb4,S);
- delay(S+15);
- //13
- tone(11, C4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //14
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Gb4,S);
- delay(S+15);
- //15
- tone(11, C4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,E+S);
- delay(E+15+S);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //16
- tone(11, Db5,S);
- delay(S+15);
- tone(11, Db5,S);
- delay(S+15);
- tone(11, Db5,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, Ab4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //17
- tone(11, Db5,E);
- delay(E+15);
- tone(11, Db5,E);
- delay(E+15);
- tone(11, B4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,S);
- delay(S+15);
- //18
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, LA4,S);
- delay(S+15);
- //19
- tone(11, Db5,E);
- delay(E+15);
- tone(11, Db4,E);
- delay(E+15);
- tone(11, B4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,E);
- delay(E+15);
- tone(11, E4,S);
- delay(S+15);
- tone(11, E4,S);
- delay(S+15);
- //20
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, B4,S);
- delay(S+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Ab4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, LA4,E);
- delay(E+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,S);
- delay(S+15);
- tone(11, Gb4,E);
- delay(E+15);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement