Skip to content

Instantly share code, notes, and snippets.

@Tuhaj
Last active June 26, 2016 19:43
Show Gist options
  • Save Tuhaj/5f75d33f86334e19a087cd43086e08e4 to your computer and use it in GitHub Desktop.
Save Tuhaj/5f75d33f86334e19a087cd43086e08e4 to your computer and use it in GitHub Desktop.
# Sonic Pi Diggy diggy hole chorus based on https://musescore.com/user/1121936/scores/1022696
# :Ab, :Bb, :Db, :Eb
define :play_note do |note|
play note[0], release: note[1]
sleep note[1]
end
loop do
[
[:F2, 0.5], [:F2, 0.25], [:G2, 0.25], [:Ab2, 0.5],
[:Ab2, 0.25], [:C3, 0.25], [:Bb2, 0.5], [:Ab2, 0.25],
[:G2, 0.25], [:F2, 1],
[:Ab2, 0.25], [:F2, 0.25], [:Ab2, 0.25], [:F2, 0.25],
[:Eb2, 1],
[:Ab2, 0.25], [:F2, 0.25], [:Ab2, 0.25], [:F2, 0.25],
[:G2, 1]
].each do |note|
play_note note
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment