Advertisement
Guest User

ievan polkka

a guest
Jul 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 KB | None | 0 0
  1. void ievan(){
  2. BPM=120;
  3. Q=60000/BPM;
  4. W=4*Q;
  5. H=2*Q;
  6. E=Q/2;
  7. S=Q/4;
  8. //1
  9. tone(11, Gb3,E);
  10. delay(E+15);
  11. tone(11, LA4,S);
  12. delay(E+15);
  13. tone(11, Db3,E);
  14. delay(E+15);
  15. tone(11, LA4,S);
  16. delay(E+15);
  17. tone(11, Gb3,E);
  18. delay(E+15);
  19. tone(11, LA4,S);
  20. delay(E+15);
  21. tone(11, Db3,E);
  22. delay(E+15);
  23. tone(11, E3,E);
  24. delay(E+15);
  25. //2
  26. tone(11, Gb3,E);
  27. delay(E+15);
  28. tone(11, LA4,S);
  29. delay(E+15);
  30. tone(11, Db3,E);
  31. delay(E+15);
  32. tone(11, LA4,S);
  33. delay(E+15);
  34. tone(11, Gb3,E);
  35. delay(E+15);
  36. tone(11, LA4,S);
  37. delay(E+15);
  38. tone(11, Db3,E);
  39. delay(E+15);
  40. tone(11, E3,E);
  41. delay(E+15);
  42. //3
  43. tone(11, Gb3,E);
  44. delay(E+15);
  45. tone(11, LA4,S);
  46. delay(E+15);
  47. tone(11, Db3,E);
  48. delay(E+15);
  49. tone(11, LA4,S);
  50. delay(E+15);
  51. tone(11, Gb3,E);
  52. delay(E+15);
  53. tone(11, LA4,S);
  54. delay(E+15);
  55. tone(11, Db3,E);
  56. delay(E+15);
  57. tone(11, E3,E);
  58. delay(E+15);
  59. //4
  60. tone(11, Gb3,E);
  61. delay(E+15);
  62. tone(11, LA4,S);
  63. delay(E+15);
  64. tone(11, Db3,E);
  65. delay(E+15);
  66. tone(11, LA4,S);
  67. delay(E+15);
  68. tone(11, LA4,S);
  69. delay(S+15);
  70. delay(Q+E);
  71. tone(11, Gb4,E);
  72. delay(E+15);
  73. //5
  74. tone(11, Db4,E);
  75. delay(E+15);
  76. tone(11, Gb4,E);
  77. delay(E+15);
  78. tone(11, Gb4,E+S);
  79. delay(E+15+S);
  80. tone(11, Ab4,S);
  81. delay(S+15);
  82. tone(11, LA4,S);
  83. delay(S+15);
  84. tone(11, LA4,S);
  85. delay(S+15);
  86. tone(11, Gb4,E);
  87. delay(E+15);
  88. tone(11, Gb4,E);
  89. delay(E+15);
  90. tone(11, Gb4,S);
  91. delay(S+15);
  92. tone(11, LA4,S);
  93. delay(S+15);
  94. //6
  95. tone(11, Ab4,E);
  96. delay(E+15);
  97. tone(11, E4,E);
  98. delay(E+15);
  99. tone(11, E4,E);
  100. delay(E+15);
  101. tone(11, E4,E);
  102. delay(E+15);
  103. tone(11, Ab4,S);
  104. delay(S+15);
  105. tone(11, Ab4,S);
  106. delay(S+15);
  107. tone(11, Gb4,E);
  108. delay(E+15);
  109. tone(11, Gb4,E+S);
  110. delay(E+15+S);
  111. tone(11, Gb4,S);
  112. delay(S+15);
  113. //7
  114. tone(11, Db4,E);
  115. delay(E+15);
  116. tone(11, Gb4,E);
  117. delay(E+15);
  118. tone(11, Gb4,E+S);
  119. delay(E+15+S);
  120. tone(11, Ab4,S);
  121. delay(S+15);
  122. tone(11, LA4,S);
  123. delay(S+15);
  124. tone(11, LA4,S);
  125. delay(S+15);
  126. tone(11, Gb4,E);
  127. delay(E+15);
  128. tone(11, Gb4,E);
  129. delay(E+15);
  130. tone(11, Gb4,S);
  131. delay(S+15);
  132. tone(11, LA4,S);
  133. delay(S+15);
  134. //8
  135. tone(11, Db5,S);
  136. delay(S+15);
  137. tone(11, Db5,S);
  138. delay(S+15);
  139. tone(11, Db5,S);
  140. delay(S+15);
  141. tone(11, B4,S);
  142. delay(S+15);
  143. tone(11, LA4,S);
  144. delay(S+15);
  145. tone(11, LA4,S);
  146. delay(S+15);
  147. tone(11, Ab4,S);
  148. delay(S+15);
  149. tone(11, Ab4,S);
  150. delay(S+15);
  151. tone(11, LA4,E);
  152. delay(E+15);
  153. tone(11, Gb4,S);
  154. delay(S+15);
  155. tone(11, Gb4,S);
  156. delay(S+15);
  157. tone(11, Gb4,E);
  158. delay(E+15);
  159. tone(11, Gb4,S);
  160. delay(S+15);
  161. tone(11, LA4,S);
  162. delay(S+15);
  163. //9
  164. tone(11, Db5,E);
  165. delay(E+15);
  166. tone(11, Db5,E);
  167. delay(E+15);
  168. tone(11, B4,E);
  169. delay(E+15);
  170. tone(11, LA4,E);
  171. delay(E+15);
  172. tone(11, Ab4,E);
  173. delay(E+15);
  174. tone(11, E4,E);
  175. delay(E+15);
  176. tone(11, E4,E);
  177. delay(E+15);
  178. tone(11, E4,S);
  179. delay(S+15);
  180. tone(11, E4,S);
  181. delay(S+15);
  182. //10
  183. tone(11, B4,S);
  184. delay(S+15);
  185. tone(11, B4,S);
  186. delay(S+15);
  187. tone(11, B4,S);
  188. delay(S+15);
  189. tone(11, B4,S);
  190. delay(S+15);
  191. tone(11, LA4,E);
  192. delay(E+15);
  193. tone(11, Ab4,E);
  194. delay(E+15);
  195. tone(11, LA4,E);
  196. delay(E+15);
  197. tone(11, Gb4,S);
  198. delay(S+15);
  199. tone(11, Gb4,S);
  200. delay(S+15);
  201. tone(11, Gb4,E);
  202. delay(E+15);
  203. tone(11, Gb4,S);
  204. delay(S+15);
  205. tone(11, LA4,S);
  206. delay(S+15);
  207. //11
  208. tone(11, Db5,E);
  209. delay(E+15);
  210. tone(11, Db5,E);
  211. delay(E+15);
  212. tone(11, B4,E);
  213. delay(E+15);
  214. tone(11, LA4,E);
  215. delay(E+15);
  216. tone(11, Ab4,E);
  217. delay(E+15);
  218. tone(11, E4,E);
  219. delay(E+15);
  220. tone(11, E4,E);
  221. delay(E+15);
  222. tone(11, E4,S);
  223. delay(S+15);
  224. tone(11, E4,S);
  225. delay(S+15);
  226. //12
  227. tone(11, B4,S);
  228. delay(S+15);
  229. tone(11, B4,S);
  230. delay(S+15);
  231. tone(11, B4,S);
  232. delay(S+15);
  233. tone(11, B4,S);
  234. delay(S+15);
  235. tone(11, LA4,E);
  236. delay(E+15);
  237. tone(11, Ab4,E);
  238. delay(E+15);
  239. tone(11, Gb4,E);
  240. delay(E+15);
  241. delay(Q+S);
  242. tone(11, Gb4,S);
  243. delay(S+15);
  244. //13
  245. tone(11, C4,E);
  246. delay(E+15);
  247. tone(11, Gb4,E);
  248. delay(E+15);
  249. tone(11, Gb4,E+S);
  250. delay(E+15+S);
  251. tone(11, Ab4,S);
  252. delay(S+15);
  253. tone(11, LA4,S);
  254. delay(S+15);
  255. tone(11, LA4,S);
  256. delay(S+15);
  257. tone(11, Gb4,E);
  258. delay(E+15);
  259. tone(11, Gb4,S);
  260. delay(S+15);
  261. tone(11, LA4,S);
  262. delay(S+15);
  263. //14
  264. tone(11, Ab4,E);
  265. delay(E+15);
  266. tone(11, E4,E);
  267. delay(E+15);
  268. tone(11, E4,E);
  269. delay(E+15);
  270. tone(11, E4,E);
  271. delay(E+15);
  272. tone(11, Ab4,S);
  273. delay(S+15);
  274. tone(11, Ab4,S);
  275. delay(S+15);
  276. tone(11, Gb4,E);
  277. delay(E+15);
  278. tone(11, Gb4,E+S);
  279. delay(E+15+S);
  280. tone(11, Gb4,S);
  281. delay(S+15);
  282. //15
  283. tone(11, C4,E);
  284. delay(E+15);
  285. tone(11, Gb4,E);
  286. delay(E+15);
  287. tone(11, Gb4,E+S);
  288. delay(E+15+S);
  289. tone(11, Ab4,S);
  290. delay(S+15);
  291. tone(11, LA4,S);
  292. delay(S+15);
  293. tone(11, LA4,S);
  294. delay(S+15);
  295. tone(11, Gb4,E);
  296. delay(E+15);
  297. tone(11, Gb4,S);
  298. delay(S+15);
  299. tone(11, LA4,S);
  300. delay(S+15);
  301. //16
  302. tone(11, Db5,S);
  303. delay(S+15);
  304. tone(11, Db5,S);
  305. delay(S+15);
  306. tone(11, Db5,S);
  307. delay(S+15);
  308. tone(11, B4,S);
  309. delay(S+15);
  310. tone(11, LA4,S);
  311. delay(S+15);
  312. tone(11, LA4,S);
  313. delay(S+15);
  314. tone(11, Ab4,S);
  315. delay(S+15);
  316. tone(11, Ab4,S);
  317. delay(S+15);
  318. tone(11, LA4,E);
  319. delay(E+15);
  320. tone(11, Gb4,S);
  321. delay(S+15);
  322. tone(11, Gb4,S);
  323. delay(S+15);
  324. tone(11, Gb4,E);
  325. delay(E+15);
  326. tone(11, Gb4,S);
  327. delay(S+15);
  328. tone(11, LA4,S);
  329. delay(S+15);
  330. //17
  331. tone(11, Db5,E);
  332. delay(E+15);
  333. tone(11, Db5,E);
  334. delay(E+15);
  335. tone(11, B4,E);
  336. delay(E+15);
  337. tone(11, LA4,E);
  338. delay(E+15);
  339. tone(11, Ab4,E);
  340. delay(E+15);
  341. tone(11, E4,E);
  342. delay(E+15);
  343. tone(11, E4,E);
  344. delay(E+15);
  345. tone(11, E4,S);
  346. delay(S+15);
  347. tone(11, E4,S);
  348. delay(S+15);
  349. //18
  350. tone(11, B4,S);
  351. delay(S+15);
  352. tone(11, B4,S);
  353. delay(S+15);
  354. tone(11, B4,S);
  355. delay(S+15);
  356. tone(11, B4,S);
  357. delay(S+15);
  358. tone(11, LA4,E);
  359. delay(E+15);
  360. tone(11, Gb4,E);
  361. delay(E+15);
  362. tone(11, LA4,E);
  363. delay(E+15);
  364. tone(11, Gb4,S);
  365. delay(S+15);
  366. tone(11, Gb4,S);
  367. delay(S+15);
  368. tone(11, Gb4,E);
  369. delay(E+15);
  370. tone(11, Gb4,S);
  371. delay(S+15);
  372. tone(11, LA4,S);
  373. delay(S+15);
  374. //19
  375. tone(11, Db5,E);
  376. delay(E+15);
  377. tone(11, Db4,E);
  378. delay(E+15);
  379. tone(11, B4,E);
  380. delay(E+15);
  381. tone(11, LA4,E);
  382. delay(E+15);
  383. tone(11, Ab4,E);
  384. delay(E+15);
  385. tone(11, E4,S);
  386. delay(S+15);
  387. tone(11, E4,S);
  388. delay(S+15);
  389. tone(11, E4,E);
  390. delay(E+15);
  391. tone(11, E4,S);
  392. delay(S+15);
  393. tone(11, E4,S);
  394. delay(S+15);
  395. //20
  396. tone(11, B4,S);
  397. delay(S+15);
  398. tone(11, B4,S);
  399. delay(S+15);
  400. tone(11, B4,S);
  401. delay(S+15);
  402. tone(11, B4,S);
  403. delay(S+15);
  404. tone(11, LA4,E);
  405. delay(E+15);
  406. tone(11, Ab4,E);
  407. delay(E+15);
  408. tone(11, LA4,E);
  409. delay(E+15);
  410. tone(11, LA4,E);
  411. delay(E+15);
  412. tone(11, Gb4,S);
  413. delay(S+15);
  414. tone(11, Gb4,S);
  415. delay(S+15);
  416. tone(11, Gb4,E);
  417. delay(E+15);
  418. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement