Skip to content

Instantly share code, notes, and snippets.

@rbnpi
Last active Mar 16, 2018
Embed
What would you like to do?
Play Purcell on a Raspberry Pi3 with Sonic Pi. (Run using a run_file command as too long for a sonic pi buffer) Listen to it on https://soundcloud.com/user-195236670/play-purcell
#playPurcell-RF.rb
#run using: run_file "path-to-the-file/playPurcell-RF.rb"
with_fx :reverb,room: 0.8,mix: 0.6 do
use_synth :piano
use_synth_defaults stereo_width: 0.6
a1=[]
b1=[]
a1[0]=[:C3,:B2,:G2,:r,:r,:Bf3,:Ef3,:D3,:B2,:C3,:Ef3,:F3,:G3,:G5,:G5,:r,:D3,:r,:G5,:F5,:G5,:Af5,:G5,:F5,:Ef5,:D5,:C5,:r,:F3,:r,:Bf5,:Af5,:r,:B3,:r,:Af5,:G5,:r,:A3,:r,:G5,:D5,:Ef5,:F5,:G5,:Ef5,:D5,:C5,:C3,:C3,:B2,:G2,:r,:r,:Bf3,:Ef3,:D3,:B2,:r,:Ef4,:r,:r,:C4,:r,:G3,:r,:F3,:r,:Bf3,:r,:C4,:r,:B3,:r,:r,:G3,:Ef4,:D4,:C4,:r,:C3,:r,:r,:G4,:r,:C4,:Ef4,:r,:r,:F4,:Ef3,:D3,:B2,:C3,:Ef3,:F3,:G3,:r,:r,:r,:r,:r,:G3,:r,:C3,:r,:r,:G4,:r,:C4,:Ef4,:r,:r,:F4,:Ef3,:D3,:B2,:r,:r,:G3,:r,:r,:r,:r,:r,:B2,:G2,:r,:r,:Bf3,:Ef3,:D3,:B2,:r,:G5,:G5,:G5,:F5,:F5,:F5,:Ef5,:Af5,:G5,:F5,:Bf5,:Af5,:G5,:Af5,:G5,:F5,:G5,:F5,:Ef5,:D5,:Ef5,:C3,:B2,:G2,:r,:r,:Bf3,:Ef3,:D3,:B2,:C3,:Ef3,:F3,:G3,:r]
b1[0]=[2.0,1.5,0.5,2.0,1.0,1.0,2.0,1.5,0.5,0.5,0.5,0.5,0.5,1.0,1.0,0.5,0.5,0.5,0.5,0.25,0.25,0.25,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,0.5,0.25,0.25,0.5,0.5,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.5,0.25,0.25,0.75,0.25,0.5,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.5,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.75,0.25,1.0,1.0,0.25,0.5,0.5,0.25,0.5,1.0,0.25,0.75,0.5,0.5,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.5,0.25,0.25,0.5,0.25,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,0.375,0.125,1.0,1.0,0.25,0.5,0.5,0.25,0.5,1.0,0.25,0.75,0.5,0.5,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.5,0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.125,0.125,0.25,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.25,0.25,0.25,0.25,0.25,0.25,0.5,0.25,0.25,0.5,0.25,0.25,0.25,0.25,0.25,0.25,1.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.5,0.5,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.5,0.25,0.25,0.5,0.5,1.75,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,1.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.5,0.5,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.75,0.5,0.25,0.25,0.25,0.5,0.5,0.75,2.0]
c6=[70]
in_thread do
for i in 0..a6.length-1
use_bpm c6[i]
for j in 0..a6[i].length-1
play a6[i][j],sustain: b6[i][j]*0.9,release: b6[i][j]*0.1
sleep b6[i][j]
end
end
end
a7=[]
b7=[]
a7[0]=[: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,:r,:r,:r,:r,:Ef5,:Ef5,:Ef5,:D5,:r,:D5,:C5,:r,:Ef5,:D5,:r,:F5,:Ef5,:r,:Ef5,:D5,:r,:D5,:C5,:r,:C5,:r,:r,:r,:r,:r]
b7[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,1.75,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,0.5,1.25,0.25,1.5,0.5,2.0,4.0,4.0,4.0]
c7=[70]
in_thread do
for i in 0..a7.length-1
use_bpm c7[i]
for j in 0..a7[i].length-1
play a7[i][j],sustain: b7[i][j]*0.9,release: b7[i][j]*0.1
sleep b7[i][j]
end
end
end
a8=[]
b8=[]
a8[0]=[: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,:r,:r,:r,:r,:C5,:r,:r,:r,:r,:r,:r,:r,:r]
b8[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,1.75,0.25,4.0,4.0,4.0,4.0,4.0,4.0,4.0]
c8=[70]
in_thread do
for i in 0..a8.length-1
use_bpm c8[i]
for j in 0..a8[i].length-1
play a8[i][j],sustain: b8[i][j]*0.9,release: b8[i][j]*0.1
sleep b8[i][j]
end
end
end
end #fx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment