lacci 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (559) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +85 -0
  3. data/.ruby-version +1 -0
  4. data/.vscode/extensions.json +5 -0
  5. data/.yardopts +12 -0
  6. data/CHANGELOG.md +19 -0
  7. data/CODE_OF_CONDUCT.md +84 -0
  8. data/CONTRIBUTING.md +20 -0
  9. data/Gemfile +24 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +178 -0
  12. data/Rakefile +15 -0
  13. data/bin/console +15 -0
  14. data/bin/setup +8 -0
  15. data/dev.yml +7 -0
  16. data/docs/static/PKGBUILD +47 -0
  17. data/docs/static/Shoes.icns +0 -0
  18. data/docs/static/avatar.png +0 -0
  19. data/docs/static/code_highlighter.js +188 -0
  20. data/docs/static/code_highlighter_ruby.js +26 -0
  21. data/docs/static/icon-debug.png +0 -0
  22. data/docs/static/icon-error.png +0 -0
  23. data/docs/static/icon-info.png +0 -0
  24. data/docs/static/icon-warn.png +0 -0
  25. data/docs/static/listbox_button1.png +0 -0
  26. data/docs/static/listbox_button2.png +0 -0
  27. data/docs/static/man-app.png +0 -0
  28. data/docs/static/man-builds.png +0 -0
  29. data/docs/static/man-builds1.png +0 -0
  30. data/docs/static/man-editor-notepad.png +0 -0
  31. data/docs/static/man-editor-osx.png +0 -0
  32. data/docs/static/man-ele-background.png +0 -0
  33. data/docs/static/man-ele-border.png +0 -0
  34. data/docs/static/man-ele-button.png +0 -0
  35. data/docs/static/man-ele-check.png +0 -0
  36. data/docs/static/man-ele-editbox.png +0 -0
  37. data/docs/static/man-ele-editline.png +0 -0
  38. data/docs/static/man-ele-image.png +0 -0
  39. data/docs/static/man-ele-listbox.png +0 -0
  40. data/docs/static/man-ele-progress.png +0 -0
  41. data/docs/static/man-ele-radio.png +0 -0
  42. data/docs/static/man-ele-shape.png +0 -0
  43. data/docs/static/man-ele-textblock.png +0 -0
  44. data/docs/static/man-ele-video.png +0 -0
  45. data/docs/static/man-intro-dmg.png +0 -0
  46. data/docs/static/man-intro-exe.png +0 -0
  47. data/docs/static/man-look-tiger.png +0 -0
  48. data/docs/static/man-look-ubuntu.png +0 -0
  49. data/docs/static/man-look-vista.png +0 -0
  50. data/docs/static/man-run-osx.png +0 -0
  51. data/docs/static/man-run-vista.png +0 -0
  52. data/docs/static/man-run-xp.png +0 -0
  53. data/docs/static/man-shot1.png +0 -0
  54. data/docs/static/manual-en.txt +3529 -0
  55. data/docs/static/manual-ja.txt +2829 -0
  56. data/docs/static/manual.css +171 -0
  57. data/docs/static/manual.md +3528 -0
  58. data/docs/static/menu-corner1.png +0 -0
  59. data/docs/static/menu-corner2.png +0 -0
  60. data/docs/static/menu-gray.png +0 -0
  61. data/docs/static/menu-left.png +0 -0
  62. data/docs/static/menu-right.png +0 -0
  63. data/docs/static/menu-top.png +0 -0
  64. data/docs/static/shoes-dmg.jpg +0 -0
  65. data/docs/static/shoes-icon-blue.png +0 -0
  66. data/docs/static/shoes-icon.png +0 -0
  67. data/docs/static/shoes-manual-apps.gif +0 -0
  68. data/docs/static/shoes_main_window.png +0 -0
  69. data/docs/static/stripe.png +0 -0
  70. data/docs/static/stubs/blank.exe +0 -0
  71. data/docs/static/stubs/blank.hfz +0 -0
  72. data/docs/static/stubs/blank.run +375 -0
  73. data/docs/static/stubs/cocoa-install +0 -0
  74. data/docs/static/stubs/sh-install +49 -0
  75. data/docs/static/stubs/shoes-stub-inject.exe +0 -0
  76. data/docs/static/stubs/shoes-stub.exe +0 -0
  77. data/docs/static/tutor-back.png +0 -0
  78. data/docs/yard/catscradle.md +44 -0
  79. data/docs/yard/template/default/fulldoc/html/setup.rb +13 -0
  80. data/docs/yard/template/default/layout/html/setup.rb +9 -0
  81. data/examples/backdround_with_image.rb +16 -0
  82. data/examples/bloopsaphone/working/1901_by_Aanand_Prasad.rb +478 -0
  83. data/examples/bloopsaphone/working/b1.rb +64 -0
  84. data/examples/bloopsaphone/working/b2.rb +36 -0
  85. data/examples/bloopsaphone/working/bloops_test.rb +41 -0
  86. data/examples/bloopsaphone/working/bloopsaphone_theme_song_by_why.rb +31 -0
  87. data/examples/bloopsaphone/working/feepogram.rb +67 -0
  88. data/examples/bloopsaphone/working/simpsons_theme_song_by_why.rb +14 -0
  89. data/examples/bloopsaphone/working/tune_cheeky_drat.rb +210 -0
  90. data/examples/button.rb +10 -0
  91. data/examples/button_alert.rb +6 -0
  92. data/examples/button_go_away.rb +6 -0
  93. data/examples/button_with_position_and_size.rb +7 -0
  94. data/examples/coffee.rb +14 -0
  95. data/examples/download.rb +5 -0
  96. data/examples/download_and_show_image.rb +28 -0
  97. data/examples/edit_box.rb +8 -0
  98. data/examples/edit_line.rb +8 -0
  99. data/examples/fill.rb +25 -0
  100. data/examples/flow.rb +11 -0
  101. data/examples/fonts.rb +6 -0
  102. data/examples/gen.rb +140 -0
  103. data/examples/get_headers.rb +10 -0
  104. data/examples/hello_world.rb +3 -0
  105. data/examples/highlander.rb +87 -0
  106. data/examples/image/clickable_image.rb +5 -0
  107. data/examples/image/image.rb +3 -0
  108. data/examples/image/image_size.rb +7 -0
  109. data/examples/image/image_with_position_and_size.rb +3 -0
  110. data/examples/info.rb +9 -0
  111. data/examples/legacy/not_checked/expert/colours.rb +105 -0
  112. data/examples/legacy/not_checked/expert/curve-animation.rb +31 -0
  113. data/examples/legacy/not_checked/expert/curve-control-point.rb +51 -0
  114. data/examples/legacy/not_checked/expert/custom-list-box.rb +53 -0
  115. data/examples/legacy/not_checked/expert/definr.rb +23 -0
  116. data/examples/legacy/not_checked/expert/funnies.rb +56 -0
  117. data/examples/legacy/not_checked/expert/minesweeper.rb +267 -0
  118. data/examples/legacy/not_checked/expert/othello.rb +318 -0
  119. data/examples/legacy/not_checked/expert/pong.rb +62 -0
  120. data/examples/legacy/not_checked/expert/tankspank.rb +385 -0
  121. data/examples/legacy/not_checked/expert/tooltips.rb +45 -0
  122. data/examples/legacy/not_checked/expert/url.rb +37 -0
  123. data/examples/legacy/not_checked/expert/video-player.rb +256 -0
  124. data/examples/legacy/not_checked/good/_why-stories.rb +44 -0
  125. data/examples/legacy/not_checked/good/_why-stories.yaml +387 -0
  126. data/examples/legacy/not_checked/good/arc.rb +37 -0
  127. data/examples/legacy/not_checked/good/cardflip.rb +141 -0
  128. data/examples/legacy/not_checked/good/clock.rb +51 -0
  129. data/examples/legacy/not_checked/good/console.rb +21 -0
  130. data/examples/legacy/not_checked/good/follow.rb +26 -0
  131. data/examples/legacy/not_checked/good/image-rotate.rb +14 -0
  132. data/examples/legacy/not_checked/good/paris.svg +7236 -0
  133. data/examples/legacy/not_checked/good/path-animation.rb +46 -0
  134. data/examples/legacy/not_checked/good/plots.rb +100 -0
  135. data/examples/legacy/not_checked/good/reminder.rb +174 -0
  136. data/examples/legacy/not_checked/good/svgview.rb +113 -0
  137. data/examples/legacy/not_checked/good/vjot.rb +56 -0
  138. data/examples/legacy/not_checked/shoes-contrib/.gitignore +2 -0
  139. data/examples/legacy/not_checked/shoes-contrib/README.md +34 -0
  140. data/examples/legacy/not_checked/shoes-contrib/animation/animate-ovals.rb +21 -0
  141. data/examples/legacy/not_checked/shoes-contrib/animation/flowers.rb +59 -0
  142. data/examples/legacy/not_checked/shoes-contrib/animation/happy-trails.rb +31 -0
  143. data/examples/legacy/not_checked/shoes-contrib/animation/mice-satellites.rb +27 -0
  144. data/examples/legacy/not_checked/shoes-contrib/animation/oval-motion.rb +12 -0
  145. data/examples/legacy/not_checked/shoes-contrib/animation/pink-bubbles.rb +34 -0
  146. data/examples/legacy/not_checked/shoes-contrib/animation/pulsate.rb +18 -0
  147. data/examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb +18 -0
  148. data/examples/legacy/not_checked/shoes-contrib/app/download-and-save.rb +11 -0
  149. data/examples/legacy/not_checked/shoes-contrib/app/download.rb +10 -0
  150. data/examples/legacy/not_checked/shoes-contrib/app/get-google.rb +11 -0
  151. data/examples/legacy/not_checked/shoes-contrib/app/mouse-detection.rb +7 -0
  152. data/examples/legacy/not_checked/shoes-contrib/app/resizeable-false.rb +6 -0
  153. data/examples/legacy/not_checked/shoes-contrib/art/bubble-bullseye.rb +23 -0
  154. data/examples/legacy/not_checked/shoes-contrib/art/faded.rb +17 -0
  155. data/examples/legacy/not_checked/shoes-contrib/art/fill-oval.rb +5 -0
  156. data/examples/legacy/not_checked/shoes-contrib/art/mask.rb +15 -0
  157. data/examples/legacy/not_checked/shoes-contrib/art/oval-gradient.rb +6 -0
  158. data/examples/legacy/not_checked/shoes-contrib/art/star-gradient.rb +4 -0
  159. data/examples/legacy/not_checked/shoes-contrib/basic/basic-edit-box.rb +8 -0
  160. data/examples/legacy/not_checked/shoes-contrib/basic/basic-new-window.rb +8 -0
  161. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-image.rb +8 -0
  162. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-shape.rb +8 -0
  163. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval.rb +6 -0
  164. data/examples/legacy/not_checked/shoes-contrib/basic/class-book.rb +43 -0
  165. data/examples/legacy/not_checked/shoes-contrib/basic/class-book.yaml +387 -0
  166. data/examples/legacy/not_checked/shoes-contrib/basic/clock.rb +6 -0
  167. data/examples/legacy/not_checked/shoes-contrib/basic/edit-stack +14 -0
  168. data/examples/legacy/not_checked/shoes-contrib/basic/gradient-shoes.rb +7 -0
  169. data/examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb +19 -0
  170. data/examples/legacy/not_checked/shoes-contrib/basic/rect-arrow.rb +7 -0
  171. data/examples/legacy/not_checked/shoes-contrib/basic/scribble.rb +8 -0
  172. data/examples/legacy/not_checked/shoes-contrib/basic/search.rb +32 -0
  173. data/examples/legacy/not_checked/shoes-contrib/basic/shoes-notes.rb +16 -0
  174. data/examples/legacy/not_checked/shoes-contrib/basic/url-shoes-subclassing.rb +24 -0
  175. data/examples/legacy/not_checked/shoes-contrib/browser.rb +21 -0
  176. data/examples/legacy/not_checked/shoes-contrib/elements/background-column.rb +3 -0
  177. data/examples/legacy/not_checked/shoes-contrib/elements/background.rb +4 -0
  178. data/examples/legacy/not_checked/shoes-contrib/elements/basic-fps.rb +6 -0
  179. data/examples/legacy/not_checked/shoes-contrib/elements/border-cat.rb +6 -0
  180. data/examples/legacy/not_checked/shoes-contrib/elements/button-block.rb +8 -0
  181. data/examples/legacy/not_checked/shoes-contrib/elements/check-mate.rb +15 -0
  182. data/examples/legacy/not_checked/shoes-contrib/elements/common-styles.rb +13 -0
  183. data/examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb +13 -0
  184. data/examples/legacy/not_checked/shoes-contrib/elements/edit_box-character-count.rb +7 -0
  185. data/examples/legacy/not_checked/shoes-contrib/elements/edit_line-character-count.rb +7 -0
  186. data/examples/legacy/not_checked/shoes-contrib/elements/image-icon.rb +3 -0
  187. data/examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb +13 -0
  188. data/examples/legacy/not_checked/shoes-contrib/elements/list_box.rb +6 -0
  189. data/examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb +13 -0
  190. data/examples/legacy/not_checked/shoes-contrib/elements/phat-button.rb +7 -0
  191. data/examples/legacy/not_checked/shoes-contrib/elements/popup.rb +7 -0
  192. data/examples/legacy/not_checked/shoes-contrib/elements/progress-bar.rb +10 -0
  193. data/examples/legacy/not_checked/shoes-contrib/elements/radio-dreamcast-favs.rb +17 -0
  194. data/examples/legacy/not_checked/shoes-contrib/elements/timer.rb +6 -0
  195. data/examples/legacy/not_checked/shoes-contrib/elements/width-introspec.rb +8 -0
  196. data/examples/legacy/not_checked/shoes-contrib/events/background-hover.rb +11 -0
  197. data/examples/legacy/not_checked/shoes-contrib/events/motion-detect.rb +9 -0
  198. data/examples/legacy/not_checked/shoes-contrib/events/pressed-key.rb +6 -0
  199. data/examples/legacy/not_checked/shoes-contrib/expert/expert-funnies.rb +51 -0
  200. data/examples/legacy/not_checked/shoes-contrib/expert/expert-irb.rb +112 -0
  201. data/examples/legacy/not_checked/shoes-contrib/expert/expert-othello.rb +319 -0
  202. data/examples/legacy/not_checked/shoes-contrib/good/good-arc.rb +37 -0
  203. data/examples/legacy/not_checked/shoes-contrib/good/good-clock.rb +51 -0
  204. data/examples/legacy/not_checked/shoes-contrib/good/good-follow.rb +26 -0
  205. data/examples/legacy/not_checked/shoes-contrib/good/good-reminder.rb +174 -0
  206. data/examples/legacy/not_checked/shoes-contrib/good/good-vjot.rb +56 -0
  207. data/examples/legacy/not_checked/shoes-contrib/kernel/ask.rb +4 -0
  208. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_color.rb +4 -0
  209. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_open_file.rb +4 -0
  210. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_save_file.rb +7 -0
  211. data/examples/legacy/not_checked/shoes-contrib/kernel/confirm.rb +3 -0
  212. data/examples/legacy/not_checked/shoes-contrib/kernel/debug.rb +4 -0
  213. data/examples/legacy/not_checked/shoes-contrib/kernel/exit.rb +5 -0
  214. data/examples/legacy/not_checked/shoes-contrib/kernel/font.rb +5 -0
  215. data/examples/legacy/not_checked/shoes-contrib/kernel/fonts.rb +3 -0
  216. data/examples/legacy/not_checked/shoes-contrib/manipulation/append-slot.rb +9 -0
  217. data/examples/legacy/not_checked/shoes-contrib/manipulation/clear-slot.rb +6 -0
  218. data/examples/legacy/not_checked/shoes-contrib/manipulation/prepend-slot.rb +6 -0
  219. data/examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb +17 -0
  220. data/examples/legacy/not_checked/shoes-contrib/position/gutter-margin.rb +5 -0
  221. data/examples/legacy/not_checked/shoes-contrib/position/stack-width.rb +3 -0
  222. data/examples/legacy/not_checked/shoes-contrib/simple/simple-accordion.rb +75 -0
  223. data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-shapes.rb +17 -0
  224. data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-text.rb +13 -0
  225. data/examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb +23 -0
  226. data/examples/legacy/not_checked/shoes-contrib/simple/simple-bounce.rb +24 -0
  227. data/examples/legacy/not_checked/shoes-contrib/simple/simple-calc.rb +70 -0
  228. data/examples/legacy/not_checked/shoes-contrib/simple/simple-chipmunk.rb +26 -0
  229. data/examples/legacy/not_checked/shoes-contrib/simple/simple-control-sizes.rb +24 -0
  230. data/examples/legacy/not_checked/shoes-contrib/simple/simple-curve.rb +26 -0
  231. data/examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb +29 -0
  232. data/examples/legacy/not_checked/shoes-contrib/simple/simple-downloader.rb +27 -0
  233. data/examples/legacy/not_checked/shoes-contrib/simple/simple-draw.rb +13 -0
  234. data/examples/legacy/not_checked/shoes-contrib/simple/simple-editor.rb +28 -0
  235. data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.rb +28 -0
  236. data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.shy +0 -0
  237. data/examples/legacy/not_checked/shoes-contrib/simple/simple-mask.rb +21 -0
  238. data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu.rb +31 -0
  239. data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu1.rb +35 -0
  240. data/examples/legacy/not_checked/shoes-contrib/simple/simple-rubygems.rb +29 -0
  241. data/examples/legacy/not_checked/shoes-contrib/simple/simple-slide.rb +45 -0
  242. data/examples/legacy/not_checked/shoes-contrib/simple/simple-sphere.rb +28 -0
  243. data/examples/legacy/not_checked/shoes-contrib/simple/simple-sqlite3.rb +13 -0
  244. data/examples/legacy/not_checked/shoes-contrib/simple/simple-timer.rb +13 -0
  245. data/examples/legacy/not_checked/shoes-contrib/simple/simple-video.rb +13 -0
  246. data/examples/legacy/not_checked/shoes-contrib/styles/alignment.rb +4 -0
  247. data/examples/legacy/not_checked/shoes-contrib/styles/attachment.rb +5 -0
  248. data/examples/legacy/not_checked/shoes-contrib/styles/emphasis.rb +3 -0
  249. data/examples/legacy/not_checked/shoes-contrib/styles/gradient-angle.rb +3 -0
  250. data/examples/legacy/not_checked/shoes-contrib/styles/para-methods.rb +5 -0
  251. data/examples/legacy/not_checked/shoes-contrib/styles/para-red-underlined.rb +3 -0
  252. data/examples/legacy/not_checked/shoes-contrib/styles/para-style-method.rb +4 -0
  253. data/examples/legacy/not_checked/shoes-dep-samples/expert-game-of-life.rb +243 -0
  254. data/examples/legacy/not_checked/shoes-dep-samples/expert-othello.rb +319 -0
  255. data/examples/legacy/not_checked/shoes-dep-samples/good-clock.rb +51 -0
  256. data/examples/legacy/not_checked/shoes-dep-samples/good-follow.rb +26 -0
  257. data/examples/legacy/not_checked/shoes-dep-samples/good-reminder.rb +174 -0
  258. data/examples/legacy/not_checked/shoes-dep-samples/good-vjot.rb +56 -0
  259. data/examples/legacy/not_checked/shoes-dep-samples/simple-accordion.rb +75 -0
  260. data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-shapes.rb +17 -0
  261. data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-text.rb +13 -0
  262. data/examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb +23 -0
  263. data/examples/legacy/not_checked/shoes-dep-samples/simple-bounce.rb +24 -0
  264. data/examples/legacy/not_checked/shoes-dep-samples/simple-calc.rb +70 -0
  265. data/examples/legacy/not_checked/shoes-dep-samples/simple-chipmunk.rb +26 -0
  266. data/examples/legacy/not_checked/shoes-dep-samples/simple-control-sizes.rb +24 -0
  267. data/examples/legacy/not_checked/shoes-dep-samples/simple-curve.rb +26 -0
  268. data/examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb +29 -0
  269. data/examples/legacy/not_checked/shoes-dep-samples/simple-draw.rb +13 -0
  270. data/examples/legacy/not_checked/shoes-dep-samples/simple-editor.rb +28 -0
  271. data/examples/legacy/not_checked/shoes-dep-samples/simple-form.rb +28 -0
  272. data/examples/legacy/not_checked/shoes-dep-samples/simple-form.shy +0 -0
  273. data/examples/legacy/not_checked/shoes-dep-samples/simple-mask.rb +21 -0
  274. data/examples/legacy/not_checked/shoes-dep-samples/simple-menu.rb +31 -0
  275. data/examples/legacy/not_checked/shoes-dep-samples/simple-menu1.rb +35 -0
  276. data/examples/legacy/not_checked/shoes-dep-samples/simple-rubygems.rb +29 -0
  277. data/examples/legacy/not_checked/shoes-dep-samples/simple-slide.rb +45 -0
  278. data/examples/legacy/not_checked/shoes-dep-samples/simple-sphere.rb +28 -0
  279. data/examples/legacy/not_checked/shoes-dep-samples/simple-sqlite3.rb +13 -0
  280. data/examples/legacy/not_checked/shoes-dep-samples/simple-timer.rb +13 -0
  281. data/examples/legacy/not_checked/shoes-dep-samples/simple-video.rb +13 -0
  282. data/examples/legacy/not_checked/shoes3-tests/AnemicCinema1926marcelDuchampCut.mp4 +0 -0
  283. data/examples/legacy/not_checked/shoes3-tests/button/button.rb +53 -0
  284. data/examples/legacy/not_checked/shoes3-tests/cache/cache.rb +41 -0
  285. data/examples/legacy/not_checked/shoes3-tests/combo/combo.rb +24 -0
  286. data/examples/legacy/not_checked/shoes3-tests/curl/bare.rb +34 -0
  287. data/examples/legacy/not_checked/shoes3-tests/curl/downloader.rb +40 -0
  288. data/examples/legacy/not_checked/shoes3-tests/curl/m1.rb +11 -0
  289. data/examples/legacy/not_checked/shoes3-tests/curl/m2.rb +12 -0
  290. data/examples/legacy/not_checked/shoes3-tests/curl/m3.rb +11 -0
  291. data/examples/legacy/not_checked/shoes3-tests/curl/m4.rb +5 -0
  292. data/examples/legacy/not_checked/shoes3-tests/curl/typ.rb +30 -0
  293. data/examples/legacy/not_checked/shoes3-tests/cursor/c1.rb +21 -0
  294. data/examples/legacy/not_checked/shoes3-tests/decoration.rb +14 -0
  295. data/examples/legacy/not_checked/shoes3-tests/dialogs/ask.rb +6 -0
  296. data/examples/legacy/not_checked/shoes3-tests/dialogs/confirm.rb +6 -0
  297. data/examples/legacy/not_checked/shoes3-tests/editbox/editbox.rb +36 -0
  298. data/examples/legacy/not_checked/shoes3-tests/editline/editline.rb +27 -0
  299. data/examples/legacy/not_checked/shoes3-tests/events/button.rb +32 -0
  300. data/examples/legacy/not_checked/shoes3-tests/events/button.yaml +40 -0
  301. data/examples/legacy/not_checked/shoes3-tests/events/capture.rb +57 -0
  302. data/examples/legacy/not_checked/shoes3-tests/events/chipmunk.yaml +47 -0
  303. data/examples/legacy/not_checked/shoes3-tests/events/event0.rb +8 -0
  304. data/examples/legacy/not_checked/shoes3-tests/events/event1.rb +51 -0
  305. data/examples/legacy/not_checked/shoes3-tests/events/event1.yaml +26 -0
  306. data/examples/legacy/not_checked/shoes3-tests/events/event2.rb +46 -0
  307. data/examples/legacy/not_checked/shoes3-tests/events/event3.rb +44 -0
  308. data/examples/legacy/not_checked/shoes3-tests/events/event4.rb +65 -0
  309. data/examples/legacy/not_checked/shoes3-tests/events/event5.rb +17 -0
  310. data/examples/legacy/not_checked/shoes3-tests/events/event6.rb +51 -0
  311. data/examples/legacy/not_checked/shoes3-tests/events/replay.rb +60 -0
  312. data/examples/legacy/not_checked/shoes3-tests/gapp/fullscreen.rb +38 -0
  313. data/examples/legacy/not_checked/shoes3-tests/gapp/icon.rb +56 -0
  314. data/examples/legacy/not_checked/shoes3-tests/gapp/mon1.rb +46 -0
  315. data/examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb +22 -0
  316. data/examples/legacy/not_checked/shoes3-tests/gapp/title1.rb +34 -0
  317. data/examples/legacy/not_checked/shoes3-tests/indian.m4a +0 -0
  318. data/examples/legacy/not_checked/shoes3-tests/menus/event.rb +33 -0
  319. data/examples/legacy/not_checked/shoes3-tests/menus/menu1.rb +8 -0
  320. data/examples/legacy/not_checked/shoes3-tests/menus/menu2.rb +25 -0
  321. data/examples/legacy/not_checked/shoes3-tests/menus/menu3.rb +103 -0
  322. data/examples/legacy/not_checked/shoes3-tests/menus/menu4.rb +41 -0
  323. data/examples/legacy/not_checked/shoes3-tests/menus/tests.txt +42 -0
  324. data/examples/legacy/not_checked/shoes3-tests/opacity.rb +13 -0
  325. data/examples/legacy/not_checked/shoes3-tests/plot/^IRX.R +5219 -0
  326. data/examples/legacy/not_checked/shoes3-tests/plot/^SPX +5219 -0
  327. data/examples/legacy/not_checked/shoes3-tests/plot/cstest.rb +51 -0
  328. data/examples/legacy/not_checked/shoes3-tests/plot/gr1.rb +73 -0
  329. data/examples/legacy/not_checked/shoes3-tests/plot/gr2.rb +40 -0
  330. data/examples/legacy/not_checked/shoes3-tests/plot/gr3.rb +47 -0
  331. data/examples/legacy/not_checked/shoes3-tests/plot/gr4.rb +35 -0
  332. data/examples/legacy/not_checked/shoes3-tests/plot/gr5.rb +31 -0
  333. data/examples/legacy/not_checked/shoes3-tests/plot/gr6.rb +35 -0
  334. data/examples/legacy/not_checked/shoes3-tests/plot/gr7.rb +37 -0
  335. data/examples/legacy/not_checked/shoes3-tests/plot/grcsv.rb +219 -0
  336. data/examples/legacy/not_checked/shoes3-tests/plot/manual.rb +40 -0
  337. data/examples/legacy/not_checked/shoes3-tests/progress/progress.rb +29 -0
  338. data/examples/legacy/not_checked/shoes3-tests/radio/clear.rb +20 -0
  339. data/examples/legacy/not_checked/shoes3-tests/radio/group.rb +18 -0
  340. data/examples/legacy/not_checked/shoes3-tests/radio/multiple.rb +32 -0
  341. data/examples/legacy/not_checked/shoes3-tests/radio/nogroup.rb +9 -0
  342. data/examples/legacy/not_checked/shoes3-tests/simpletest.svg +14 -0
  343. data/examples/legacy/not_checked/shoes3-tests/spinner.rb +15 -0
  344. data/examples/legacy/not_checked/shoes3-tests/svg.rb +208 -0
  345. data/examples/legacy/not_checked/shoes3-tests/switch/switch.rb +28 -0
  346. data/examples/legacy/not_checked/shoes3-tests/systray/back.rb +20 -0
  347. data/examples/legacy/not_checked/shoes3-tests/systray/note.rb +17 -0
  348. data/examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb +27 -0
  349. data/examples/legacy/not_checked/shoes3-tests/terminal/ed.rb +65 -0
  350. data/examples/legacy/not_checked/shoes3-tests/terminal/el.rb +50 -0
  351. data/examples/legacy/not_checked/shoes3-tests/terminal/logattr.rb +31 -0
  352. data/examples/legacy/not_checked/shoes3-tests/tests_color.rb +138 -0
  353. data/examples/legacy/not_checked/shoes3-tests/tests_svg.rb +228 -0
  354. data/examples/legacy/not_checked/shoes3-tests/tests_video_vlc.rb +186 -0
  355. data/examples/legacy/not_checked/shoes3-tests/tooltips.rb +20 -0
  356. data/examples/legacy/not_checked/shoes3-tests/video_vlc.rb +242 -0
  357. data/examples/legacy/not_checked/shoes3-tests/wheel/wheel1.rb +21 -0
  358. data/examples/legacy/not_checked/simple/accordion.rb +81 -0
  359. data/examples/legacy/not_checked/simple/anim-shapes.rb +17 -0
  360. data/examples/legacy/not_checked/simple/anim-text.rb +13 -0
  361. data/examples/legacy/not_checked/simple/arc.rb +23 -0
  362. data/examples/legacy/not_checked/simple/bounce.rb +24 -0
  363. data/examples/legacy/not_checked/simple/chipmunk.rb +26 -0
  364. data/examples/legacy/not_checked/simple/control-sizes.rb +24 -0
  365. data/examples/legacy/not_checked/simple/curve-control-points.rb +24 -0
  366. data/examples/legacy/not_checked/simple/curve.rb +26 -0
  367. data/examples/legacy/not_checked/simple/dialogs.rb +29 -0
  368. data/examples/legacy/not_checked/simple/downloader.rb +40 -0
  369. data/examples/legacy/not_checked/simple/downloader1.rb +31 -0
  370. data/examples/legacy/not_checked/simple/draw.rb +13 -0
  371. data/examples/legacy/not_checked/simple/editor.rb +28 -0
  372. data/examples/legacy/not_checked/simple/form.rb +30 -0
  373. data/examples/legacy/not_checked/simple/image.rb +21 -0
  374. data/examples/legacy/not_checked/simple/info.rb +78 -0
  375. data/examples/legacy/not_checked/simple/mask.rb +21 -0
  376. data/examples/legacy/not_checked/simple/mask2.rb +27 -0
  377. data/examples/legacy/not_checked/simple/menu.rb +31 -0
  378. data/examples/legacy/not_checked/simple/menu1.rb +35 -0
  379. data/examples/legacy/not_checked/simple/slide.rb +45 -0
  380. data/examples/legacy/not_checked/simple/sphere.rb +28 -0
  381. data/examples/legacy/not_checked/superleg.rb +244 -0
  382. data/examples/legacy/working/shoes-contrib/basic/a-poem.rb +24 -0
  383. data/examples/legacy/working/shoes-contrib/basic/basic-blocks-instances.rb +7 -0
  384. data/examples/legacy/working/shoes-contrib/basic/basic-blocks.rb +7 -0
  385. data/examples/legacy/working/shoes-contrib/basic/basic-slot.rb +8 -0
  386. data/examples/legacy/working/shoes-contrib/basic/intro.rb +20 -0
  387. data/examples/legacy/working/shoes-contrib/basic/two-column.rb +12 -0
  388. data/examples/legacy/working/shoes-contrib/elements/edit_box.rb +6 -0
  389. data/examples/legacy/working/shoes-contrib/kernel/alert.rb +3 -0
  390. data/examples/legacy/working/simple/calc.rb +71 -0
  391. data/examples/legacy/working/simple/sqlite3.rb +27 -0
  392. data/examples/legacy/working/simple/timer.rb +13 -0
  393. data/examples/line.rb +5 -0
  394. data/examples/link.rb +20 -0
  395. data/examples/list_box.rb +8 -0
  396. data/examples/local_fonts.rb +4 -0
  397. data/examples/local_images.rb +4 -0
  398. data/examples/motion_events.rb +20 -0
  399. data/examples/para/collection_of_arguments.rb +9 -0
  400. data/examples/para/hello_world.rb +5 -0
  401. data/examples/para/hide_and_show.rb +9 -0
  402. data/examples/para/rainbow.rb +11 -0
  403. data/examples/para/rainbow_2.rb +11 -0
  404. data/examples/para/sizes.rb +11 -0
  405. data/examples/para/sizes_2.rb +12 -0
  406. data/examples/para/strong.rb +3 -0
  407. data/examples/para_text_widgets.rb +4 -0
  408. data/examples/parse_xl_funnies.rb +58 -0
  409. data/examples/pirate.png +0 -0
  410. data/examples/raw_flow.rb +11 -0
  411. data/examples/ruby_racer.rb +50 -0
  412. data/examples/selfitude.rb +18 -0
  413. data/examples/shapes/arc.rb +8 -0
  414. data/examples/shapes/shapes.rb +8 -0
  415. data/examples/shapes/shapes_fill.rb +10 -0
  416. data/examples/shapes/star.rb +5 -0
  417. data/examples/shoes_school.rb +66 -0
  418. data/examples/shoes_splorer.rb +150 -0
  419. data/examples/simple_slides.rb +73 -0
  420. data/examples/skip_ci/parrot.rb +22 -0
  421. data/examples/skip_ci/say.rb +20 -0
  422. data/examples/sleepless.rb +26 -0
  423. data/examples/slots.rb +10 -0
  424. data/examples/spacing.rb +18 -0
  425. data/examples/span.rb +6 -0
  426. data/examples/stack/background.rb +35 -0
  427. data/examples/stack/border.rb +11 -0
  428. data/examples/stack/gradients.rb +6 -0
  429. data/examples/stack/raw_stack.rb +8 -0
  430. data/examples/stack/stack.rb +27 -0
  431. data/examples/text_change.rb +4 -0
  432. data/examples/text_sizes.rb +10 -0
  433. data/examples/timmy.rb +109 -0
  434. data/examples/title_and_resize.rb +3 -0
  435. data/examples/video.rb +10 -0
  436. data/exe/scarpe +107 -0
  437. data/fonts/Pacifico.ttf +0 -0
  438. data/lib/scarpe/alert.rb +19 -0
  439. data/lib/scarpe/arc.rb +49 -0
  440. data/lib/scarpe/background.rb +14 -0
  441. data/lib/scarpe/base64.rb +27 -0
  442. data/lib/scarpe/border.rb +16 -0
  443. data/lib/scarpe/button.rb +35 -0
  444. data/lib/scarpe/cats_cradle.rb +255 -0
  445. data/lib/scarpe/colors.rb +215 -0
  446. data/lib/scarpe/display_service.rb +185 -0
  447. data/lib/scarpe/document_root.rb +20 -0
  448. data/lib/scarpe/download.rb +123 -0
  449. data/lib/scarpe/edit_box.rb +29 -0
  450. data/lib/scarpe/edit_line.rb +25 -0
  451. data/lib/scarpe/fill.rb +23 -0
  452. data/lib/scarpe/flow.rb +18 -0
  453. data/lib/scarpe/font.rb +14 -0
  454. data/lib/scarpe/glibui/README.md +34 -0
  455. data/lib/scarpe/glibui/alert.rb +65 -0
  456. data/lib/scarpe/glibui/app.rb +27 -0
  457. data/lib/scarpe/glibui/background.rb +18 -0
  458. data/lib/scarpe/glibui/border.rb +22 -0
  459. data/lib/scarpe/glibui/button.rb +38 -0
  460. data/lib/scarpe/glibui/dimensions.rb +22 -0
  461. data/lib/scarpe/glibui/document_root.rb +33 -0
  462. data/lib/scarpe/glibui/edit_box.rb +44 -0
  463. data/lib/scarpe/glibui/edit_line.rb +43 -0
  464. data/lib/scarpe/glibui/flow.rb +33 -0
  465. data/lib/scarpe/glibui/html.rb +77 -0
  466. data/lib/scarpe/glibui/image.rb +36 -0
  467. data/lib/scarpe/glibui/link.rb +29 -0
  468. data/lib/scarpe/glibui/local_display.rb +62 -0
  469. data/lib/scarpe/glibui/para.rb +84 -0
  470. data/lib/scarpe/glibui/spacing.rb +41 -0
  471. data/lib/scarpe/glibui/stack.rb +33 -0
  472. data/lib/scarpe/glibui/text_widget.rb +30 -0
  473. data/lib/scarpe/glibui/widget.rb +81 -0
  474. data/lib/scarpe/glibui.rb +29 -0
  475. data/lib/scarpe/image.rb +35 -0
  476. data/lib/scarpe/libui/alert.rb +9 -0
  477. data/lib/scarpe/libui/button.rb +18 -0
  478. data/lib/scarpe/libui/colors.rb +157 -0
  479. data/lib/scarpe/libui/core.rb +66 -0
  480. data/lib/scarpe/libui/flow.rb +16 -0
  481. data/lib/scarpe/libui/libui.rb +45 -0
  482. data/lib/scarpe/libui/notepad.md +26 -0
  483. data/lib/scarpe/libui/para.rb +154 -0
  484. data/lib/scarpe/libui/stack.rb +34 -0
  485. data/lib/scarpe/line.rb +25 -0
  486. data/lib/scarpe/link.rb +25 -0
  487. data/lib/scarpe/list_box.rb +25 -0
  488. data/lib/scarpe/logger.rb +159 -0
  489. data/lib/scarpe/para.rb +92 -0
  490. data/lib/scarpe/promises.rb +405 -0
  491. data/lib/scarpe/shape.rb +20 -0
  492. data/lib/scarpe/slot.rb +7 -0
  493. data/lib/scarpe/spacing.rb +9 -0
  494. data/lib/scarpe/span.rb +26 -0
  495. data/lib/scarpe/stack.rb +20 -0
  496. data/lib/scarpe/star.rb +47 -0
  497. data/lib/scarpe/subscription_item.rb +60 -0
  498. data/lib/scarpe/unit_test_helpers.rb +236 -0
  499. data/lib/scarpe/version.rb +5 -0
  500. data/lib/scarpe/video.rb +15 -0
  501. data/lib/scarpe/widgets.rb +35 -0
  502. data/lib/scarpe/wv/alert.rb +65 -0
  503. data/lib/scarpe/wv/app.rb +104 -0
  504. data/lib/scarpe/wv/arc.rb +57 -0
  505. data/lib/scarpe/wv/background.rb +27 -0
  506. data/lib/scarpe/wv/border.rb +24 -0
  507. data/lib/scarpe/wv/button.rb +50 -0
  508. data/lib/scarpe/wv/control_interface.rb +147 -0
  509. data/lib/scarpe/wv/control_interface_test.rb +234 -0
  510. data/lib/scarpe/wv/dimensions.rb +22 -0
  511. data/lib/scarpe/wv/document_root.rb +8 -0
  512. data/lib/scarpe/wv/edit_box.rb +44 -0
  513. data/lib/scarpe/wv/edit_line.rb +43 -0
  514. data/lib/scarpe/wv/fill.rb +30 -0
  515. data/lib/scarpe/wv/flow.rb +24 -0
  516. data/lib/scarpe/wv/font.rb +36 -0
  517. data/lib/scarpe/wv/html.rb +108 -0
  518. data/lib/scarpe/wv/image.rb +41 -0
  519. data/lib/scarpe/wv/line.rb +38 -0
  520. data/lib/scarpe/wv/link.rb +29 -0
  521. data/lib/scarpe/wv/list_box.rb +50 -0
  522. data/lib/scarpe/wv/para.rb +90 -0
  523. data/lib/scarpe/wv/shape.rb +35 -0
  524. data/lib/scarpe/wv/shape_helper.rb +44 -0
  525. data/lib/scarpe/wv/slot.rb +81 -0
  526. data/lib/scarpe/wv/spacing.rb +41 -0
  527. data/lib/scarpe/wv/span.rb +66 -0
  528. data/lib/scarpe/wv/stack.rb +24 -0
  529. data/lib/scarpe/wv/star.rb +64 -0
  530. data/lib/scarpe/wv/subscription_item.rb +50 -0
  531. data/lib/scarpe/wv/text_widget.rb +30 -0
  532. data/lib/scarpe/wv/video.rb +42 -0
  533. data/lib/scarpe/wv/web_wrangler.rb +683 -0
  534. data/lib/scarpe/wv/webview_local_display.rb +73 -0
  535. data/lib/scarpe/wv/webview_relay_display.rb +185 -0
  536. data/lib/scarpe/wv/widget.rb +185 -0
  537. data/lib/scarpe/wv/wv_display_worker.rb +65 -0
  538. data/lib/scarpe/wv.rb +43 -0
  539. data/lib/scarpe/wv_local.rb +6 -0
  540. data/lib/scarpe/wv_relay.rb +6 -0
  541. data/lib/scarpe.rb +29 -0
  542. data/lib/shoes/app.rb +187 -0
  543. data/lib/shoes/constants.rb +26 -0
  544. data/lib/shoes/text_widget.rb +52 -0
  545. data/lib/shoes/widget.rb +209 -0
  546. data/lib/shoes.rb +65 -0
  547. data/logger/debug_web_wrangler.json +4 -0
  548. data/logger/scarpe_wv_test.json +4 -0
  549. data/scarpe-0.2.0.gem +0 -0
  550. data/scarpe.gemspec +44 -0
  551. data/scarpegen.rb +193 -0
  552. data/sig/scarpe.rbs +4 -0
  553. data/templates/basic_class_template.erb +38 -0
  554. data/templates/class_template_with_event_bind.erb +27 -0
  555. data/templates/class_template_with_shapes.erb +43 -0
  556. data/templates/example_template.erb +3 -0
  557. data/templates/module_template.erb +12 -0
  558. data/templates/webview_template.erb +27 -0
  559. metadata +606 -0
@@ -0,0 +1,478 @@
1
+ # downloaded from http://github.com/aanand/1901
2
+ require_relative 'feepogram'
3
+
4
+ bloops = Bloops.new
5
+ bloops.tempo = 320
6
+
7
+ song = Feepogram.new(bloops) do
8
+ sound :hihat, Bloops::NOISE do |s|
9
+ s.punch = 0.5
10
+ s.sustain = 0.05
11
+ s.decay = 0.1
12
+ end
13
+
14
+ sound :kick, Bloops::SINE do |s|
15
+ s.volume = 0.95
16
+ s.slide = -0.4
17
+ end
18
+
19
+ sound :short_kick, Bloops::SINE do |s|
20
+ s.volume = 0.5
21
+ s.slide = -0.4
22
+ end
23
+
24
+ sound :snare, Bloops::NOISE do |s|
25
+ s.volume = 0.9
26
+ s.sustain = 0.0
27
+ s.decay = 0.3
28
+ end
29
+
30
+ sound :cymbal, Bloops::NOISE do |s|
31
+ s.punch = 0.25
32
+ s.volume = 0.25
33
+ end
34
+
35
+ sound :bass, Bloops::SAWTOOTH do |s|
36
+ s.decay = 0.0
37
+ end
38
+
39
+ 2.times do |i|
40
+ sound "high_guitar_#{i+1}", Bloops::SINE do |s|
41
+ s.sustain = 0.05
42
+ s.decay = 0.35
43
+ end
44
+ end
45
+
46
+ 5.times do |i|
47
+ sound "guitar_#{i+1}", Bloops::SQUARE do |s|
48
+ s.punch = 0.1
49
+ s.decay = 0.0
50
+ end
51
+ end
52
+
53
+ sound :bwoo, Bloops::SQUARE do |s|
54
+ s.volume = 0.4
55
+ s.sustain = 1.0
56
+ s.decay = 0.0
57
+ end
58
+
59
+ sound :voice, Bloops::SAWTOOTH do |s|
60
+ s.punch = 0.4
61
+ s.sustain = 0.4
62
+ s.decay = 0.0
63
+ end
64
+
65
+ sound :heyyy, Bloops::SAWTOOTH do |s|
66
+ s.volume = 0.7
67
+ s.punch = 0.0
68
+ s.sustain = 0.3
69
+ s.decay = 0.0
70
+ end
71
+
72
+ # initialize octaves
73
+ def setup
74
+ @tracks[:snare] << " + "
75
+ end
76
+
77
+ def hihat_line
78
+ hihat " e6 " * 8 * 4
79
+ end
80
+
81
+ def drum_verse
82
+ kick " c 4 4 4 c 4 4 4 " * 4
83
+ snare " 4 4 c 4 4 4 c 4 " * 4
84
+ end
85
+
86
+ def high_guitar_line_1
87
+ high_guitar_1 " e5 " * 8 * 4
88
+
89
+ high_guitar_2 %{
90
+ g5 g5 g5 g5 g5 g5 g5 g5
91
+ g5 a5 a5 a5 a5 a5 a5 a5
92
+ g5 g5 g5 g5 g5 g5 g5 g5
93
+ g5 g5 g5 g5 g5 g5 g5 g5
94
+ }
95
+ end
96
+
97
+ def high_guitar_line_2
98
+ high_guitar_1 " c5 " * 8 * 4
99
+
100
+ high_guitar_2 %{
101
+ e5 e5 e5 e5 e5 e5 e5 e5
102
+ e5 g5 g5 g5 g5 g5 g5 g5
103
+ e5 e5 e5 e5 e5 e5 e5 e5
104
+ e5 e5 e5 e5 e5 e5 e5 e5
105
+ }
106
+ end
107
+
108
+ def bass_verse
109
+ bass %{
110
+ 4 4 4 f2 f2 f2 f2 f2
111
+ 4 4 4 a1 a1 a1 a1 a1
112
+ 4 4 4 c2 c2 c2 c2 c2
113
+ 4 4 4 a1 a1 a1 a1 a1
114
+ }
115
+ end
116
+
117
+ def bass_verse_with_leadout
118
+ bass %{
119
+ 4 4 4 f2 f2 f2 f2 f2
120
+ 4 4 4 a1 a1 a1 a1 a1
121
+ 4 4 4 c2 c2 c2 c2 c2
122
+ 4 4 4 c2 c2 a1 a1 a1
123
+ }
124
+ end
125
+
126
+ def bass_verse_with_chorus_leadout
127
+ bass %{
128
+ 4 4 4 f2 f2 f2 f2 f2
129
+ 4 4 4 a1 a1 a1 a1 a1
130
+ 4 4 4 c2 c2 c2 c2 c2
131
+ 4 4 4 c2 c2 c2 c2 c2
132
+ }
133
+ end
134
+
135
+ def guitar_verse
136
+ guitar_1 %{
137
+ 4 4 4 a4 a4 a4 a4 a4
138
+ 4 4 4 g4 g4 g4 g4 g4
139
+ 4 4 4 g4 g4 g4 g4 g4
140
+ 4 4 4 g4 g4 g4 g4 g4
141
+ }
142
+
143
+ guitar_2 %{
144
+ 4 4 4 f4 f4 f4 f4 f4
145
+ 4 4 4 e4 e4 e4 e4 e4
146
+ 4 4 4 e4 e4 e4 e4 e4
147
+ 4 4 4 e4 e4 e4 e4 e4
148
+ }
149
+
150
+ guitar_3 %{
151
+ 4 4 4 d4 d4 d4 d4 d4
152
+ 4 4 4 c4 c4 c4 c4 c4
153
+ 4 4 4 c4 c4 c4 c4 c4
154
+ 4 4 4 c4 c4 c4 c4 c4
155
+ }
156
+ end
157
+
158
+ def guitar_chorus_leadout
159
+ guitar_1 %{
160
+ 4 4 4 4 4 4 4 4
161
+ 4 4 4 4 4 4 4 4
162
+ 4 4 4 4 4 4 4 4
163
+ 4 4 4 g4 g4 g4 g4 g4
164
+ }
165
+
166
+ guitar_2 %{
167
+ 4 4 4 4 4 4 4 4
168
+ 4 4 4 4 4 4 4 4
169
+ 4 4 4 4 4 4 4 4
170
+ 4 4 4 e4 e4 e4 e4 e4
171
+ }
172
+
173
+ guitar_3 %{
174
+ 4 4 4 4 4 4 4 4
175
+ 4 4 4 4 4 4 4 4
176
+ 4 4 4 4 4 4 4 4
177
+ 4 4 4 c4 c4 c4 c4 c4
178
+ }
179
+ end
180
+
181
+ def guitar_chorus
182
+ guitar_1 %{
183
+ a4 8:a4 8:a4 a4 g4 g4 g4 a4 8:a4 8:a4
184
+ a4 g4 g4 g4 a4 a4 g4 g4
185
+ a4 8:a4 8:a4 a4 g4 g4 g4 a4 8:a4 8:a4
186
+ a4 g4 g4 g4 a4 a4 g4 g4
187
+ }
188
+
189
+ guitar_2 %{
190
+ f4 8:f4 8:f4 f4 e4 e4 e4 f4 8:f4 8:f4
191
+ f4 e4 e4 e4 f4 f4 e4 e4
192
+ f4 8:f4 8:f4 f4 e4 e4 e4 f4 8:f4 8:f4
193
+ f4 e4 e4 e4 f4 f4 e4 e4
194
+ }
195
+
196
+ guitar_3 %{
197
+ d4 8:d4 8:d4 d4 c4 c4 c4 d4 8:d4 8:d4
198
+ d4 c4 c4 c4 d4 d4 c4 c4
199
+ d4 8:d4 8:d4 d4 c4 c4 c4 d4 8:d4 8:d4
200
+ d4 c4 c4 c4 d4 d4 c4 c4
201
+ }
202
+ end
203
+
204
+ def voice_post_chorus
205
+ voice %{
206
+ 4 4 2:g[sustain:1.0] c[sustain:0.3] 4 2:g[sustain:1.0]
207
+ c 4 2:g[sustain:1.0] c[sustain:0.3] 4 2:g[sustain:1.0]
208
+ 2:e[sustain:1.0] 2 1
209
+ 1 1
210
+ }
211
+ end
212
+
213
+ def intro
214
+ phrase do
215
+ hihat_line
216
+ bass_verse
217
+ high_guitar_line_1
218
+ end
219
+
220
+ phrase do
221
+ hihat_line
222
+ bass_verse
223
+ high_guitar_line_2
224
+ end
225
+ end
226
+
227
+ def verse_phrase_1
228
+ drum_verse
229
+ bass_verse
230
+ guitar_verse
231
+ end
232
+
233
+ def verse_phrase_2
234
+ drum_verse
235
+ bass_verse_with_leadout
236
+ guitar_verse
237
+ end
238
+
239
+ def verse_phrase_3
240
+ hihat_line
241
+ kick " c 4 4 4 c 4 4 c " * 4
242
+ snare " 4 4 c 4 4 c 4 4 " * 4
243
+ bass_verse
244
+ high_guitar_line_1
245
+ end
246
+
247
+ def verse_phrase_4
248
+ hihat_line
249
+ kick " c 4 4 4 c 4 4 c " * 4
250
+ snare " 4 4 c 4 4 c 4 4 " * 4
251
+ bass_verse_with_chorus_leadout
252
+ guitar_chorus_leadout
253
+ high_guitar_line_2
254
+ end
255
+
256
+ def verse_instrumental
257
+ 2.times do
258
+ phrase do
259
+ verse_phrase_1
260
+ end
261
+ end
262
+ end
263
+
264
+ def verse_1
265
+ phrase do
266
+ verse_phrase_1
267
+
268
+ voice %{
269
+ 4 4 4 4 g[sustain:0.3] 4 g 4
270
+ c c g 4 g 4 c c
271
+ c g 4 4 4 4 4 4
272
+ 4 4 4 4 4 4 4 4
273
+ }
274
+ end
275
+
276
+ phrase do
277
+ verse_phrase_2
278
+
279
+ voice %{
280
+ e 4 e 4 e 4 e d
281
+ e e e 4 e e g a
282
+ e 4 4 4 4 4 4 4
283
+ 4 4 4 4 4 4 4 4
284
+ }
285
+ end
286
+ end
287
+
288
+ def verse_2
289
+ phrase do
290
+ verse_phrase_3
291
+
292
+ voice %{
293
+ e 4 e 4 e e e e
294
+ c c d 4 d d d c
295
+ e 4 e d c - g + c d
296
+ d d d d d - a a a +
297
+ }
298
+ end
299
+
300
+ phrase do
301
+ verse_phrase_4
302
+
303
+ voice %{
304
+ 4 4 e 4 e e e e
305
+ c c d 4 d d g e
306
+ e 4 4 4 4 4 4 4
307
+ 4 4 4 4 4 4 4 4
308
+ }
309
+ end
310
+ end
311
+
312
+ def chorus_phrase_1
313
+ kick " c 4 4 c 4 4 c 4 " * 4
314
+ short_kick " 4 8:c 8:c c 4 8:c 8:c c 4 c " * 4
315
+ snare %{
316
+ 4 4 4 4 4 4 c 4
317
+ 4 4 4 4 4 c 4 c
318
+ 4 4 4 4 4 4 c 4
319
+ 4 4 4 4 4 c 4 c
320
+ }
321
+
322
+ bass " c2 " * 32
323
+
324
+ guitar_chorus
325
+ end
326
+
327
+ def chorus_phrase_2
328
+ kick " c 4 4 4 " * 8
329
+ snare %{
330
+ 4 4 c 4 4 4 c 4
331
+ 4 4 c 4 4 4 c 4
332
+ 4 4 c 4 4 4 c 4
333
+ 4 4 c 4 4 c 4 c
334
+ }
335
+ cymbal " 2:c6 " * 16
336
+
337
+ bass " g2 " * 32
338
+
339
+ guitar_chorus
340
+ end
341
+
342
+ def heyyy_chorus
343
+ heyyy %{
344
+ 1 1
345
+ 1 1
346
+ 1 1
347
+ 3:g #{ " 24:f 24:f# 4:g " * 5 }
348
+ }
349
+ end
350
+
351
+ def chorus_1
352
+ phrase do
353
+ chorus_phrase_1
354
+
355
+ voice %{
356
+ 4 4 4 4 4 - g + c c
357
+ c c c c c 4 - a g
358
+ 4 4 4 4 4 4 2:g[sustain:2.0] +
359
+ 1 1
360
+ }
361
+
362
+ heyyy_chorus
363
+ end
364
+
365
+ phrase do
366
+ chorus_phrase_2
367
+
368
+ voice %{
369
+ 4 4 4 4 4 4 2:g
370
+ g[sustain:0.4] e e g g e e 4
371
+ 4 4 4 4 4 4 e d
372
+ e e e e e f e 4
373
+ }
374
+ end
375
+ end
376
+
377
+ def chorus_2
378
+ phrase do
379
+ chorus_phrase_1
380
+
381
+ voice %{
382
+ 4 4 4 4 4 - g + c c
383
+ c c c c c 4 - a + 2:e[sustain:2.0]
384
+ 4 4 4 4 4 - 2:g +
385
+ 1 1
386
+ }
387
+
388
+ heyyy_chorus
389
+ end
390
+
391
+ phrase do
392
+ chorus_phrase_2
393
+
394
+ bwoo %{
395
+ 16:c 16:c# 8:d 4:d 2:d 1:d
396
+ 1:d 1:d +
397
+ 16:c 16:c# 8:d 4:d 2:d 1:d
398
+ 1:d 1:d[sustain:0.5] -
399
+ }
400
+
401
+ voice %{
402
+ 4 4 4 4 4 4 2:g[sustain:0.4]
403
+ g[sustain:0.3] e e g g e e 4
404
+ 4 4 4 4 4 c c c
405
+ c c c[sustain:0.1] c c[sustain:0.3] 4 2:e
406
+ }
407
+ end
408
+ end
409
+
410
+ def post_chorus
411
+ phrase do
412
+ drum_verse
413
+ bass_verse
414
+ guitar_verse
415
+ voice_post_chorus
416
+ end
417
+
418
+ phrase do
419
+ drum_verse
420
+ bass_verse_with_chorus_leadout
421
+ guitar_verse
422
+ voice_post_chorus
423
+ end
424
+ end
425
+
426
+ def outro_1
427
+ phrase do
428
+ hihat_line
429
+ kick " c 4 4 c 4 4 c 4 " * 4
430
+ bass " c2 " * 32
431
+
432
+ guitar_4 %{
433
+ 3:c 3:c 3:c 3:c 3:c 3:c
434
+ c c c c c c g g
435
+ 3:c 3:c 3:c 3:c 3:c 3:c
436
+ c c c c c g g g
437
+ }
438
+ end
439
+ end
440
+
441
+ def outro_2
442
+ phrase do
443
+ drum_verse
444
+ bass " c2 " * 32
445
+ guitar_chorus
446
+
447
+ guitar_4 " 3:g " * 24
448
+
449
+ guitar_5 %{ +
450
+ c d e 2:d d c d
451
+ e 2:d d c d e d
452
+ c d e 2:d d c d
453
+ e 2:d d c d e d
454
+ }
455
+ end
456
+ end
457
+
458
+ def the_end
459
+ phrase do
460
+ bass "c2"
461
+ end
462
+ end
463
+
464
+ setup
465
+
466
+ intro
467
+ verse_instrumental
468
+ verse_1
469
+ verse_2
470
+ chorus_1
471
+ chorus_2
472
+ post_chorus
473
+ outro_1
474
+ outro_2
475
+ the_end
476
+ end
477
+
478
+ song.play
@@ -0,0 +1,64 @@
1
+ require("bloops")
2
+ require 'singleton'
3
+
4
+ class PongSounds
5
+ include Singleton
6
+
7
+ class << self
8
+ def bloops
9
+ @bloops ||= Bloops.new
10
+ end
11
+
12
+ def sounds
13
+ @sounds ||= begin
14
+ @hit = bloops.sound Bloops::SQUARE
15
+ @hit.volume = 0.4
16
+ @hit.sustain = 0.02
17
+ @hit.attack = 0.02
18
+ @hit.decay = 0.1
19
+ @hit.punch = 0.1
20
+
21
+ @score = bloops.sound Bloops::SAWTOOTH
22
+ @score.volume = 0.2
23
+ @score.sustain = 0.25
24
+ @score.attack = 0.02
25
+ @score.decay = 0.1
26
+ @score.punch = 0.5
27
+ @score.arp = 0.1
28
+ @score.phase = 0.1
29
+
30
+ @bounce = bloops.sound Bloops::SINE
31
+ @bounce.volume = 0.5
32
+ @bounce.sustain = 0.1
33
+ @bounce.attack = 0.02
34
+ @bounce.decay = 0.1
35
+ @bounce.punch = 0.5
36
+ @bounce.arp = 0.1
37
+ @bounce.phase = 0.1
38
+
39
+ {:hit => [@hit, "32 + A#"], :score => [@score, "16 - D#"], :bounce => [@bounce, "16 - F#"]}
40
+ end
41
+
42
+ @sounds
43
+ end
44
+
45
+ def play(name)
46
+ Thread.new do
47
+ bloops.tune *sounds[name]
48
+ bloops.play
49
+ sleep 0.1 until bloops.stopped?
50
+ bloops.clear
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ Shoes.app do
57
+ button("play 'em all") do
58
+ [:hit, :score, :bounce].each { |n|
59
+ PongSounds.play(n)
60
+ sleep 1
61
+ }
62
+ end
63
+ end
64
+
@@ -0,0 +1,36 @@
1
+ require 'bloops'
2
+
3
+ # the bloops o' phone
4
+ b = Bloops.new
5
+ b.tempo = 320
6
+
7
+ # melodious
8
+ s1 = b.sound Bloops::SQUARE
9
+ s1.punch = 0.5
10
+ s1.sustain = 0.4
11
+ s1.decay = 0.2
12
+ s1.arp = 0.4
13
+ s1.aspeed = 0.6
14
+ s1.repeat = 0.6
15
+ s1.phase = 0.2
16
+ s1.psweep = 0.2
17
+
18
+ # beats
19
+ s2 = b.sound Bloops::NOISE
20
+ s2.punch = 0.5
21
+ s2.sustain = 0.2
22
+ s2.decay = 0.4
23
+ s2.slide = -0.4
24
+ s2.phase = 0.2
25
+ s2.psweep = 0.2
26
+
27
+ # the tracks
28
+ b.tune s1, "f#5 c6 e4 b6 g5 d6 4 f#5 e5 c5 b6 c6 d6 4 "
29
+ b.tune s2, "4 c6 4 b5 4 4 e4 4 c6 4 b5 4 4 e4"
30
+
31
+ # and away we go
32
+ b.play
33
+ sleep 1 while !b.stopped?
34
+
35
+ b.play
36
+ sleep 1 while !b.stopped?
@@ -0,0 +1,41 @@
1
+ require 'bloops'
2
+
3
+ # the song object
4
+ b = Bloops.new
5
+ b.tempo = 320
6
+
7
+ # an instrument
8
+ saw = b.sound Bloops::SAWTOOTH
9
+ saw.test
10
+
11
+ # assign a track to the song
12
+ b.tune saw, "c5 c6 b4 b5 d5 d6 e5 e6"
13
+
14
+ # make it go
15
+ b.play
16
+ sleep 1 while !b.stopped?
17
+
18
+ # a percussion
19
+ beat = b.sound Bloops::NOISE
20
+ beat.repeat = 0.6
21
+ beat2 = b.sound Bloops::NOISE
22
+ beat2.repeat = 0.2
23
+ beat3 = b.sound Bloops::SQUARE
24
+ beat3.sustain = 0.25
25
+ beat3.decay = 0.2
26
+ beat3.slide = 0.2
27
+ beat3.square = 0.3
28
+ beat3.vibe = 0.25
29
+ beat3.vspeed = 0.25
30
+
31
+ # assign a track to the song
32
+ b.tune beat, "4 4 4 b4 4 d5 4 e5"
33
+ b.tune beat2, "c2 4 c2 4 c2 4 c2 4"
34
+ b.tune beat3, "4 4 4 4 4 c2 c5 4"
35
+
36
+ # make it go
37
+ loop do
38
+ b.play
39
+ saw.test
40
+ sleep 0.02 while !b.stopped?
41
+ end
@@ -0,0 +1,31 @@
1
+
2
+ # the bloops o' phone
3
+ b = Bloops.new
4
+ b.tempo = 320
5
+
6
+ # melodious
7
+ s1 = b.sound Bloops::SQUARE
8
+ s1.punch = 0.5
9
+ s1.sustain = 0.4
10
+ s1.decay = 0.2
11
+ s1.arp = 0.4
12
+ s1.aspeed = 0.6
13
+ s1.repeat = 0.6
14
+ s1.phase = 0.2
15
+ s1.psweep = 0.2
16
+
17
+ # beats
18
+ s2 = b.sound Bloops::NOISE
19
+ s2.punch = 0.5
20
+ s2.sustain = 0.2
21
+ s2.decay = 0.4
22
+ s2.slide = -0.4
23
+ s2.phase = 0.2
24
+ s2.psweep = 0.2
25
+
26
+ # the tracks
27
+ b.tune s1, "f#5 c6 e4 b6 g5 d6 4 f#5 e5 c5 b6 c6 d6 4 "
28
+ b.tune s2, "4 c6 4 b5 4 4 e4 4 c6 4 b5 4 4 e4"
29
+
30
+ b.play
31
+
@@ -0,0 +1,67 @@
1
+ # downloaded from http://github.com/aanand/feepogram
2
+ class Feepogram
3
+ attr_reader :bloops, :length
4
+
5
+ def initialize(bloops, &block)
6
+ @bloops = bloops
7
+ @length = 0
8
+
9
+ @sounds = {}
10
+ @tracks = {}
11
+ @track_lengths = {}
12
+
13
+ instance_eval(&block)
14
+ end
15
+
16
+ def metaclass
17
+ class << self; self; end
18
+ end
19
+
20
+ def metaclass_eval(&block)
21
+ metaclass.class_eval(&block)
22
+ end
23
+
24
+ def sound(name, base, &block)
25
+ name = name.to_sym
26
+
27
+ sound = bloops.sound(base)
28
+
29
+ @sounds[name] = sound
30
+ @tracks[name] = ""
31
+ @track_lengths[name] = 0
32
+
33
+ block.call(sound)
34
+
35
+ instance_variable_set("@#{name}", sound)
36
+
37
+ metaclass_eval do
38
+ define_method(name) do |notes|
39
+ dub(name, notes)
40
+ end
41
+ end
42
+ end
43
+
44
+ def phrase(&block)
45
+ instance_eval(&block)
46
+ @length += 32
47
+ end
48
+
49
+ def dub sound_name, notes
50
+ catchup = @length - @track_lengths[sound_name]
51
+
52
+ @tracks[sound_name] << ("4 " * catchup)
53
+ @tracks[sound_name] << notes
54
+ @track_lengths[sound_name] = length+32
55
+ end
56
+
57
+ def play
58
+ @tracks.each do |sound_name, notes|
59
+ bloops.tune @sounds[sound_name], notes
60
+
61
+ #puts "#{sound_name}: #{notes.gsub(/\s+/, ' ')}"
62
+ end
63
+
64
+ bloops.play
65
+ sleep 1 while !bloops.stopped?
66
+ end
67
+ end
@@ -0,0 +1,14 @@
1
+
2
+ b = Bloops.new
3
+ b.tempo = 180
4
+
5
+
6
+ sound = b.sound Bloops::SQUARE
7
+ sound.volume = 0.4
8
+ sound.sustain = 0.3
9
+ sound.attack = 0.1
10
+ sound.decay = 0.3
11
+
12
+ b.tune sound, "32 + C E F# 8:A G E C - 8:A 8:F# 8:F# 8:F# 2:G"
13
+
14
+ b.play