Last active
December 27, 2017 17:34
-
-
Save rbnpi/d33a0fd89c415b3023a98ff917f36318 to your computer and use it in GitHub Desktop.
Bach Gavotte I and II from BWV811 transcribed for Sonic Pi December 2017. Hear it on https://soundcloud.com/user-195236670/bach-bwv811-gavotte
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
#Bach BWV8111 Gavotte I, II transcribed for Sonic Pi by Robin Newman, December 2017 | |
#This took me lnoger than useual because of the time to track down some missing rests in part 3 | |
#I used varions functions below, used at end to do this. Left there for future reference | |
#I spread the right and left hands slightly in the stereo spectrum and also | |
#added some reverb. | |
#I played with the sustain/release settings for each hand, to give a slightly more staccato effect in the playing. | |
#Need to use run_file "/path/to/this/filename" to execute from a Sonic Pi buffer | |
use_debug false | |
#################################### debugging routing follow | |
#followng code was used in debugging three missing rest in part 3 | |
define :dl do |durs| #for debugging checking durations of strings | |
t=0 | |
durs.each do |d| | |
t+=d | |
end | |
return t | |
end | |
define :bn do |bt,durs| #finding approx index for a given beat | |
target=2+bt | |
t=i=0 | |
durs.each_with_index do |d,index| | |
t+=d | |
i=index | |
break if t >=target | |
end | |
return i | |
end | |
define :p10 do |n,a,b| #for debigging and finding errors | |
puts "#{a[n]} #{a[n+1]} #{a[n+2]} #{a[n+3]} #{a[n+4]} #{a[n+5]} #{a[n+6]} #{a[n+7]} #{a[n+8]} #{a[n+9]} #{a[n+10]} #{a[n+11]} #{a[n+12]} #{a[n+13]} #{a[n+14]} #{a[n+15]} #{a[n+16]} #{a[n+17]} #{a[n+18]} #{a[n+19]}" | |
puts "#{b[n]} #{b[n+1]} #{b[n+2]} #{b[n+3]} #{b[n+4]} #{b[n+5]} #{b[n+6]} #{b[n+7]} #{b[n+8]} #{b[n+9]} #{b[n+10]} #{b[n+11]} #{b[n+12]} #{b[n+13]} #{b[n+14]} #{b[n+15]} #{b[n+16]} #{b[n+17]} #{b[n+18]} #{b[n+19]}" | |
end | |
################################################# | |
sr=0.5;rr=1 #sustain,release mulitppliers righthand | |
sl=0.2;rl=1 #sustain, release multipliers left hand | |
with_fx :reverb,room: 0.8,mix: 0.65 do | |
with_fx :level do |v| | |
in_thread do | |
use_bpm 120 | |
at [0,63*4+2,111*4+2],[0.8,0.5,1] do |n| #rdeuce volume for middle section, increase for last section | |
control v,amp: n | |
end | |
end | |
use_synth :piano | |
use_bpm 120 | |
a1=[] | |
b1=[] | |
a1[0]=[:A5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:A5,:G5,:G5,:G5,:G5,:F5,:G5,:A5,:F5,:E5,:F5,:G5,:F5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:D5,:A5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:C6,:Bf5,:A5,:G5,:F5,:E5,:D5,:Bf5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:F5,:G5,:A5,:A5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:A5,:G5,:G5,:G5,:G5,:F5,:G5,:A5,:F5,:E5,:F5,:G5,:F5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:D5,:A5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:C6,:Bf5,:A5,:G5,:F5,:E5,:D5,:Bf5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:A5,:G5,:F5,:G5,:A5,:E5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:F5,:E5,:D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5,:D5,:E5,:Cs5,:D5,:E5,:F5,:D5,:E5,:F5,:G5,:E5,:F5,:E5,:F5,:A5,:G5,:F5,:E5,:D5,:Cs5,:A4,:B4,:Cs5,:D5,:E5,:F5,:F5,:E5,:D5,:Cs5,:D5,:E5,:F5,:G5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:Bf5,:A5,:G5,:A5,:Bf5,:A5,:G5,:Bf5,:A5,:G5,:F5,:E5,:D5,:Cs5,:A5,:E5,:D5,:r] | |
b1[0]=[1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,1.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,1.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,0.25,0.25,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,12.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,6.0,4.0,2.0,1.0,0.5,0.5,0.5,0.5,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,2.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,0.25,0.25,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,12.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,6.0,4.0,2.0,1.0,0.5,0.5,0.5,0.5,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,2.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,1.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,1.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,1.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,2.0,1.0,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,0.5,0.5,0.5,0.5,1.0,1.0,1.0,0.25,0.25,0.5,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,12.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,1.0,1.0,1.5,0.25,0.25,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,6.0,4.0,2.0,1.0,0.5,0.5,0.5,0.5,1.0,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.125,0.25,0.25,1.0,1.0,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,2.0,2.0,2.0,2.0] | |
in_thread do | |
for i in 0..a1.length-1 | |
for j in 0..a1[i].length-1 | |
play a1[i][j],sustain: b1[i][j]*sr,release: b1[i][j]*rr,pan: 0.2 | |
sleep b1[i][j] | |
end | |
end | |
end | |
a2=[] | |
b2=[] | |
a2[0]=[:F5,:E5,:F5,:G5,:F5,:E5,:E5,:E5,:E5,:D5,:Cs5,:D5,:Cs5,:D5,:F5,:E5,:G5,:F5,:G5,:F5,:E5,:E5,:D5,:D5,:D5,:Cs5,:F5,:E5,:F5,:G5,:F5,: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:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r,:r] | |
b4[0]=[2.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,2.0,2.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0] | |
in_thread do | |
for i in 0..a4.length-1 | |
for j in 0..a4[i].length-1 | |
play a4[i][j],sustain: b4[i][j]*sl,release: b4[i][j]*rl,pan:-0.2 | |
sleep b4[i][j] | |
end | |
end | |
end | |
#debugging code follows, used to detectmissing rests in part 3 | |
# bb=234 | |
# puts "beat #{bb}" | |
# puts "array lengths #{b1[0].length} #{b2[0].length} #{b3[0].length} #{b4[0].length}" | |
# puts dl(b1[0]),dl(b2[0]),dl(b3[0]),dl(b4[0]) | |
# puts bn(bb,b1[0]),bn(bb,b2[0]),bn(bb,b3[0]) | |
# p10(bn(bb,b1[0]),a1[0],b1[0]);puts | |
# p10(bn(bb,b2[0]),a2[0],b2[0]);puts | |
# p10(bn(bb,b3[0]),a3[0],b3[0]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment