Advertisement
Guest User

Doorbell

a guest
Jan 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.01 KB | None | 0 0
  1. int count = 0;
  2. int i1 = 6;
  3. int i2 = 7;
  4. void setup() {
  5. // put your setup code here, to run once:
  6. Serial.begin(9600);
  7. pinMode(6, OUTPUT);
  8. randomSeed(analogRead(7));
  9.  
  10. }
  11.  
  12. void loop() {
  13. int sensorValue = analogRead(A0);
  14. // Serial.println(sensorValue);
  15. if (sensorValue > 1000) {
  16. float k = random(0,100);
  17. Serial.println(k);
  18.  
  19. mortalKombat();
  20. // if(count == 1) {
  21. // GoT2();
  22. // count = 2;
  23. // }
  24. // else if(count == 2) {
  25. // GoT3();
  26. // count = 0;
  27. // }
  28. // else if(k < 9.09) {
  29. // turningTables();
  30. // }
  31. // else if(k < 18.18) {
  32. // theEntertainer();
  33. // }
  34. // else if(k < 27.27) {
  35. // GoT();
  36. // count = 1;
  37. // }
  38. // else if(k < 36.36) {
  39. // chromatic();
  40. // }
  41. // else if(k < 45.45) {
  42. // theGood();
  43. // }
  44. // else if(k < 54.54) {
  45. // Funeral();
  46. // }
  47. // else if(k < 63.63) {
  48. // darude();
  49. // }
  50. // else if(k < 72.72) {
  51. // songOfStorms();
  52. // }
  53. // else if(k < 81.81) {
  54. // imperialMarch();
  55. // }
  56. // else if(k < 90.90) {
  57. // sixFlags();
  58. // }
  59. // else {
  60. // harryPotter();
  61. // }
  62. }
  63. delay(100);
  64.  
  65. }
  66.  
  67. void theEntertainer() {
  68. // put your main code here, to run repeatedly:
  69. tone(6,293.66); //phrase 1 3250ms
  70. delay(250);
  71. tone(6,311.13);
  72. delay(250);
  73. tone(6,329.63);
  74. delay(250);
  75. tone(6,523.25);
  76. delay(500);
  77. tone(6,329.63);
  78. delay(250);
  79. tone(6,523.25);
  80. delay(500);
  81. tone(6,329.63);
  82. delay(250);
  83. tone(6,523.25);
  84. delay(1000);
  85.  
  86. noTone(6); //silence
  87. // delay(250);
  88. //
  89. // tone(pin,587.33); //phrase 2
  90. // delay(250);
  91. // tone(pin,622.25);
  92. // delay(250);
  93. // tone(pin,659.25);
  94. // delay(250);
  95. // tone(pin,523.25);
  96. // delay(250);
  97. // tone(pin,587.33);
  98. // delay(250);
  99. // tone(pin,659.25);
  100. // delay(500);
  101. // tone(pin,493.88);
  102. // delay(250);
  103. // tone(pin,587.33);
  104. // delay(500);
  105. // tone(pin,523.25);
  106. // delay(1000);
  107. //
  108. // notone(pin); //silence
  109. // delay(250);
  110. //
  111. // tone(pin,293.66); //phrase 1
  112. // delay(250);
  113. // tone(pin,311.13);
  114. // delay(250);
  115. // tone(pin,329.63);
  116. // delay(250);
  117. // tone(pin,523.25);
  118. // delay(500);
  119. // tone(pin,329.63);
  120. // delay(250);
  121. // tone(pin,523.25);
  122. // delay(500);
  123. // tone(pin,329.63);
  124. // delay(250);
  125. // tone(pin,523.25);
  126. // delay(1000);
  127. //
  128. // notone(pin); //silence
  129. // delay(250);
  130. //
  131. // tone(pin,440.00); //phrase 3
  132. // delay(250);
  133. // tone(pin,392.00);
  134. // delay(250);
  135. // tone(pin,369.99);
  136. // delay(250);
  137. // tone(pin,440.00);
  138. // delay(250);
  139. // tone(pin,523.25);
  140. // delay(250);
  141. // tone(pin,659.25);
  142. // delay(500);
  143. // tone(pin,587.33);
  144. // delay(250);
  145. // tone(pin,523.25);
  146. // delay(250);
  147. // tone(pin,440.00);
  148. // delay(250);
  149. // tone(pin,587.33);
  150. // delay(1000);
  151. //
  152. // notone(pin); //silence
  153. // delay(250);
  154. //
  155. // tone(pin,293.66); //phrase 1
  156. // delay(250);
  157. // tone(pin,311.13);
  158. // delay(250);
  159. // tone(pin,329.63);
  160. // delay(250);
  161. // tone(pin,523.25);
  162. // delay(500);
  163. // tone(pin,329.63);
  164. // delay(250);
  165. // tone(pin,523.25);
  166. // delay(500);
  167. // tone(pin,329.63);
  168. // delay(250);
  169. // tone(pin,523.25);
  170. // delay(1000);
  171. //
  172. // notone(pin); //silence
  173. // delay(250);
  174. //
  175. // tone(pin,587.33); //phrase 2
  176. // delay(250);
  177. // tone(pin,622.25);
  178. // delay(250);
  179. // tone(pin,659.25);
  180. // delay(250);
  181. // tone(pin,523.25);
  182. // delay(250);
  183. // tone(pin,587.33);
  184. // delay(250);
  185. // tone(pin,659.25);
  186. // delay(500);
  187. //
  188. // tone(pin,587.33); //phrase 2
  189. // delay(250);
  190. // tone(pin,622.25);
  191. // delay(250);
  192. // tone(pin,659.25);
  193. // delay(250);
  194. // tone(pin,523.25);
  195. // delay(250);
  196. // tone(pin,587.33);
  197. // delay(250);
  198. // tone(pin,659.25);
  199. // delay(500);
  200. //
  201. // tone(pin,587.33); //phrase 2
  202. // delay(250);
  203. // tone(pin,622.25);
  204. // delay(250);
  205. // tone(pin,659.25);
  206. // delay(250);
  207. // tone(pin,523.25);
  208. // delay(250);
  209. // tone(pin,587.33);
  210. // delay(250);
  211. // tone(pin,659.25);
  212. // delay(500);
  213. // tone(pin,493.88);
  214. // delay(250);
  215. // tone(pin,587.33);
  216. // delay(500);
  217. // tone(pin,523.25);
  218. // delay(1000);
  219. }
  220.  
  221. void Czero(int pin, int d)
  222. {
  223. tone(pin, 16.35);
  224. delay(d);
  225. }
  226.  
  227. void Dzero(int pin, int d)
  228. {
  229. tone(pin, 18.35);
  230. delay(d);
  231. }
  232.  
  233. void Ezero(int pin, int d)
  234. {
  235. tone(pin, 20.60);
  236. delay(d);
  237. }
  238.  
  239. void Fzero(int pin, int d)
  240. {
  241. tone(pin, 21.83);
  242. delay(d);
  243. }
  244.  
  245. void Gzero(int pin, int d)
  246. {
  247. tone(pin, 24.50);
  248. delay(d);
  249. }
  250.  
  251. void Azero(int pin, int d)
  252. {
  253. tone(pin, 27.50);
  254. delay(d);
  255. }
  256.  
  257. void Bzero(int pin, int d)
  258. {
  259. tone(pin, 30.87);
  260. delay(d);
  261. }
  262.  
  263. void Cone(int pin, int d)
  264. {
  265. tone(pin, 32.70);
  266. delay(d);
  267. }
  268.  
  269. void Csone(int pin, int d)
  270. {
  271. tone(pin, 34.65);
  272. delay(d);
  273. }
  274.  
  275. void Done(int pin, int d)
  276. {
  277. tone(pin, 36.71);
  278. delay(d);
  279. }
  280.  
  281. void Dsone(int pin, int d)
  282. {
  283. tone(pin, 38.89);
  284. delay(d);
  285. }
  286.  
  287. void Eone(int pin, int d)
  288. {
  289. tone(pin, 41.20);
  290. delay(d);
  291. }
  292.  
  293. void Fone(int pin, int d)
  294. {
  295. tone(pin, 43.65);
  296. delay(d);
  297. }
  298.  
  299. void Fsone(int pin, int d)
  300. {
  301. tone(pin, 46.25);
  302. delay(d);
  303. }
  304.  
  305. void Gone(int pin, int d)
  306. {
  307. tone(pin, 49.00);
  308. delay(d);
  309. }
  310.  
  311. void Gsone(int pin, int d)
  312. {
  313. tone(pin, 51.91);
  314. delay(d);
  315. }
  316.  
  317. void Aone(int pin, int d)
  318. {
  319. tone(pin, 55.00);
  320. delay(d);
  321. }
  322.  
  323. void Asone(int pin, int d)
  324. {
  325. tone(pin, 58.27);
  326. delay(d);
  327. }
  328.  
  329. void Bone(int pin, int d)
  330. {
  331. tone(pin, 61.74);
  332. delay(d);
  333. }
  334.  
  335. void Ctwo(int pin, int d)
  336. {
  337. tone(pin, 65.41);
  338. delay(d);
  339. }
  340.  
  341. void Cstwo(int pin, int d)
  342. {
  343. tone(pin, 69.30);
  344. delay(d);
  345. }
  346.  
  347. void Dtwo(int pin, int d)
  348. {
  349. tone(pin, 73.42);
  350. delay(d);
  351. }
  352.  
  353. void Dstwo(int pin, int d)
  354. {
  355. tone(pin, 77.78);
  356. delay(d);
  357. }
  358.  
  359. void Etwo(int pin, int d)
  360. {
  361. tone(pin, 82.41);
  362. delay(d);
  363. }
  364.  
  365. void Ftwo(int pin, int d)
  366. {
  367. tone(pin, 87.31);
  368. delay(d);
  369. }
  370.  
  371. void Fstwo(int pin, int d)
  372. {
  373. tone(pin, 92.50);
  374. delay(d);
  375. }
  376.  
  377. void Gtwo(int pin, int d)
  378. {
  379. tone(pin, 98.00);
  380. delay(d);
  381. }
  382.  
  383. void Gstwo(int pin, int d)
  384. {
  385. tone(pin, 103.83);
  386. delay(d);
  387. }
  388.  
  389. void Atwo(int pin, int d)
  390. {
  391. tone(pin, 110.00);
  392. delay(d);
  393. }
  394.  
  395. void Astwo(int pin, int d)
  396. {
  397. tone(pin, 116.54);
  398. delay(d);
  399. }
  400.  
  401. void Btwo(int pin, int d)
  402. {
  403. tone(pin, 123.47);
  404. delay(d);
  405. }
  406.  
  407. void Cthree(int pin, int d)
  408. {
  409. tone(pin, 130.81);
  410. delay(d);
  411. }
  412.  
  413. void Csthree(int pin, int d)
  414. {
  415. tone(pin, 138.59);
  416. delay(d);
  417. }
  418.  
  419. void Dthree(int pin, int d)
  420. {
  421. tone(pin, 146.83);
  422. delay(d);
  423. }
  424.  
  425. void Dsthree(int pin, int d)
  426. {
  427. tone(pin, 155.56);
  428. delay(d);
  429. }
  430.  
  431. void Ethree(int pin, int d)
  432. {
  433. tone(pin, 164.81);
  434. delay(d);
  435. }
  436.  
  437. void Fthree(int pin, int d)
  438. {
  439. tone(pin, 174.61);
  440. delay(d);
  441. }
  442.  
  443. void Fsthree(int pin, int d)
  444. {
  445. tone(pin, 185.00);
  446. delay(d);
  447. }
  448.  
  449. void Gthree(int pin, int d)
  450. {
  451. tone(pin, 196.00);
  452. delay(d);
  453. }
  454.  
  455. void Gsthree(int pin, int d)
  456. {
  457. tone(pin, 207.65);
  458. delay(d);
  459. }
  460.  
  461. void Athree(int pin, int d)
  462. {
  463. tone(pin, 220.00);
  464. delay(d);
  465. }
  466.  
  467. void Asthree(int pin, int d)
  468. {
  469. tone(pin, 233.08);
  470. delay(d);
  471. }
  472.  
  473. void Bthree(int pin, int d)
  474. {
  475. tone(pin, 246.94);
  476. delay(d);
  477. }
  478.  
  479. void Cfour(int pin, int d)
  480. {
  481. tone(pin, 261.63);
  482. delay(d);
  483. }
  484.  
  485. void Csfour(int pin, int d)
  486. {
  487. tone(pin, 277.18);
  488. delay(d);
  489. }
  490.  
  491. void Dfour(int pin, int d)
  492. {
  493. tone(pin, 293.66);
  494. delay(d);
  495. }
  496.  
  497. void Dsfour(int pin, int d)
  498. {
  499. tone(pin, 311.13);
  500. delay(d);
  501. }
  502.  
  503. void Efour(int pin, int d)
  504. {
  505. tone(pin, 329.63);
  506. delay(d);
  507. }
  508.  
  509. void Ffour(int pin, int d)
  510. {
  511. tone(pin, 349.23);
  512. delay(d);
  513. }
  514.  
  515. void Fsfour(int pin, int d)
  516. {
  517. tone(pin, 369.99);
  518. delay(d);
  519. }
  520.  
  521. void Gfour(int pin, int d)
  522. {
  523. tone(pin, 392.00);
  524. delay(d);
  525. }
  526.  
  527. void Gsfour(int pin, int d)
  528. {
  529. tone(pin, 415.30);
  530. delay(d);
  531. }
  532.  
  533. void Afour(int pin, int d)
  534. {
  535. tone(pin, 440.00);
  536. delay(d);
  537. }
  538.  
  539. void Asfour(int pin, int d)
  540. {
  541. tone(pin, 466.16);
  542. delay(d);
  543. }
  544.  
  545. void Bfour(int pin, int d)
  546. {
  547. tone(pin, 493.88);
  548. delay(d);
  549. }
  550.  
  551. void Cfive(int pin, int d)
  552. {
  553. tone(pin, 523.25);
  554. delay(d);
  555. }
  556.  
  557. void Csfive(int pin, int d)
  558. {
  559. tone(pin, 554.37);
  560. delay(d);
  561. }
  562.  
  563. void Dfive(int pin, int d)
  564. {
  565. tone(pin, 587.33);
  566. delay(d);
  567. }
  568.  
  569. void Dsfive(int pin, int d)
  570. {
  571. tone(pin, 622.25);
  572. delay(d);
  573. }
  574.  
  575. void Efive(int pin, int d)
  576. {
  577. tone(pin, 659.25);
  578. delay(d);
  579. }
  580.  
  581. void Ffive(int pin, int d)
  582. {
  583. tone(pin, 698.46);
  584. delay(d);
  585. }
  586.  
  587. void Fsfive(int pin, int d)
  588. {
  589. tone(pin, 739.99);
  590. delay(d);
  591. }
  592.  
  593. void Gfive(int pin, int d)
  594. {
  595. tone(pin, 783.99);
  596. delay(d);
  597. }
  598.  
  599. void Gsfive(int pin, int d)
  600. {
  601. tone(pin, 830.61);
  602. delay(d);
  603. }
  604.  
  605. void Afive(int pin, int d)
  606. {
  607. tone(pin, 880.00);
  608. delay(d);
  609. }
  610.  
  611. void Asfive(int pin, int d)
  612. {
  613. tone(pin, 932.33);
  614. delay(d);
  615. }
  616.  
  617. void Bfive(int pin, int d)
  618. {
  619. tone(pin, 987.77);
  620. delay(d);
  621. }
  622.  
  623. void Csix(int pin, int d)
  624. {
  625. tone(pin, 1046.50);
  626. delay(d);
  627. }
  628.  
  629. void Cssix(int pin, int d)
  630. {
  631. tone(pin, 1108.73);
  632. delay(d);
  633. }
  634.  
  635. void Dsix(int pin, int d)
  636. {
  637. tone(pin, 1174.66);
  638. delay(d);
  639. }
  640.  
  641. void Dssix(int pin, int d)
  642. {
  643. tone(pin, 1244.51);
  644. delay(d);
  645. }
  646.  
  647. void Esix(int pin, int d)
  648. {
  649. tone(pin, 1318.51);
  650. delay(d);
  651. }
  652.  
  653. void Fsix(int pin, int d)
  654. {
  655. tone(pin, 1396.91);
  656. delay(d);
  657. }
  658.  
  659. void Fssix(int pin, int d)
  660. {
  661. tone(pin, 1479.98);
  662. delay(d);
  663. }
  664.  
  665. void Gsix(int pin, int d)
  666. {
  667. tone(pin, 1567.98);
  668. delay(d);
  669. }
  670.  
  671. void Asix(int pin, int d)
  672. {
  673. tone(pin, 1760.00);
  674. delay(d);
  675. }
  676.  
  677. void Bsix(int pin, int d)
  678. {
  679. tone(pin, 1975.53);
  680. delay(d);
  681. }
  682.  
  683. void Cseven(int pin, int d)
  684. {
  685. tone(pin, 2093.00);
  686. delay(d);
  687. }
  688.  
  689. void Dseven(int pin, int d)
  690. {
  691. tone(pin, 2349.32);
  692. delay(d);
  693. }
  694.  
  695. void Eseven(int pin, int d)
  696. {
  697. tone(pin, 2637.02);
  698. delay(d);
  699. }
  700.  
  701. void Fseven(int pin, int d)
  702. {
  703. tone(pin, 2793.83);
  704. delay(d);
  705. }
  706.  
  707. void Gseven(int pin, int d)
  708. {
  709. tone(pin, 3135.96);
  710. delay(d);
  711. }
  712.  
  713. void Aseven(int pin, int d)
  714. {
  715. tone(pin, 3520.00);
  716. delay(d);
  717. }
  718.  
  719. void Bseven(int pin, int d)
  720. {
  721. tone(pin, 3951.07);
  722. delay(d);
  723. }
  724.  
  725. void Ceight(int pin, int d)
  726. {
  727. tone(pin, 4186.01);
  728. delay(d);
  729. }
  730.  
  731. void s(int pin, int d)
  732. {
  733. noTone(pin);
  734. delay(d);
  735. }
  736.  
  737.  
  738.  
  739.  
  740.  
  741. void mortalKombat1(){
  742. Afour(i1, 75);
  743. Atwo(i1, 75);
  744. Afour(i1, 75);
  745. Atwo(i1, 75);
  746. Cfive(i1, 75);
  747. Atwo(i1, 75);
  748. Afour(i1, 75);
  749. Atwo(i1, 75);
  750.  
  751. Dfive(i1, 75);
  752. Atwo(i1, 75);
  753. Afour(i1, 75);
  754. Atwo(i1, 75);
  755. Efive(i1, 75);
  756. Atwo(i1, 75);
  757. Dfive(i1, 75);
  758. Atwo(i1, 75);
  759.  
  760. Cfive(i1, 75);
  761. Cthree(i1, 75);
  762. Cfive(i1, 75);
  763. Cthree(i1, 75);
  764. Efive(i1, 75);
  765. Cthree(i1, 75);
  766. Cfive(i1, 75);
  767. Cthree(i1, 75);
  768.  
  769. Gfive(i1, 75);
  770. Cthree(i1, 75);
  771. Cfive(i1, 75);
  772. Cthree(i1, 75);
  773. Efive(i1, 75);
  774. Cthree(i1, 75);
  775. Cfive(i1, 75);
  776. Cthree(i1, 75);
  777.  
  778. Gfour(i1, 75);
  779. Gthree(i1, 75);
  780. Gfour(i1, 75);
  781. Gthree(i1, 75);
  782. Bfour(i1, 75);
  783. Gthree(i1, 75);
  784. Gfour(i1, 75);
  785. Gthree(i1, 75);
  786.  
  787. Cfive(i1, 75);
  788. Gthree(i1, 75);
  789. Gfour(i1, 75);
  790. Gthree(i1, 75);
  791. Dfive(i1, 50);
  792. Gthree(i1, 75);
  793. Cfive(i1, 75);
  794. Gthree(i1, 75);
  795.  
  796. Ffour(i1, 75);
  797. Fthree(i1, 75);
  798. Ffour(i1, 75);
  799. Fthree(i1, 75);
  800. Afour(i1, 75);
  801. Fthree(i1, 75);
  802. Ffour(i1, 75);
  803. Fthree(i1, 75);
  804.  
  805. Cfive(i1, 75);
  806. Fthree(i1, 75);
  807. Ffour(i1, 75);
  808. Fthree(i1, 75);
  809. Cfive(i1, 75);
  810. Fthree(i1, 75);
  811. Bfour(i1, 75);
  812. Fthree(i1, 75);
  813.  
  814. noTone(i1);
  815. }
  816.  
  817. void mortalKombat2() {
  818. Afour(i1, 150);
  819. Atwo(i2, 150);
  820. s(i1, 50);
  821. s(i2, 50);
  822. Afour(i1, 150);
  823. Atwo(i2, 150);
  824. s(i1, 50);
  825. s(i2, 50);
  826. Cfive(i1, 150);
  827. Atwo(i2, 150);
  828. s(i1, 50);
  829. s(i2, 50);
  830. Afour(i1, 150);
  831. Atwo(i2, 150);
  832. s(i1, 50);
  833. s(i2, 50);
  834.  
  835. Dfive(i1, 150);
  836. Atwo(i2, 150);
  837. s(i1, 50);
  838. s(i2, 50);
  839. Afour(i1, 150);
  840. Atwo(i2, 150);
  841. s(i1, 50);
  842. s(i2, 50);
  843. Efive(i1, 150);
  844. Atwo(i2, 150);
  845. s(i1, 50);
  846. s(i2, 50);
  847. Dfive(i1, 150);
  848. Atwo(i2, 150);
  849. s(i1, 50);
  850. s(i2, 50);
  851.  
  852. Cfive(i1, 150);
  853. Cthree(i2, 150);
  854. s(i1, 50);
  855. s(i2, 50);
  856. Cfive(i1, 150);
  857. Cthree(i2, 150);
  858. s(i1, 50);
  859. s(i2, 50);
  860. Efive(i1, 150);
  861. Cthree(i2, 150);
  862. s(i1, 50);
  863. s(i2, 50);
  864. Cfive(i1, 150);
  865. Cthree(i2, 150);
  866. s(i1, 50);
  867. s(i2, 50);
  868.  
  869. Gfive(i1, 150);
  870. Cthree(i2, 150);
  871. s(i1, 50);
  872. s(i2, 50);
  873. Cfive(i1, 150);
  874. Cthree(i2, 150);
  875. s(i1, 50);
  876. s(i2, 50);
  877. Efive(i1, 150);
  878. Cthree(i2, 150);
  879. s(i1, 50);
  880. s(i2, 50);
  881. Cfive(i1, 150);
  882. Cthree(i2, 150);
  883. s(i1, 50);
  884. s(i2, 50);
  885.  
  886. Gfour(i1, 150);
  887. Gthree(i2, 150);
  888. s(i1, 50);
  889. s(i2, 50);
  890. Gfour(i1, 150);
  891. Gthree(i2, 150);
  892. s(i1, 50);
  893. s(i2, 50);
  894. Bfour(i1, 150);
  895. Gthree(i2, 150);
  896. s(i1, 50);
  897. s(i2, 50);
  898. Gfour(i1, 150);
  899. Gthree(i2, 150);
  900. s(i1, 50);
  901. s(i2, 50);
  902.  
  903. Cfive(i1, 150);
  904. Gthree(i2, 150);
  905. s(i1, 50);
  906. s(i2, 50);
  907. Gfour(i1, 150);
  908. Gthree(i2, 150);
  909. s(i1, 50);
  910. Dfive(i2, 50);
  911. (i1, 150);
  912. Gthree(i2, 150);
  913. s(i1, 50);
  914. s(i2, 50);
  915. Cfive(i1, 150);
  916. Gthree(i2, 150);
  917. s(i1, 50);
  918. s(i2, 50);
  919.  
  920. Ffour(i1, 150);
  921. Fthree(i2, 150);
  922. s(i1, 50);
  923. s(i2, 50);
  924. Ffour(i1, 150);
  925. Fthree(i2, 150);
  926. s(i1, 50);
  927. s(i2, 50);
  928. Afour(i1, 150);
  929. Fthree(i2, 150);
  930. s(i1, 50);
  931. s(i2, 50);
  932. Ffour(i1, 150);
  933. Fthree(i2, 150);
  934. s(i1, 50);
  935. s(i2, 50);
  936.  
  937. Cfive(i1, 150);
  938. Fthree(i2, 150);
  939. s(i1, 50);
  940. s(i2, 50);
  941. Ffour(i1, 150);
  942. Fthree(i2, 150);
  943. s(i1, 50);
  944. s(i2, 50);
  945. Cfive(i1, 150);
  946. Fthree(i2, 150);
  947. s(i1, 50);
  948. s(i2, 50);
  949. Bfour(i1, 150);
  950. Fthree(i2, 150);
  951. s(i1, 50);
  952. s(i2, 50);
  953.  
  954. noTone(i1);
  955. noTone(i2);
  956.  
  957. }
  958.  
  959. void sixFlags() {
  960. Efive(i1,150*1.15);
  961. s(i1,10);
  962. Dfive(i1,150*1.15);
  963. s(i1,10);
  964. Efive(i1,150*1.15);
  965. s(i1,10);
  966. Dfive(i1,150*1.15);
  967. s(i1,10);
  968. Efive(i1,150*1.15);
  969. s(i1,10);
  970. Afour(i1,225*1.15);
  971. s(i1,25);
  972. Afour(i1,225*1.15);
  973. Efive(i1,150*1.15);
  974. s(i1,10);
  975. Dfive(i1,150*1.15);
  976. s(i1,10);
  977. Efive(i1,150*1.15);
  978. s(i1,10);
  979. Dfive(i1,150*1.15);
  980. s(i1,10);
  981. Efive(i1,150*1.15);
  982. s(i1,10);
  983. Afour(i1,225*1.15);
  984. s(i1,25);
  985. Afour(i1,225*1.15);
  986.  
  987. Efive(i1,150*1.15);
  988. s(i1,10);
  989. Dfive(i1,150*1.15);
  990. s(i1,10);
  991. Efive(i1,150*1.15);
  992. s(i1,10);
  993. Dfive(i1,150*1.15);
  994. s(i1,10);
  995. Cfive(i1,150*1.15);
  996. s(i1,10);
  997. Efive(i1,225*1.15);
  998. s(i1,25);
  999. Efive(i1,225*1.15);
  1000. s(i1,25);
  1001. Efive(i1,150*1.15);
  1002. s(i1,10);
  1003. Dfive(i1,150*1.15);
  1004. s(i1,10);
  1005. Efive(i1,150*1.15);
  1006. s(i1,10);
  1007. Dfive(i1,150*1.15);
  1008. s(i1,10);
  1009. Cfive(i1,150*1.15);
  1010. s(i1,10);
  1011. Efive(i1,225*1.15);
  1012. s(i1,25);
  1013. Efive(i1,225*1.15);
  1014.  
  1015. noTone(i1);
  1016. }
  1017.  
  1018.  
  1019. void imperialMarch() {
  1020. Gfour(i1,200*1.5);
  1021. s(i1,25);
  1022. Gfour(i1,200*1.5);
  1023. s(i1,25);
  1024. Gfour(i1,200*1.5);
  1025. s(i1,25);
  1026. Dsfour(i1,150*1.5);
  1027. s(i1,25);
  1028. Asfour(i1,50*1.5);
  1029. s(i1,25);
  1030. Gfour(i1,200*1.5);
  1031. s(i1,25);
  1032. Dsfour(i1,150*1.5);
  1033. s(i1,25);
  1034. Asfour(i1,50*1.5);
  1035. s(i1,25);
  1036. Gfour(i1,400*1.5);
  1037. s(i1,25);
  1038.  
  1039. Dfive(i1,200*1.5);
  1040. s(i1,25);
  1041. Dfive(i1,200*1.5);
  1042. s(i1,25);
  1043. Dfive(i1,200*1.5);
  1044. s(i1,25);
  1045. Dsfive(i1,150*1.5);
  1046. s(i1,25);
  1047. Asfour(i1,50*1.5);
  1048. s(i1,25);
  1049. Fsfour(i1,200*1.5);
  1050. s(i1,25);
  1051. Dsfour(i1,150*1.5);
  1052. s(i1,25);
  1053. Asfour(i1,50*1.5);
  1054. s(i1,25);
  1055. Gfour(i1,400*1.5);
  1056.  
  1057. noTone(i1);
  1058. }
  1059.  
  1060. void songOfStorms() {
  1061. Dfour(i1,150*.85);
  1062. Ffour(i1,150*.85);
  1063. Dfive(i1,600*.85);
  1064. Dfour(i1,150*.85);
  1065. Ffour(i1,150*.85);
  1066. Dfive(i1,600*.85);
  1067. Efive(i1,450*.85);
  1068. Ffive(i1,150*.85);
  1069. Efive(i1,150*.85);
  1070. Ffive(i1,150*.85);
  1071. Efive(i1,150*.85);
  1072. Cfive(i1,150*.85);
  1073. Afour(i1,600*.85);
  1074. s(i1,100);
  1075. Afour(i1,300*.85);
  1076. Dfour(i1,300*.85);
  1077. Ffour(i1,150*.85);
  1078. Gfour(i1,150*.85);
  1079. Afour(i1,600*.85);
  1080. s(i1,25);
  1081. Afour(i1,300*.85);
  1082. Dfour(i1,300*.85);
  1083. Ffour(i1,150*.85);
  1084. Gfour(i1,150*.85);
  1085. Efour(i1,600*.85);
  1086. noTone(i1);
  1087. }
  1088.  
  1089. void harryPotter() {
  1090. Bthree(i1,200*1.1);
  1091. Efour(i1,300*1.1);
  1092. Gfour(i1,100*1.1);
  1093. Fsfour(i1,200*1.1);
  1094. Efour(i1,400*1.1);
  1095. Bfour(i1,200*1.1);
  1096. Afour(i1,600*1.1);
  1097. Fsfour(i1,500*1.1);
  1098. s(i1,100*1.1);
  1099. Efour(i1,300*1.1);
  1100. Gfour(i1,100*1.1);
  1101. Fsfour(i1,200*1.1);
  1102. Dsfour(i1,400*1.1);
  1103. Ffour(i1,200*1.1);
  1104. Bthree(i1,500*1.1);
  1105. noTone(i1);
  1106. }
  1107.  
  1108. void darude() {
  1109. Bfour(i1,80);
  1110. s(i1,25);
  1111. Bfour(i1,80);
  1112. s(i1,25);
  1113. Bfour(i1,80);
  1114. s(i1,25);
  1115. Bfour(i1,80);
  1116. s(i1,25);
  1117. Bfour(i1,160);
  1118. s(i1,25);
  1119. Bfour(i1,80);
  1120. s(i1,25);
  1121. Bfour(i1,80);
  1122. s(i1,25);
  1123. Bfour(i1,80);
  1124. s(i1,25);
  1125. Bfour(i1,80);
  1126. s(i1,25);
  1127. Bfour(i1,80);
  1128. s(i1,25);
  1129. Bfour(i1,80);
  1130. s(i1,25);
  1131. Bfour(i1,160);
  1132. s(i1,25);
  1133. Efive(i1,80);
  1134. s(i1,25);
  1135. Efive(i1,80);
  1136. s(i1,25);
  1137. Efive(i1,80);
  1138. s(i1,25);
  1139. Efive(i1,80);
  1140. s(i1,25);
  1141. Efive(i1,80);
  1142. s(i1,25);
  1143. Efive(i1,80);
  1144. s(i1,25);
  1145. Efive(i1,160);
  1146. s(i1,25);
  1147.  
  1148. Dfive(i1,80);
  1149. s(i1,25);
  1150. Dfive(i1,80);
  1151. s(i1,25);
  1152. Dfive(i1,80);
  1153. s(i1,25);
  1154. Dfive(i1,80);
  1155. s(i1,25);
  1156. Dfive(i1,80);
  1157. s(i1,25);
  1158. Dfive(i1,80);
  1159. s(i1,25);
  1160. Dfive(i1,160);
  1161. s(i1,25);
  1162. Afour(i1,160);
  1163. s(i1,25);
  1164. Bfour(i1,320);
  1165. noTone(i1);
  1166. }
  1167.  
  1168. void turningTables()
  1169. {
  1170. Cfour(i1,150);
  1171. Dsfour(i1,150);
  1172. Cfour(i1,150);
  1173. Dsfour(i1,150);
  1174. Asfour(i1,150);
  1175. Dsfour(i1,150);
  1176. Asfour(i1,150);
  1177. Dsfour(i1,150);
  1178.  
  1179. Cfour(i1,150);
  1180. Dsfour(i1,150);
  1181. Cfour(i1,150);
  1182. Dsfour(i1,150);
  1183. Asfour(i1,150);
  1184. Dsfour(i1,150);
  1185. Asfour(i1,150);
  1186. Dsfour(i1,150);
  1187.  
  1188. Cfour(i1,150);
  1189. Dsfour(i1,150);
  1190. Cfour(i1,150);
  1191. Dsfour(i1,150);
  1192. Gsfour(i1,150);
  1193. Dsfour(i1,150);
  1194. Gsfour(i1,150);
  1195. Dsfour(i1,150);
  1196.  
  1197. Cfour(i1,150);
  1198. Dsfour(i1,150);
  1199. Cfour(i1,150);
  1200. Gsfour(i1,150);
  1201. Gfour(i1,150);
  1202. Cfour(i1,150);
  1203. Dsfour(i1,150);
  1204. Cfour(i1,150);
  1205. noTone(i1);
  1206. }
  1207.  
  1208. void Funeral()
  1209. {
  1210. Bthree(i1,600*1.5);
  1211. s(i1,10);
  1212. Bthree(i1,450*1.5);
  1213. s(i1,10);
  1214. Bthree(i1,150*1.5);
  1215. s(i1,10);
  1216. Bthree(i1,600*1.5);
  1217. Dfour(i1,450*1.5);
  1218. Csfour(i1,150*1.5);
  1219. s(i1,10);
  1220. Csfour(i1,450*1.5);
  1221. Bthree(i1,150*1.5);
  1222. s(i1,10);
  1223. Bthree(i1,450*1.5);
  1224. Asthree(i1,150*1.5);
  1225. Bthree(i1,800*1.5);
  1226. noTone(i1);
  1227. }
  1228.  
  1229. void theGood()
  1230. {
  1231. Efour(i1,150);
  1232. Afour(i1,150);
  1233. Efour(i1,150);
  1234. Afour(i1,150);
  1235. Efour(i1,600);
  1236. delay(200);
  1237. Athree(i1,75);
  1238. Bthree(i1,75);
  1239. Cfour(i1,300);
  1240. Bthree(i1,75);
  1241. Cfour(i1,75);
  1242. Dfour(i1,300);
  1243. Fthree(i1,150);
  1244. Gthree(i1,150);
  1245. Athree(i1,1000);
  1246. noTone(i1);
  1247. }
  1248.  
  1249. void GoT()
  1250. {
  1251. Gfour(i1,333);
  1252. Cfour(i1,333);
  1253. Efour(i1,166);
  1254. Ffour(i1,166);
  1255. Gfour(i1,333);
  1256. Cfour(i1,333);
  1257. Efour(i1,166);
  1258. Ffour(i1,166);
  1259. Gfour(i1,333);
  1260. Cfour(i1,333);
  1261. Efour(i1,166);
  1262. Ffour(i1,166);
  1263. Gfour(i1,333);
  1264. Cfour(i1,333);
  1265. noTone(i1);
  1266. }
  1267.  
  1268. void GoT2() {
  1269. Gfour(i1,1000);
  1270. Cfour(i1,1000);
  1271. Dsfour(i1,166);
  1272. Ffour(i1,166);
  1273. Gfour(i1,666);
  1274. Cfour(i1,666);
  1275. Dsfour(i1,166);
  1276. Ffour(i1,166);
  1277. Dfour(i1,1500);
  1278. noTone(i1);
  1279. }
  1280.  
  1281. void GoT3() {
  1282. Ffour(i1,1000);
  1283. Asthree(i1,1000);
  1284. Dsfour(i1,166);
  1285. Dfour(i1,166);
  1286. Ffour(i1,666);
  1287. Asthree(i1,1000);
  1288. Dsfour(i1,166);
  1289. Dfour(i1,166);
  1290. Cfour(i1,1500);
  1291. noTone(i1);
  1292. }
  1293.  
  1294. void chromatic()
  1295. {
  1296. Cone(i1,30);
  1297. Done(i1,30);
  1298. Eone(i1,30);
  1299. Fone(i1,30);
  1300. Gone(i1,30);
  1301. Aone(i1,30);
  1302. Bone(i1,30);
  1303. Ctwo(i1,30);
  1304. Dtwo(i1,30);
  1305. Etwo(i1,30);
  1306. Ftwo(i1,30);
  1307. Gtwo(i1,30);
  1308. Atwo(i1,30);
  1309. Btwo(i1,30);
  1310. Cthree(i1,30);
  1311. Dthree(i1,30);
  1312. Ethree(i1,30);
  1313. Fthree(i1,30);
  1314. Gthree(i1,30);
  1315. Athree(i1,30);
  1316. Bthree(i1,30);
  1317. Cfour(i1,30);
  1318. Dfour(i1,30);
  1319. Efour(i1,30);
  1320. Ffour(i1,30);
  1321. Gfour(i1,30);
  1322. Afour(i1,30);
  1323. Bfour(i1,30);
  1324. Cfive(i1,30);
  1325. Dfive(i1,30);
  1326. Efive(i1,30);
  1327. Ffive(i1,30);
  1328. Gfive(i1,30);
  1329. Afive(i1,30);
  1330. Bfive(i1,30);
  1331. Csix(i1,30);
  1332. Dsix(i1,30);
  1333. Esix(i1,30);
  1334. Fsix(i1,30);
  1335. Gsix(i1,30);
  1336. Asix(i1,30);
  1337. Bsix(i1,30);
  1338. Cseven(i1,30);
  1339. Dseven(i1,30);
  1340. Eseven(i1,30);
  1341. Fseven(i1,30);
  1342. Gseven(i1,30);
  1343. Aseven(i1,30);
  1344. Bseven(i1,30);
  1345.  
  1346. Ceight(i1,30);
  1347.  
  1348. Bseven(i1,30);
  1349. Aseven(i1,30);
  1350. Gseven(i1,30);
  1351. Fseven(i1,30);
  1352. Eseven(i1,30);
  1353. Dseven(i1,30);
  1354. Cseven(i1,30);
  1355. Bsix(i1,30);
  1356. Asix(i1,30);
  1357. Gsix(i1,30);
  1358. Fsix(i1,30);
  1359. Esix(i1,30);
  1360. Dsix(i1,30);
  1361. Csix(i1,30);
  1362. Bfive(i1,30);
  1363. Afive(i1,30);
  1364. Gfive(i1,30);
  1365. Ffive(i1,30);
  1366. Efive(i1,30);
  1367. Dfive(i1,30);
  1368. Cfive(i1,30);
  1369. Bfour(i1,30);
  1370. Afour(i1,30);
  1371. Gfour(i1,30);
  1372. Ffour(i1,30);
  1373. Efour(i1,30);
  1374. Dfour(i1,30);
  1375. Cfour(i1,30);
  1376. Bthree(i1,30);
  1377. Athree(i1,30);
  1378. Gthree(i1,30);
  1379. Fthree(i1,30);
  1380. Ethree(i1,30);
  1381. Dthree(i1,30);
  1382. Cthree(i1,30);
  1383. Btwo(i1,30);
  1384. Atwo(i1,30);
  1385. Gtwo(i1,30);
  1386. Ftwo(i1,30);
  1387. Etwo(i1,30);
  1388. Dtwo(i1,30);
  1389. Ctwo(i1,30);
  1390. Bone(i1,30);
  1391. Aone(i1,30);
  1392. Gone(i1,30);
  1393. Fone(i1,30);
  1394. Eone(i1,30);
  1395. Done(i1,30);
  1396. Cone(i1,30);
  1397. noTone(i1);
  1398.  
  1399. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement