Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. noteBlocks = {
  2. {noteName="1F#",side="front",colour=colors.white},
  3. {noteName="1G",side="front",colour=colors.orange},
  4. {noteName="1G#",side="front",colour=colors.magenta},
  5. {noteName="1A",side="front",colour=colors.lightBlue},
  6. {noteName="1A#",side="front",colour=colors.yellow},
  7. {noteName="1B",side="front",colour=colors.lime},
  8. {noteName="1C",side="front",colour=colors.pink},
  9. {noteName="1C#",side="front",colour=colors.gray},
  10. {noteName="1D",side="front",colour=colors.lightGray},
  11. {noteName="1D#",side="front",colour=colors.cyan},
  12. {noteName="1E",side="front",colour=colors.purple},
  13. {noteName="1F",side="front",colour=colors.blue},
  14. {noteName="2F#",side="front",colour=colors.brown},
  15. {noteName="2G",side="back",colour=colors.white},
  16. {noteName="2G#",side="back",colour=colors.orange},
  17. {noteName="2A",side="back",colour=colors.magenta},
  18. {noteName="2A#",side="back",colour=colors.lightBlue},
  19. {noteName="2B",side="back",colour=colors.yellow},
  20. {noteName="2C",side="back",colour=colors.lime},
  21. {noteName="2C#",side="back",colour=colors.pink},
  22. {noteName="2D",side="back",colour=colors.gray},
  23. {noteName="2D#",side="back",colour=colors.lightGray},
  24. {noteName="2E",side="back",colour=colors.cyan},
  25. {noteName="2F",side="back",colour=colors.purple},
  26. {noteName="3F#",side="back",colour=colors.blue}
  27. }
  28.  
  29. song1 = {
  30. {noteName="2G", length=0.2},
  31. {noteName="2F#",length=0.2},
  32. {noteName="1D#",length=0.2},
  33. {noteName="1A",length=0.2},
  34. {noteName="1G#",length=0.2},
  35. {noteName="1E",length=0.2},
  36. {noteName="2G#",length=0.2},
  37. {noteName="2C",length=0.2}
  38. }
  39.  
  40. song1={
  41. {noteName="1F", length=0.3},
  42. {noteName="1G", length=0.3},
  43. {noteName="1G#", length=0.3},
  44. {noteName="1A", length=0.3},
  45. {noteName="1A#", length=0.3},
  46. {noteName="1B", length=0.3},
  47. {noteName="1C", length=0.3},
  48. {noteName="1C#", length=0.3},
  49. {noteName="1D", length=0.3},
  50. {noteName="1D#", length=0.3},
  51. {noteName="1E", length=0.3},
  52. {noteName="1F", length=0.3},
  53. {noteName="2F#", length=0.3},
  54. {noteName="2G", length=0.3},
  55. {noteName="2G#", length=0.3},
  56. {noteName="2A", length=0.3},
  57. {noteName="2A#", length=0.3},
  58. {noteName="2B", length=0.3},
  59. {noteName="2C", length=0.3},
  60. {noteName="2C#", length=0.3},
  61. {noteName="2D", length=0.3},
  62. {noteName="2D#", length=0.3},
  63. {noteName="2E", length=0.3},
  64. {noteName="2F", length=0.3},
  65. {noteName="3F#", length=0.3},
  66. {noteName="1F", length=0.3},
  67. {noteName="1G", length=0.3},
  68. {noteName="1G#", length=0.3},
  69. {noteName="1A", length=0.3},
  70. {noteName="1A#", length=0.3},
  71. {noteName="1B", length=0.3},
  72. {noteName="1C", length=0.3},
  73. {noteName="1C#", length=0.3},
  74. {noteName="1D", length=0.3},
  75. {noteName="1D#", length=0.3},
  76. {noteName="1E", length=0.3},
  77. {noteName="1F", length=0.3},
  78. {noteName="2F#", length=0.3},
  79. {noteName="2G", length=0.3},
  80. {noteName="2G#", length=0.3},
  81. {noteName="2A", length=0.3},
  82. {noteName="2A#", length=0.3},
  83. {noteName="2B", length=0.3},
  84. {noteName="2C", length=0.3},
  85. {noteName="2C#", length=0.3},
  86. {noteName="2D", length=0.3},
  87. {noteName="2D#", length=0.3},
  88. {noteName="2E", length=0.3},
  89. {noteName="2F", length=0.3},
  90. {noteName="3F#", length=0.3},
  91. {noteName="1F", length=0.3},
  92. {noteName="1G", length=0.3},
  93. {noteName="1G#", length=0.3},
  94. {noteName="1A", length=0.3},
  95. {noteName="1A#", length=0.3},
  96. {noteName="1B", length=0.3},
  97. {noteName="1C", length=0.3},
  98. {noteName="1C#", length=0.3},
  99. {noteName="1D", length=0.3},
  100. {noteName="1D#", length=0.3},
  101. {noteName="1E", length=0.3},
  102. {noteName="1F", length=0.3},
  103. {noteName="2F#", length=0.3},
  104. {noteName="2G", length=0.3},
  105. {noteName="2G#", length=0.3},
  106. {noteName="2A", length=0.3},
  107. {noteName="2A#", length=0.3},
  108. {noteName="2B", length=0.3},
  109. {noteName="2C", length=0.3},
  110. {noteName="2C#", length=0.3},
  111. {noteName="2D", length=0.3},
  112. {noteName="2D#", length=0.3},
  113. {noteName="2E", length=0.3},
  114. {noteName="2F", length=0.3},
  115. {noteName="3F#", length=0.3},
  116. {noteName="1F", length=0.3},
  117. {noteName="1G", length=0.3},
  118. {noteName="1G#", length=0.3},
  119. {noteName="1A", length=0.3},
  120. {noteName="1A#", length=0.3},
  121. {noteName="1B", length=0.3},
  122. {noteName="1C", length=0.3},
  123. {noteName="1C#", length=0.3},
  124. {noteName="1D", length=0.3},
  125. {noteName="1D#", length=0.3},
  126. {noteName="1E", length=0.3},
  127. {noteName="1F", length=0.3},
  128. {noteName="2F#", length=0.3},
  129. {noteName="2G", length=0.3},
  130. {noteName="2G#", length=0.3},
  131. {noteName="2A", length=0.3},
  132. {noteName="2A#", length=0.3},
  133. {noteName="2B", length=0.3},
  134. {noteName="2C", length=0.3},
  135. {noteName="2C#", length=0.3},
  136. {noteName="2D", length=0.3},
  137. {noteName="2D#", length=0.3},
  138. {noteName="2E", length=0.3},
  139. {noteName="2F", length=0.3},
  140. {noteName="3F#", length=0.3},
  141. {noteName="1F", length=0.3},
  142. {noteName="1G", length=0.3},
  143. {noteName="1G#", length=0.3},
  144. {noteName="1A", length=0.3},
  145. {noteName="1A#", length=0.3},
  146. {noteName="1B", length=0.3},
  147. {noteName="1C", length=0.3},
  148. {noteName="1C#", length=0.3},
  149. {noteName="1D", length=0.3},
  150. {noteName="1D#", length=0.3},
  151. {noteName="1E", length=0.3},
  152. {noteName="1F", length=0.3},
  153. {noteName="2F#", length=0.3},
  154. {noteName="2G", length=0.3},
  155. {noteName="2G#", length=0.3},
  156. {noteName="2A", length=0.3},
  157. {noteName="2A#", length=0.3},
  158. {noteName="2B", length=0.3},
  159. {noteName="2C", length=0.3},
  160. {noteName="2C#", length=0.3},
  161. {noteName="2D", length=0.3},
  162. {noteName="2D#", length=0.3},
  163. {noteName="2E", length=0.3},
  164. {noteName="2F", length=0.3},
  165. {noteName="3F#", length=0.3},
  166. {noteName="1F", length=0.3},
  167. {noteName="1G", length=0.3},
  168. {noteName="1G#", length=0.3},
  169. {noteName="1A", length=0.3},
  170. {noteName="1A#", length=0.3},
  171. {noteName="1B", length=0.3},
  172. {noteName="1C", length=0.3},
  173. {noteName="1C#", length=0.3},
  174. {noteName="1D", length=0.3},
  175. {noteName="1D#", length=0.3},
  176. {noteName="1E", length=0.3},
  177. {noteName="1F", length=0.3},
  178. {noteName="2F#", length=0.3},
  179. {noteName="2G", length=0.3},
  180. {noteName="2G#", length=0.3},
  181. {noteName="2A", length=0.3},
  182. {noteName="2A#", length=0.3},
  183. {noteName="2B", length=0.3},
  184. {noteName="2C", length=0.3},
  185. {noteName="2C#", length=0.3},
  186. {noteName="2D", length=0.3},
  187. {noteName="2D#", length=0.3},
  188. {noteName="2E", length=0.3},
  189. {noteName="2F", length=0.3},
  190. {noteName="3F#", length=0.3},
  191. {noteName="1F", length=0.3},
  192. {noteName="1G", length=0.3},
  193. {noteName="1G#", length=0.3},
  194. {noteName="1A", length=0.3},
  195. {noteName="1A#", length=0.3},
  196. {noteName="1B", length=0.3},
  197. {noteName="1C", length=0.3},
  198. {noteName="1C#", length=0.3},
  199. {noteName="1D", length=0.3},
  200. {noteName="1D#", length=0.3},
  201. {noteName="1E", length=0.3},
  202. {noteName="1F", length=0.3},
  203. {noteName="2F#", length=0.3},
  204. {noteName="2G", length=0.3},
  205. {noteName="2G#", length=0.3},
  206. {noteName="2A", length=0.3},
  207. {noteName="2A#", length=0.3},
  208. {noteName="2B", length=0.3},
  209. {noteName="2C", length=0.3},
  210. {noteName="2C#", length=0.3},
  211. {noteName="2D", length=0.3},
  212. {noteName="2D#", length=0.3},
  213. {noteName="2E", length=0.3},
  214. {noteName="2F", length=0.3},
  215. {noteName="3F#", length=0.3}
  216. }
  217.  
  218. for x, note in ipairs(song1) do
  219. for y, noteMaster in ipairs(noteBlocks) do
  220. if note.noteName == noteMaster.noteName then
  221. redstone.setBundledOutput(noteMaster.side, noteMaster.colour)
  222. redstone.setBundledOutput(noteMaster.side, noteMaster.colour)
  223. end
  224. end
  225. os.sleep(note.length)
  226. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement