[Code] He’s A Pirate Cover in SONIC PI – V0.1

Here is my first try to do a cover of He’s A Pirate (Pirates Of The Caribbean) in Sonic Pi. There are no special sound effects added yet, just raw for version 0.01.

Save the following code to a file and load it into your Sonic Pi editor via run_file command (e.g: run_file(“path/pirate.rb”) – this is because the code is too large for the buffer of Sonic Pi Editor) and have fun.

define :fire do |n, d, s|
  for j in 0..n.length-1
    play n[j], sustain: s[j], release: s[j]
  end
  sleep d
end
n=[]
d=[]
s=[]
n[0] = [[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:d4],[:a3],[:c4],[:f3,:a3,:d4],[:f3,:a3,:d4],[:r,:r,:r],[:r],[:f3,:a3,:d4],[:a3,:c4,:e4],[:bb3,:d4,:f4],[:bb3,:d4,:f4],[:r,:r,:r],[:r],[:bb3,:d4,:f4],[:d4,:g4],[:a3,:c4,:e4],[:a3,:c4,:e4],[:r,:r,:r],[:r],[:a3,:d4],[:g3,:c4],[:a3,:c4],[:a3,:d4],[:r],[:a3],[:c4],[:f3,:bb3,:d4],[:f3,:bb3,:d4],[:r,:r,:r],[:r],[:bb3,:d4],[:bb3,:e4],[:a3,:c4,:f4],[:a3,:c4,:f4],[:r,:r,:r],[:r],[:c4,:f4],[:c4,:g4],[:c4,:e4],[:c4,:e4],[:r,:r],[:r],[:a3,:d4],[:c4],[:f3,:a3,:d4],[:r],[:a3],[:c4],[:f3,:a3,:d4],[:f3,:a3,:d4],[:r,:r,:r],[:r],[:a3,:d4],[:a3,:f4],[:bb3,:d4,:g4],[:bb3,:d4,:g4],[:r,:r,:r],[:r],[:d4,:g4],[:d4,:a4],[:d4,:g4,:bb4],[:d4,:g4,:bb4],[:r,:r,:r],[:r],[:f4,:a4],[:e4,:g4],[:f4,:a4],[:d4],[:r],[:d4],[:e4],[:bb3,:d4,:f4],[:bb3,:d4,:f4],[:r,:r,:r],[:r],[:bb3,:d4,:g4],[:f4,:a4],[:d4],[:r],[:d4],[:f4],[:a3,:cs4,:e4],[:a3,:cs4,:e4],[:r,:r,:r],[:r],[:d4,:f4],[:b3,:d4],[:a3,:cs4,:e4],[:r],[:a4],[:c5],[:f4,:a4,:d5],[:f4,:a4,:d5],[:r,:r,:r],[:r],[:f4,:a4,:d5],[:a4,:c5,:e5],[:bb4,:d5,:f5],[:bb4,:d5,:f5],[:r,:r,:r],[:r],[:bb4,:d5,:f5],[:d5,:g5],[:a4,:c5,:e5],[:a4,:c5,:e5],[:r,:r,:r],[:r],[:a4,:d5],[:g4,:c5],[:a4,:c5],[:a4,:d5],[:r],[:a4],[:c5],[:f4,:bb4,:d5],[:f4,:bb4,:d5],[:r,:r,:r],[:r],[:bb4,:d5],[:bb4,:e5],[:a4,:c5,:f5],[:a4,:c5,:f5],[:r,:r,:r],[:r],[:c5,:f5],[:c5,:g5],[:c5,:e5],[:c5,:e5],[:r,:r],[:r],[:a4,:d5],[:c5],[:f4,:a4,:d5],[:r],[:a4],[:c5],[:f4,:a4,:d5],[:f4,:a4,:d5],[:r,:r,:r],[:r],[:a4,:d5],[:a4,:f5],[:bb4,:d5,:g5],[:bb4,:d5,:g5],[:r,:r,:r],[:r],[:d5,:g5],[:d5,:a5],[:d5,:g5,:bb5],[:d5,:g5,:bb5],[:r,:r,:r],[:r],[:f5,:a5],[:e5,:g5],[:f5,:a5],[:d5],[:r],[:d5],[:e5],[:bb4,:d5,:f5],[:bb4,:d5,:f5],[:r,:r,:r],[:r],[:bb4,:d5,:g5],[:f5,:a5],[:d5],[:r],[:d5],[:f5],[:a4,:cs5,:e5],[:a4,:cs5,:e5],[:r,:r,:r],[:r],[:d5],[:cs5],[:a4,:d5],[:a4,:d5],[:r,:r],[:r],[:a4,:c5,:e5],[:c5,:d5,:f5],[:f5],[:f5],[:bb4,:d5,:g5],[:d5,:a5],[:f5],[:r],[:a4,:f5],[:a4,:d5],[:a4],[:r],[:d5,:g5,:bb5],[:r],[:bb4,:g5],[:bb4,:d5],[:bb4],[:r],[:cs4,:e4],[:cs4,:e4],[:g3,:d4],[:a3,:cs4,:f4],[:r],[:f4],[:g4],[:d4,:f4,:a4],[:d4,:f4,:a4],[:r,:r,:r],[:r],[:d4,:f4,:a4],[:d4,:f4,:bb4],[:d4,:f4,:a4],[:r],[:c4,:e4,:g4],[:c4,:e4,:g4],[:r,:r,:r],[:r],[:c4,:e4,:g4],[:c4,:e4,:g4],[:c4,:f4,:a4],[:r],[:d4,:f4,:a4],[:d4,:f4,:a4],[:r,:r,:r],[:r],[:d4,:f4,:a4],[:d4,:f4,:bb4],[:d4,:f4,:a4],[:r],[:cs4,:e4,:g4],[:cs4,:f4],[:r,:r],[:r],[:a3,:e4],[:f3,:a3,:d4],[:r],[:d4],[:e4],[:a3,:d4,:f4],[:r,:r,:r],[:r],[:g4],[:a4],[:c4,:g4],[:c4,:f4],[:r,:r],[:r],[:c4,:e4],[:a3,:c4,:f4],[:a3,:c4,:g4],[:r,:r,:r],[:r],[:a3,:c4,:a4],[:c4,:e4,:g4],[:r],[:f4],[:g4],[:c4,:f4,:a4],[:r],[:g4],[:f4],[:cs4,:e4],[:cs4,:f4],[:r,:r],[:r],[:cs4,:e4],[:f3,:a3,:d4],[:r],[:e4],[:c4],[:f3,:a3,:d4],[:r],[:d5],[:e5],[:a4,:d5,:f5],[:r],[:e5],[:f5],[:c5,:g5],[:c5,:f5],[:r,:r],[:r],[:c5,:g5],[:f5,:a5],[:c5,:g5],[:r,:r],[:r],[:c5,:f5],[:f4,:bb4,:d5],[:r],[:d5],[:e5],[:a4,:d5,:f5],[:a4,:d5,:g5],[:r,:r,:r],[:r],[:d5,:a5],[:bb4,:d5,:bb5],[:bb4,:d5],[:r,:r],[:r],[:bb4,:g5],[:a4,:f5],[:r],[:g5],[:e5],[:a4,:d5],[:r],[:e5],[:cs5],[:d5,:f5,:a5],[:r],[:d5,:g5,:bb5],[:r],[:c5,:f5,:a5],[:c5,:f5,:a5],[:r,:r,:r],[:r],[:c5,:f5,:a5],[:c5,:e5,:a5],[:g5],[:r],[:bb4,:d5,:g5],[:r],[:a4,:d5,:f5],[:r],[:a4,:f5],[:a4,:g5],[:r,:r],[:r],[:a4,:e5],[:f4,:a4,:d5],[:d5],[:e5],[:f5],[:d5,:f5,:a5],[:d5],[:e5],[:f5],[:d5,:f5,:bb5],[:d5],[:e5],[:f5],[:c5,:f5,:a5],[:c5,:f5,:a5],[:r,:r,:r],[:r],[:f5,:c6],[:c5,:e5,:a5],[:g5],[:r],[:bb4,:d5,:g5],[:r],[:a4,:d5,:f5],[:r],[:a4,:f5],[:a4,:g5],[:r,:r],[:r],[:a4,:e5],[:f4,:a4,:d5],[:r],[:d4],[:r],[:r]]
s[0] = [[1.0],[0.5],[1.0],[0.5],[1.0],[0.5],[0.5],[0.5],[0.5],[1.0],[0.5],[1.0],[0.5],[1.0],[0.5],[0.5],[0.5],[0.5],[1.0],[0.5],[1.0],[0.5],[1.0],[0.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5,0.5],[0.5,0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[0.5,0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5],[1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5,0.5],[0.5,0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[0.5,0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5],[1.0],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[0.5],[0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0,1.0],[1.0,1.0,1.0],[0.5],[0.5],[1.0,1.0,1.0],[0.5,0.5],[1.0],[0.5],[0.5,0.5],[0.5,0.5],[1.5],[1.5],[1.5,1.5,1.5],[0.5],[0.5,0.5],[0.5,0.5],[1.5],[1.5],[0.5,0.5],[1.0,1.0],[1.5,1.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5,0.5],[1.0,1.0,1.0],[1.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5,0.5],[1.0,1.0,1.0],[1.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5,0.5],[1.0,1.0,1.0],[1.5],[1.0,1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.75,1.75,1.75],[0.25,0.25,0.25],[0.25],[0.5],[0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0],[1.0,1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[1.5],[1.5,1.5,1.5],[1.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0,1.0],[0.5,0.5,0.5],[1.0],[1.5],[1.5,1.5,1.5],[1.5],[1.5,1.5,1.5],[1.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.5,1.5,1.5],[0.5],[0.5],[0.5],[1.0,1.0,1.0],[0.75,0.75,0.75],[0.25,0.25,0.25],[0.25],[1.0,1.0],[0.5,0.5,0.5],[1.0],[1.5],[1.5,1.5,1.5],[1.5],[1.5,1.5,1.5],[1.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.5,1.5,1.5],[1.5],[4.5],[1.5],[1.5]]
d[0] = [1.0,0.5,1.0,0.5,1.0,0.5,0.5,0.5,0.5,1.0,0.5,1.0,0.5,1.0,0.5,0.5,0.5,0.5,1.0,0.5,1.0,0.5,1.0,0.5,0.5,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,0.5,1.0,0.5,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.5,0.5,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5,1.0,0.5,0.25,0.25,0.5,0.5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],[:bb1,:bb2],[:bb1,:bb2],[:f1,:f2],[:f1,:f2],[:f1,:f2],[:f1,:f2],[:c2,:c3],[:c2,:c3],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:r,:r],[:r],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:r,:r],[:r],[:bb1,:bb2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:bb1,:bb2],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:f2,:f3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:c2,:c3],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:g1,:g2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:a1,:a2],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d2,:d3],[:d1,:d2],[:r,:r],[:r]]
s[1] = [[3.0],[3.0],[3.0],[3.0],[3.0,3.0],[1.5,1.5],[1.5,1.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.0,1.0],[0.75,0.75],[0.25,0.25],[0.25],[1.0,1.0],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[1.0,1.0],[0.5,0.5],[0.5,0.5],[0.5,0.5],[0.5,0.5],[1.0,1.0],[0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]
  end
end
in_thread do
  use_synth :piano
  use_bpm 200
  for j in 0..n[1].length - 1
    fire n[1][j], d[1][j], s[1][j]
  end
end

Author: Fantashit