Skip to content

Instantly share code, notes, and snippets.

@dangermse
dangermse / tetris-pi.txt
Created February 29, 2016 10:20
Sonic Pi tetris tune
# 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