scarpe 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +80 -9
- data/.ruby-version +1 -0
- data/.vscode/extensions.json +5 -0
- data/.yardopts +3 -0
- data/CHANGELOG.md +14 -0
- data/CONTRIBUTING.md +20 -0
- data/Gemfile +14 -2
- data/README.md +138 -18
- data/Rakefile +2 -3
- data/dev.yml +7 -0
- data/docs/static/PKGBUILD +47 -0
- data/docs/static/Shoes.icns +0 -0
- data/docs/static/avatar.png +0 -0
- data/docs/static/code_highlighter.js +188 -0
- data/docs/static/code_highlighter_ruby.js +26 -0
- data/docs/static/icon-debug.png +0 -0
- data/docs/static/icon-error.png +0 -0
- data/docs/static/icon-info.png +0 -0
- data/docs/static/icon-warn.png +0 -0
- data/docs/static/listbox_button1.png +0 -0
- data/docs/static/listbox_button2.png +0 -0
- data/docs/static/man-app.png +0 -0
- data/docs/static/man-builds.png +0 -0
- data/docs/static/man-builds1.png +0 -0
- data/docs/static/man-editor-notepad.png +0 -0
- data/docs/static/man-editor-osx.png +0 -0
- data/docs/static/man-ele-background.png +0 -0
- data/docs/static/man-ele-border.png +0 -0
- data/docs/static/man-ele-button.png +0 -0
- data/docs/static/man-ele-check.png +0 -0
- data/docs/static/man-ele-editbox.png +0 -0
- data/docs/static/man-ele-editline.png +0 -0
- data/docs/static/man-ele-image.png +0 -0
- data/docs/static/man-ele-listbox.png +0 -0
- data/docs/static/man-ele-progress.png +0 -0
- data/docs/static/man-ele-radio.png +0 -0
- data/docs/static/man-ele-shape.png +0 -0
- data/docs/static/man-ele-textblock.png +0 -0
- data/docs/static/man-ele-video.png +0 -0
- data/docs/static/man-intro-dmg.png +0 -0
- data/docs/static/man-intro-exe.png +0 -0
- data/docs/static/man-look-tiger.png +0 -0
- data/docs/static/man-look-ubuntu.png +0 -0
- data/docs/static/man-look-vista.png +0 -0
- data/docs/static/man-run-osx.png +0 -0
- data/docs/static/man-run-vista.png +0 -0
- data/docs/static/man-run-xp.png +0 -0
- data/docs/static/man-shot1.png +0 -0
- data/docs/static/manual-en.txt +3529 -0
- data/docs/static/manual-ja.txt +2829 -0
- data/docs/static/manual.css +171 -0
- data/docs/static/manual.md +3528 -0
- data/docs/static/menu-corner1.png +0 -0
- data/docs/static/menu-corner2.png +0 -0
- data/docs/static/menu-gray.png +0 -0
- data/docs/static/menu-left.png +0 -0
- data/docs/static/menu-right.png +0 -0
- data/docs/static/menu-top.png +0 -0
- data/docs/static/shoes-dmg.jpg +0 -0
- data/docs/static/shoes-icon-blue.png +0 -0
- data/docs/static/shoes-icon.png +0 -0
- data/docs/static/shoes-manual-apps.gif +0 -0
- data/docs/static/shoes_main_window.png +0 -0
- data/docs/static/stripe.png +0 -0
- data/docs/static/stubs/blank.exe +0 -0
- data/docs/static/stubs/blank.hfz +0 -0
- data/docs/static/stubs/blank.run +375 -0
- data/docs/static/stubs/cocoa-install +0 -0
- data/docs/static/stubs/sh-install +49 -0
- data/docs/static/stubs/shoes-stub-inject.exe +0 -0
- data/docs/static/stubs/shoes-stub.exe +0 -0
- data/docs/static/tutor-back.png +0 -0
- data/examples/bloopsaphone/working/1901_by_Aanand_Prasad.rb +478 -0
- data/examples/bloopsaphone/working/b1.rb +64 -0
- data/examples/bloopsaphone/working/b2.rb +36 -0
- data/examples/bloopsaphone/working/bloops_test.rb +41 -0
- data/examples/bloopsaphone/working/bloopsaphone_theme_song_by_why.rb +31 -0
- data/examples/bloopsaphone/working/feepogram.rb +67 -0
- data/examples/bloopsaphone/working/simpsons_theme_song_by_why.rb +14 -0
- data/examples/bloopsaphone/working/tune_cheeky_drat.rb +210 -0
- data/examples/button.rb +6 -5
- data/examples/button_alert.rb +6 -0
- data/examples/button_go_away.rb +6 -0
- data/examples/button_with_position_and_size.rb +7 -0
- data/examples/coffee.rb +14 -0
- data/examples/download.rb +5 -0
- data/examples/edit_box.rb +10 -0
- data/examples/edit_line.rb +8 -0
- data/examples/fill.rb +25 -0
- data/examples/flow.rb +11 -0
- data/examples/fonts.rb +6 -0
- data/examples/gen.rb +140 -0
- data/examples/hello_world.rb +2 -4
- data/examples/highlander.rb +87 -0
- data/examples/image/clickable_image.rb +5 -0
- data/examples/{image.rb → image/image.rb} +2 -4
- data/examples/image/image_size.rb +7 -0
- data/examples/image/image_with_position_and_size.rb +3 -0
- data/examples/info.rb +9 -0
- data/examples/legacy/not_checked/expert/colours.rb +105 -0
- data/examples/legacy/not_checked/expert/curve-animation.rb +31 -0
- data/examples/legacy/not_checked/expert/curve-control-point.rb +51 -0
- data/examples/legacy/not_checked/expert/custom-list-box.rb +53 -0
- data/examples/legacy/not_checked/expert/definr.rb +23 -0
- data/examples/legacy/not_checked/expert/funnies.rb +56 -0
- data/examples/legacy/not_checked/expert/minesweeper.rb +267 -0
- data/examples/legacy/not_checked/expert/othello.rb +318 -0
- data/examples/legacy/not_checked/expert/pong.rb +62 -0
- data/examples/legacy/not_checked/expert/tankspank.rb +385 -0
- data/examples/legacy/not_checked/expert/tooltips.rb +45 -0
- data/examples/legacy/not_checked/expert/url.rb +37 -0
- data/examples/legacy/not_checked/expert/video-player.rb +256 -0
- data/examples/legacy/not_checked/good/_why-stories.rb +44 -0
- data/examples/legacy/not_checked/good/_why-stories.yaml +387 -0
- data/examples/legacy/not_checked/good/arc.rb +37 -0
- data/examples/legacy/not_checked/good/cardflip.rb +141 -0
- data/examples/legacy/not_checked/good/clock.rb +51 -0
- data/examples/legacy/not_checked/good/console.rb +21 -0
- data/examples/legacy/not_checked/good/follow.rb +26 -0
- data/examples/legacy/not_checked/good/image-rotate.rb +14 -0
- data/examples/legacy/not_checked/good/paris.svg +7236 -0
- data/examples/legacy/not_checked/good/path-animation.rb +46 -0
- data/examples/legacy/not_checked/good/plots.rb +100 -0
- data/examples/legacy/not_checked/good/reminder.rb +174 -0
- data/examples/legacy/not_checked/good/svgview.rb +113 -0
- data/examples/legacy/not_checked/good/vjot.rb +56 -0
- data/examples/legacy/not_checked/shoes-contrib/.gitignore +2 -0
- data/examples/legacy/not_checked/shoes-contrib/README.md +34 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/animate-ovals.rb +21 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/flowers.rb +59 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/happy-trails.rb +31 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/mice-satellites.rb +27 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/oval-motion.rb +12 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/pink-bubbles.rb +34 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/pulsate.rb +18 -0
- data/examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb +18 -0
- data/examples/legacy/not_checked/shoes-contrib/app/download-and-save.rb +11 -0
- data/examples/legacy/not_checked/shoes-contrib/app/download.rb +10 -0
- data/examples/legacy/not_checked/shoes-contrib/app/get-google.rb +11 -0
- data/examples/legacy/not_checked/shoes-contrib/app/mouse-detection.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/app/resizeable-false.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/art/bubble-bullseye.rb +23 -0
- data/examples/legacy/not_checked/shoes-contrib/art/faded.rb +17 -0
- data/examples/legacy/not_checked/shoes-contrib/art/fill-oval.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/art/mask.rb +15 -0
- data/examples/legacy/not_checked/shoes-contrib/art/oval-gradient.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/art/star-gradient.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-edit-box.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-new-window.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-image.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-shape.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/class-book.rb +43 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/class-book.yaml +387 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/clock.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/edit-stack +14 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/gradient-shoes.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb +19 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/rect-arrow.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/scribble.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/search.rb +32 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/shoes-notes.rb +16 -0
- data/examples/legacy/not_checked/shoes-contrib/basic/url-shoes-subclassing.rb +24 -0
- data/examples/legacy/not_checked/shoes-contrib/browser.rb +21 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/background-column.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/background.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/basic-fps.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/border-cat.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/button-block.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/check-mate.rb +15 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/common-styles.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/edit_box-character-count.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/edit_line-character-count.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/image-icon.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/list_box.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/phat-button.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/popup.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/progress-bar.rb +10 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/radio-dreamcast-favs.rb +17 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/timer.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/elements/width-introspec.rb +8 -0
- data/examples/legacy/not_checked/shoes-contrib/events/background-hover.rb +11 -0
- data/examples/legacy/not_checked/shoes-contrib/events/motion-detect.rb +9 -0
- data/examples/legacy/not_checked/shoes-contrib/events/pressed-key.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-funnies.rb +51 -0
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-irb.rb +112 -0
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-othello.rb +319 -0
- data/examples/legacy/not_checked/shoes-contrib/good/good-arc.rb +37 -0
- data/examples/legacy/not_checked/shoes-contrib/good/good-clock.rb +51 -0
- data/examples/legacy/not_checked/shoes-contrib/good/good-follow.rb +26 -0
- data/examples/legacy/not_checked/shoes-contrib/good/good-reminder.rb +174 -0
- data/examples/legacy/not_checked/shoes-contrib/good/good-vjot.rb +56 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_color.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_open_file.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_save_file.rb +7 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/confirm.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/debug.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/exit.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/font.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/kernel/fonts.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/manipulation/append-slot.rb +9 -0
- data/examples/legacy/not_checked/shoes-contrib/manipulation/clear-slot.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/manipulation/prepend-slot.rb +6 -0
- data/examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb +17 -0
- data/examples/legacy/not_checked/shoes-contrib/position/gutter-margin.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/position/stack-width.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-accordion.rb +75 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-shapes.rb +17 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-text.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb +23 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-bounce.rb +24 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-calc.rb +70 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-chipmunk.rb +26 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-control-sizes.rb +24 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-curve.rb +26 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb +29 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-downloader.rb +27 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-draw.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-editor.rb +28 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.rb +28 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.shy +0 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-mask.rb +21 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu.rb +31 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu1.rb +35 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-rubygems.rb +29 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-slide.rb +45 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-sphere.rb +28 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-sqlite3.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-timer.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-video.rb +13 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/alignment.rb +4 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/attachment.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/emphasis.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/gradient-angle.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/para-methods.rb +5 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/para-red-underlined.rb +3 -0
- data/examples/legacy/not_checked/shoes-contrib/styles/para-style-method.rb +4 -0
- data/examples/legacy/not_checked/shoes-dep-samples/expert-game-of-life.rb +243 -0
- data/examples/legacy/not_checked/shoes-dep-samples/expert-othello.rb +319 -0
- data/examples/legacy/not_checked/shoes-dep-samples/good-clock.rb +51 -0
- data/examples/legacy/not_checked/shoes-dep-samples/good-follow.rb +26 -0
- data/examples/legacy/not_checked/shoes-dep-samples/good-reminder.rb +174 -0
- data/examples/legacy/not_checked/shoes-dep-samples/good-vjot.rb +56 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-accordion.rb +75 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-shapes.rb +17 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-text.rb +13 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb +23 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-bounce.rb +24 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-calc.rb +70 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-chipmunk.rb +26 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-control-sizes.rb +24 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-curve.rb +26 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb +29 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-draw.rb +13 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-editor.rb +28 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-form.rb +28 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-form.shy +0 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-mask.rb +21 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-menu.rb +31 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-menu1.rb +35 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-rubygems.rb +29 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-slide.rb +45 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-sphere.rb +28 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-sqlite3.rb +13 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-timer.rb +13 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-video.rb +13 -0
- data/examples/legacy/not_checked/shoes3-tests/AnemicCinema1926marcelDuchampCut.mp4 +0 -0
- data/examples/legacy/not_checked/shoes3-tests/button/button.rb +53 -0
- data/examples/legacy/not_checked/shoes3-tests/cache/cache.rb +41 -0
- data/examples/legacy/not_checked/shoes3-tests/combo/combo.rb +24 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/bare.rb +34 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/downloader.rb +40 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/m1.rb +11 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/m2.rb +12 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/m3.rb +11 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/m4.rb +5 -0
- data/examples/legacy/not_checked/shoes3-tests/curl/typ.rb +30 -0
- data/examples/legacy/not_checked/shoes3-tests/cursor/c1.rb +21 -0
- data/examples/legacy/not_checked/shoes3-tests/decoration.rb +14 -0
- data/examples/legacy/not_checked/shoes3-tests/dialogs/ask.rb +6 -0
- data/examples/legacy/not_checked/shoes3-tests/dialogs/confirm.rb +6 -0
- data/examples/legacy/not_checked/shoes3-tests/editbox/editbox.rb +36 -0
- data/examples/legacy/not_checked/shoes3-tests/editline/editline.rb +27 -0
- data/examples/legacy/not_checked/shoes3-tests/events/button.rb +32 -0
- data/examples/legacy/not_checked/shoes3-tests/events/button.yaml +40 -0
- data/examples/legacy/not_checked/shoes3-tests/events/capture.rb +57 -0
- data/examples/legacy/not_checked/shoes3-tests/events/chipmunk.yaml +47 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event0.rb +8 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event1.rb +51 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event1.yaml +26 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event2.rb +46 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event3.rb +44 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event4.rb +65 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event5.rb +17 -0
- data/examples/legacy/not_checked/shoes3-tests/events/event6.rb +51 -0
- data/examples/legacy/not_checked/shoes3-tests/events/replay.rb +60 -0
- data/examples/legacy/not_checked/shoes3-tests/gapp/fullscreen.rb +38 -0
- data/examples/legacy/not_checked/shoes3-tests/gapp/icon.rb +56 -0
- data/examples/legacy/not_checked/shoes3-tests/gapp/mon1.rb +46 -0
- data/examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb +22 -0
- data/examples/legacy/not_checked/shoes3-tests/gapp/title1.rb +34 -0
- data/examples/legacy/not_checked/shoes3-tests/indian.m4a +0 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/event.rb +33 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/menu1.rb +8 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/menu2.rb +25 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/menu3.rb +103 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/menu4.rb +41 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/tests.txt +42 -0
- data/examples/legacy/not_checked/shoes3-tests/opacity.rb +13 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/^IRX.R +5219 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/^SPX +5219 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/cstest.rb +51 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr1.rb +73 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr2.rb +40 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr3.rb +47 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr4.rb +35 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr5.rb +31 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr6.rb +35 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/gr7.rb +37 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/grcsv.rb +219 -0
- data/examples/legacy/not_checked/shoes3-tests/plot/manual.rb +40 -0
- data/examples/legacy/not_checked/shoes3-tests/progress/progress.rb +29 -0
- data/examples/legacy/not_checked/shoes3-tests/radio/clear.rb +20 -0
- data/examples/legacy/not_checked/shoes3-tests/radio/group.rb +18 -0
- data/examples/legacy/not_checked/shoes3-tests/radio/multiple.rb +32 -0
- data/examples/legacy/not_checked/shoes3-tests/radio/nogroup.rb +9 -0
- data/examples/legacy/not_checked/shoes3-tests/simpletest.svg +14 -0
- data/examples/legacy/not_checked/shoes3-tests/spinner.rb +15 -0
- data/examples/legacy/not_checked/shoes3-tests/svg.rb +208 -0
- data/examples/legacy/not_checked/shoes3-tests/switch/switch.rb +28 -0
- data/examples/legacy/not_checked/shoes3-tests/systray/back.rb +20 -0
- data/examples/legacy/not_checked/shoes3-tests/systray/note.rb +17 -0
- data/examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb +27 -0
- data/examples/legacy/not_checked/shoes3-tests/terminal/ed.rb +65 -0
- data/examples/legacy/not_checked/shoes3-tests/terminal/el.rb +50 -0
- data/examples/legacy/not_checked/shoes3-tests/terminal/logattr.rb +31 -0
- data/examples/legacy/not_checked/shoes3-tests/tests_color.rb +138 -0
- data/examples/legacy/not_checked/shoes3-tests/tests_svg.rb +228 -0
- data/examples/legacy/not_checked/shoes3-tests/tests_video_vlc.rb +186 -0
- data/examples/legacy/not_checked/shoes3-tests/tooltips.rb +20 -0
- data/examples/legacy/not_checked/shoes3-tests/video_vlc.rb +242 -0
- data/examples/legacy/not_checked/shoes3-tests/wheel/wheel1.rb +21 -0
- data/examples/legacy/not_checked/simple/accordion.rb +81 -0
- data/examples/legacy/not_checked/simple/anim-shapes.rb +17 -0
- data/examples/legacy/not_checked/simple/anim-text.rb +13 -0
- data/examples/legacy/not_checked/simple/arc.rb +23 -0
- data/examples/legacy/not_checked/simple/bounce.rb +24 -0
- data/examples/legacy/not_checked/simple/chipmunk.rb +26 -0
- data/examples/legacy/not_checked/simple/control-sizes.rb +24 -0
- data/examples/legacy/not_checked/simple/curve-control-points.rb +24 -0
- data/examples/legacy/not_checked/simple/curve.rb +26 -0
- data/examples/legacy/not_checked/simple/dialogs.rb +29 -0
- data/examples/legacy/not_checked/simple/downloader.rb +40 -0
- data/examples/legacy/not_checked/simple/downloader1.rb +31 -0
- data/examples/legacy/not_checked/simple/draw.rb +13 -0
- data/examples/legacy/not_checked/simple/editor.rb +28 -0
- data/examples/legacy/not_checked/simple/form.rb +30 -0
- data/examples/legacy/not_checked/simple/image.rb +21 -0
- data/examples/legacy/not_checked/simple/info.rb +78 -0
- data/examples/legacy/not_checked/simple/mask.rb +21 -0
- data/examples/legacy/not_checked/simple/mask2.rb +27 -0
- data/examples/legacy/not_checked/simple/menu.rb +31 -0
- data/examples/legacy/not_checked/simple/menu1.rb +35 -0
- data/examples/legacy/not_checked/simple/slide.rb +45 -0
- data/examples/legacy/not_checked/simple/sphere.rb +28 -0
- data/examples/legacy/not_checked/superleg.rb +244 -0
- data/examples/legacy/working/shoes-contrib/basic/a-poem.rb +24 -0
- data/examples/legacy/working/shoes-contrib/basic/basic-blocks-instances.rb +7 -0
- data/examples/legacy/working/shoes-contrib/basic/basic-blocks.rb +7 -0
- data/examples/legacy/working/shoes-contrib/basic/basic-slot.rb +8 -0
- data/examples/legacy/working/shoes-contrib/basic/intro.rb +20 -0
- data/examples/legacy/working/shoes-contrib/basic/two-column.rb +12 -0
- data/examples/legacy/working/shoes-contrib/elements/edit_box.rb +6 -0
- data/examples/legacy/working/shoes-contrib/kernel/alert.rb +3 -0
- data/examples/legacy/working/simple/calc.rb +71 -0
- data/examples/legacy/working/simple/sqlite3.rb +27 -0
- data/examples/legacy/working/simple/timer.rb +13 -0
- data/examples/line.rb +5 -0
- data/examples/link.rb +20 -0
- data/examples/list_box.rb +8 -0
- data/examples/para/collection_of_arguments.rb +9 -0
- data/examples/para/hello_world.rb +5 -0
- data/examples/para/hide_and_show.rb +9 -0
- data/examples/para/rainbow.rb +11 -0
- data/examples/para/rainbow_2.rb +11 -0
- data/examples/para/sizes.rb +11 -0
- data/examples/para/sizes_2.rb +12 -0
- data/examples/para/strong.rb +3 -0
- data/examples/para_text_widgets.rb +4 -0
- data/examples/pirate.png +0 -0
- data/examples/raw_flow.rb +11 -0
- data/examples/ruby_racer.rb +52 -0
- data/examples/shapes/arc.rb +8 -0
- data/examples/shapes/shapes.rb +8 -0
- data/examples/shapes/shapes_fill.rb +10 -0
- data/examples/shapes/star.rb +5 -0
- data/examples/shoes_school.rb +68 -0
- data/examples/shoes_splorer.rb +150 -0
- data/examples/simple_slides.rb +73 -0
- data/examples/skip_ci/parrot.rb +22 -0
- data/examples/skip_ci/say.rb +20 -0
- data/examples/sleepless.rb +26 -0
- data/examples/slots.rb +2 -4
- data/examples/spacing.rb +18 -0
- data/examples/span.rb +6 -0
- data/examples/stack/background.rb +35 -0
- data/examples/stack/border.rb +11 -0
- data/examples/stack/gradients.rb +6 -0
- data/examples/stack/raw_stack.rb +8 -0
- data/examples/stack/stack.rb +27 -0
- data/examples/text_change.rb +4 -0
- data/examples/text_sizes.rb +10 -0
- data/examples/timmy.rb +109 -0
- data/examples/title_and_resize.rb +3 -0
- data/exe/scarpe +108 -0
- data/lib/constants.rb +5 -0
- data/lib/scarpe/alert.rb +19 -0
- data/lib/scarpe/app.rb +78 -0
- data/lib/scarpe/arc.rb +49 -0
- data/lib/scarpe/background.rb +14 -0
- data/lib/scarpe/border.rb +16 -0
- data/lib/scarpe/button.rb +26 -18
- data/lib/scarpe/colors.rb +215 -0
- data/lib/scarpe/display_service.rb +189 -0
- data/lib/scarpe/document_root.rb +20 -0
- data/lib/scarpe/edit_box.rb +24 -0
- data/lib/scarpe/edit_line.rb +16 -30
- data/lib/scarpe/fill.rb +23 -0
- data/lib/scarpe/flow.rb +18 -15
- data/lib/scarpe/glibui/README.md +34 -0
- data/lib/scarpe/glibui/alert.rb +65 -0
- data/lib/scarpe/glibui/app.rb +27 -0
- data/lib/scarpe/glibui/background.rb +18 -0
- data/lib/scarpe/glibui/border.rb +22 -0
- data/lib/scarpe/glibui/button.rb +38 -0
- data/lib/scarpe/glibui/dimensions.rb +22 -0
- data/lib/scarpe/glibui/document_root.rb +33 -0
- data/lib/scarpe/glibui/edit_box.rb +44 -0
- data/lib/scarpe/glibui/edit_line.rb +43 -0
- data/lib/scarpe/glibui/flow.rb +33 -0
- data/lib/scarpe/glibui/html.rb +77 -0
- data/lib/scarpe/glibui/image.rb +36 -0
- data/lib/scarpe/glibui/link.rb +29 -0
- data/lib/scarpe/glibui/local_display.rb +62 -0
- data/lib/scarpe/glibui/para.rb +84 -0
- data/lib/scarpe/glibui/spacing.rb +41 -0
- data/lib/scarpe/glibui/stack.rb +33 -0
- data/lib/scarpe/glibui/text_widget.rb +30 -0
- data/lib/scarpe/glibui/widget.rb +81 -0
- data/lib/scarpe/glibui.rb +29 -0
- data/lib/scarpe/image.rb +28 -9
- data/lib/scarpe/libui/alert.rb +9 -0
- data/lib/scarpe/libui/button.rb +18 -0
- data/lib/scarpe/libui/colors.rb +157 -0
- data/lib/scarpe/libui/core.rb +66 -0
- data/lib/scarpe/libui/flow.rb +16 -0
- data/lib/scarpe/libui/libui.rb +45 -0
- data/lib/scarpe/libui/notepad.md +26 -0
- data/lib/scarpe/libui/para.rb +154 -0
- data/lib/scarpe/libui/stack.rb +34 -0
- data/lib/scarpe/line.rb +25 -0
- data/lib/scarpe/link.rb +25 -0
- data/lib/scarpe/list_box.rb +25 -0
- data/lib/scarpe/logger.rb +155 -0
- data/lib/scarpe/para.rb +84 -12
- data/lib/scarpe/promises.rb +387 -0
- data/lib/scarpe/shape.rb +19 -0
- data/lib/scarpe/spacing.rb +9 -0
- data/lib/scarpe/span.rb +26 -0
- data/lib/scarpe/stack.rb +66 -12
- data/lib/scarpe/star.rb +47 -0
- data/lib/scarpe/text_widget.rb +42 -0
- data/lib/scarpe/unit_test_helpers.rb +163 -0
- data/lib/scarpe/version.rb +2 -2
- data/lib/scarpe/widget.rb +198 -0
- data/lib/scarpe/widgets.rb +30 -0
- data/lib/scarpe/wv/alert.rb +65 -0
- data/lib/scarpe/wv/app.rb +85 -0
- data/lib/scarpe/wv/arc.rb +57 -0
- data/lib/scarpe/wv/background.rb +18 -0
- data/lib/scarpe/wv/border.rb +22 -0
- data/lib/scarpe/wv/button.rb +50 -0
- data/lib/scarpe/wv/control_interface.rb +153 -0
- data/lib/scarpe/wv/control_interface_test.rb +253 -0
- data/lib/scarpe/wv/dimensions.rb +22 -0
- data/lib/scarpe/wv/document_root.rb +50 -0
- data/lib/scarpe/wv/edit_box.rb +44 -0
- data/lib/scarpe/wv/edit_line.rb +43 -0
- data/lib/scarpe/wv/fill.rb +30 -0
- data/lib/scarpe/wv/flow.rb +32 -0
- data/lib/scarpe/wv/html.rb +107 -0
- data/lib/scarpe/wv/image.rb +36 -0
- data/lib/scarpe/wv/line.rb +38 -0
- data/lib/scarpe/wv/link.rb +29 -0
- data/lib/scarpe/wv/list_box.rb +50 -0
- data/lib/scarpe/wv/para.rb +90 -0
- data/lib/scarpe/wv/shape.rb +34 -0
- data/lib/scarpe/wv/shape_helper.rb +44 -0
- data/lib/scarpe/wv/spacing.rb +41 -0
- data/lib/scarpe/wv/span.rb +66 -0
- data/lib/scarpe/wv/stack.rb +42 -0
- data/lib/scarpe/wv/star.rb +64 -0
- data/lib/scarpe/wv/text_widget.rb +30 -0
- data/lib/scarpe/wv/web_wrangler.rb +679 -0
- data/lib/scarpe/wv/webview_local_display.rb +72 -0
- data/lib/scarpe/wv/webview_relay_display.rb +185 -0
- data/lib/scarpe/wv/widget.rb +181 -0
- data/lib/scarpe/wv/wv_display_worker.rb +65 -0
- data/lib/scarpe/wv.rb +39 -0
- data/lib/scarpe/wv_local.rb +6 -0
- data/lib/scarpe/wv_relay.rb +6 -0
- data/lib/scarpe.rb +35 -27
- data/logger/debug_web_wrangler.json +4 -0
- data/logger/scarpe_wv_test.json +4 -0
- data/scarpe-0.2.0.gem +0 -0
- data/scarpegen.rb +193 -0
- data/sig/scarpe.rbs +1 -1
- data/templates/basic_class_template.erb +38 -0
- data/templates/class_template_with_event_bind.erb +27 -0
- data/templates/class_template_with_shapes.erb +43 -0
- data/templates/example_template.erb +3 -0
- data/templates/module_template.erb +12 -0
- data/templates/webview_template.erb +30 -0
- metadata +601 -9
- data/lib/scarpe/container.rb +0 -10
- data/lib/scarpe/internal_app.rb +0 -46
@@ -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
|