Created
April 16, 2019 21:38
-
-
Save datramt/3c725dbf0bbc513749f47e963e364f13 to your computer and use it in GitHub Desktop.
Elfen Lied Lilium music box realized in sonic pi
This file contains 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
notes =(ring 78, 85, | |
[80, 65], 73, 77, 81, [81, 66], :r, 78, 85, | |
[80, 65], 73, 77, 81, [83, 66], 81, | |
[78, 62], 69, 74, 69, 71, 80, 76, 74, | |
[76, 61], 68, 73, 68, 70, 78, 74, 73, | |
[74, 59], 76, 78, 71, 60, [80, 63], [81, 66], 83, | |
[81, 61], 66, 73, 66, [80, 61], :r, 78, 85, | |
[80, 65], 73, 77, 81, [81, 66], :r, 78, 85, | |
[80, 65], 73, 77, 81, [83, 66], 81, | |
[78, 62], 69, 74, 69, 71, 80, 76, 74, | |
[76, 61], 68, 73, 68, 70, 78, 74, 73, | |
[74, 59], 83, [81, 60], 80, [78, 61], 77, [75, 73], 77, | |
[78, 66], [82, 78], [83, 80], [85, 82], | |
[86, 59, 71], 81, [80, 52, 64], 86, [85, 57, 69], 88, [81, 50, 62], 85, | |
[83, 67], 81, [80, 61], 77, 74, [73, 66], [82, 78], [83, 80], [85, 82], | |
[86, 59, 71], 81, [80, 52, 64], 86, [85, 57, 69], 88, [81, 50, 62], 85, | |
[84, 63], 81, 80, 78, [81, 61], 73, 66, 83, | |
[80, 65, 73], :r, :r, :r, :r, :r) | |
use_synth :pretty_bell | |
live_loop :music_box do | |
tick | |
with_fx :reverb, room: 1, mix: 0.6 do | |
if notes.look.class == Array then | |
play notes.look[0] | |
play notes.look[1] | |
play notes.look[2] | |
else | |
play notes.look | |
end | |
end | |
sleep !(100..102).cover?(look%notes.length)? 0.5 : 1/3.0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment