Skip to content

Instantly share code, notes, and snippets.

@nicoder
Created February 8, 2015 18:45
Show Gist options
  • Save nicoder/e3e6b7ecd99c8683cdca to your computer and use it in GitHub Desktop.
Save nicoder/e3e6b7ecd99c8683cdca to your computer and use it in GitHub Desktop.
20150208 sonic pi (frères jacques)
define :one do
in_thread do
2.times do
play_pattern_timed [:c, :d, :e, :c], [1], pan: -0.5
end
end
end
define :two do
in_thread do
2.times do
play_pattern_timed [:e, :f, :g], [1, 1, 2], pan: -0.25
end
end
end
define :three do
in_thread do
2.times do
play_pattern_timed [:g, :a, :g, :f, :e, :c], [0.75, 0.25, 0.5, 0.5, 1, 1], pan: 0.25
end
end
end
define :four do
in_thread do
2.times do
play_pattern_timed [:c, :g3, :c], [1, 1, 2], pan: 0.5
end
end
end
live_loop :main do
one
two
three
four
sleep 8
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment