This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # demo of play_pattern_timed for @naascoderdojo | |
| use_debug false | |
| myspeed = 70 | |
| mysynths = [:beep, :piano, :dsaw] | |
| 3.times do | |
| use_bpm myspeed | |
| use_synth mysynths.tick | |
| puts "tetris" | |
| play_pattern_timed [:E6, :B5, :C6, :D6, :C6, :B5, :A5, :A5, :C6, :E6, :D6, :C6, :B5, :C6, :D6, :E6, :C6, :A5, :A5, :D6, :F6, :A6, :G6, :F6, :E6, :C6, :E6, :D6, :C6, :B5, :B5, :C6, :D6, :E6, :C6, :A5, :A5], [0.3] | |
| sleep 0.05 |