Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created November 18, 2014 01:55
Show Gist options
  • Select an option

  • Save tarcieri/c0e7c06fc23e9cd3dd08 to your computer and use it in GitHub Desktop.

Select an option

Save tarcieri/c0e7c06fc23e9cd3dd08 to your computer and use it in GitHub Desktop.
Some Sonic PI muzak
in_thread do
with_fx :reverb do
loop do
use_synth :tb303
play_pattern_timed chord(:E3, :m7), 0.25
end
end
end
in_thread do
with_fx :reverb do
with_fx :echo, phase: 0.5 do
loop do
use_synth :tb303
sample :drum_bass_hard, rate: rrand(0.5, 2)
play choose(chord(:e3, :minor)), release: 0.2, cutoff: rrand(60, 130)
sleep 0.25
end
end
end
end
in_thread do
loop do
use_synth :tb303
play 45
sleep 0.2
play 50
sleep 0.2
end
end
in_thread do
loop do
use_synth :prophet
play 45
sleep 0.4
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment