Skip to content

Instantly share code, notes, and snippets.

Robin Newman rbnpi

  • Near Peterborough
Block or report user

Report or block rbnpi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rbnpi
rbnpi / _testOSCcontrollerReadME.md
Last active Oct 30, 2019
test OSC controller for Sonic Pi
View _testOSCcontrollerReadME.md

The file index.xml is utilised by TouchOSC. save the file as index.xml then compress or zip it and rename the resulting file testControl.touchosc This file should then be opened by the free TouchOSC editor (available for Mac, PC or Linux) and sync it to the (purchased) TouchOSC app for your IOS or Android phone or tablet. Setup instructions ar contained in the article on rbnrpi.wordpress.com

@rbnpi
rbnpi / BachFugueInGminorArrLisztBWV542-RF.rb
Created Oct 27, 2019
Bach's Fugue in G minor BWV 542 arr Franz Listz for Sonic Pi
View BachFugueInGminorArrLisztBWV542-RF.rb
#BachFugueInGminorArrLisztBWV542-RF.rb
#coded for sonic pi by Robin NEwman, October 2019
#there are two ;pl functions pl and plx
#one plays :piano synth, the other midi.
#current active one is named pl. Swap names to use the other one.
#adjust midi defaults for required port.
#use run_file "path/to/this/file" to play
use_midi_logging false
use_debug false
@rbnpi
rbnpi / TheTwelveDaysOfChristmas
Last active Sep 21, 2019
Extended 12 days of Christmas Sonic Pi Project based on https://projects.raspberrypi.org/en/projects/code-a-carol adding harmony
View TheTwelveDaysOfChristmas
#12 days of Christmas
#based on https://projects.raspberrypi.org/en/projects/code-a-carol
#tune altered slightly, based on https://sheetmusic-free.com/download/6888/
#I've added sustain/release for each note
#using pl function, also ability to play chords with pl
#also added simple accompaniment part.
#I cycle synth used each verse, and adjust tempo last two verses
#also added slight reverb.
#I modifiy many of the functions to allow refinements for each day,
#by utilising a days parameter.
@rbnpi
rbnpi / ReadME.md
Created Aug 9, 2019
Mesmeric Arpeggios. Sonic Pi on a Pi4 with Arturia MatrixBrute
View ReadME.md
@rbnpi
rbnpi / Ortiz3-RF.rb
Created Jun 2, 2019
recerada Tercera by Diego Ortiz 916th centry) from midi by Michael Robinson. use run_file "path-to-Ortiz3-RF.rb" to run it
View Ortiz3-RF.rb
#Ortiz3-RF.rb
#recerada Tercera by Diego Ortiz 916th centry) from midi by Michael Robinson
#converted for Sonic Pi by Robin Newman, June 2019
#midi file at http://www.standingstones.com/em_midi.html
#use run_file "path-to-Ortiz3-RF.rb" to run it
use_bpm 100
define :plarray do |notes,durations,tp=0,pan=0,vol=1,s=0.9,r=0.1|
#puts offsetclass
notes.zip(durations).each do |n,d|
if n.respond_to?(:each)
@rbnpi
rbnpi / Ortiz2-RF.rb
Created Jun 2, 2019
Recerada Segunda by Diego Ortiz 16th century) from midi by Michael Robinson. Use run_file "path-to-Ortiz2-RF.rb" command to run it.
View Ortiz2-RF.rb
#Ortiz2-RF.rb
#Recerada Segunda by Diego Ortiz 16th century) from midi by Michael Robinson
#midi file at http://www.standingstones.com/em_midi.html
#converted for Sonic Pi by Robin Newman, June 2019
#use run_file "path-to-Ortiz2-RF.rb" to play it
use_bpm 100
define :plarray do |notes,durations,tp=0,pan=0,vol=1,s=0.9,r=0.1|
#puts offsetclass
notes.zip(durations).each do |n,d|
if n.respond_to?(:each)
@rbnpi
rbnpi / PalesHos-RF.rb
Created Jun 2, 2019
Palestrina (c. 1525-1594) Hosanna played by Sonic Pi from a midi file by Michael Robinson. Use run_file "path-to-PalesHos-RF.rb" to run it.
View PalesHos-RF.rb
#PalesHos-RF.rb
#Giovanni Pierluigi de Palestrina (c. 1525-1594) Hosanna
#transcribed for Sonic Pi by Robin Newman, June 2019 from a midi file by Michael Robinson
#http://www.standingstones.com/em_midi.html
use_bpm 90
define :plarray do |notes,durations,tp=0,pan=0,vol=1,s=0.9,r=0.1|
#puts offsetclass
notes.zip(durations).each do |n,d|
if n.respond_to?(:each)
n.each do |nv|
@rbnpi
rbnpi / paseagua-RF.rb
Created May 29, 2019
Pase el agua Anonymous Spanish 15th Century played by Sonic Pi (use run_file "path to filename" to play) Hear it at https://soundcloud.com/user-999157198-370666210/pase-el-agua
View paseagua-RF.rb
#paseagua-RF.rb
#Pase el agua, ma Julieta Spanish Anon 15th century
#arranged for Sonic Pi by Robin Newman, May 2019
s=0.85;r=0.1
with_fx :reverb,room: 0.5,amp: 0.8,mix: 0.7 do
use_synth :chiplead
with_fx :level,amp: 0.5 do
a1=[]
b1=[]
@rbnpi
rbnpi / hasslerCanzon-RF.rb
Created May 29, 2019
Canzon by Hans Leo Hassler (1564-1612), transcribed for Sonic Pi (play suing run_file "path to filename" hear it at https://soundcloud.com/user-999157198-370666210/hassler-canzon
View hasslerCanzon-RF.rb
#hasslerCanzon-RF.rb
#Canzon by Hans Leo Hassler (1564-1612), transcribed for Sonic Pi by Robin Newman, May 2019
with_fx :reverb, room: 0.6,mix: 0.7 do
use_synth :saw
a1=[]
b1=[]
a1[0]=[:G4,:G4,:D5,:G5,:F5,:D5,:E5,:F5,:F5,:E5,:C5,:D5,:E5,:E5,:D5,:r,:r,:G4,:G4,:D5,:G5,:F5,:D5,:E5,:F5,:F5,:E5,:C5,:D5,:E5,:E5,:D5,:E5,:F5,:C5,:D5,:C5,:C5,:Bf4,:A4,:G4,:r,:D5,:C5,:C5,:Bf4,:D5,:Cs5,:D5,:r,:r,:r,:r,:r,:r,:r,:r,:G4,:G4,:D5,:G5,:F5,:D5,:E5,:F5,:F5,:E5,:C5,:D5,:E5,:E5,:D5,:Bf4,:C5,:D5,:D5,:C5,:A4,:B4,:C5,:C5,:Bf4,:D5,:C5,:Bf4,:A4,:G4,:F4,:E4,:D4,:D5,:E5,:F5,:D5,:F5,:E5,:D5,:D5,:C5,:Bf4,:A4,:A4,:Bf4,:A4,:G4,:G4,:Fs4,:E4,:Fs4]
b1[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,1.0,4.0,4.0,4.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,1.0,3.0,1.0,2.0,1.0,1.0,3.0,1.0,2.0,2.0,4.0,2.0,2.0,3.0,1.0,2.0,4.0,2.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.0,4.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,1.0,1.0,0.5,0.5,1.0,1.0,1.0,0.5,0.5,1.0,1.0,1.0,1.5,0.5,1.0,0.5,0.5,0.5,0.5,1.0,0.5,0.5,1.0,1.0,1.0,1.0,6.0,2.0,4.
@rbnpi
rbnpi / bjs1031b-RF.rb
Created May 29, 2019
Bach Siciliano from Flute Sonata in Eb Major for Sonic Pi. (use run_file "path to filename") Hear it on https://soundcloud.com/user-999157198-370666210/bach-flute-siciliano
View bjs1031b-RF.rb
#bjs1031b-RF.rb
#attributed to J.S. Bach or C.P.E. Bach Siciliano from Flute Suite 2 BWV 1031
#transcribed for Sonic Pi by Robin Newman, May 2019
with_fx :reverb, room: 0.8,mix: 0.6 do
use_synth :tri
a1=[]
b1=[]
a1[0]=[:D5,:Ef5,:D5,:D5,:G5,:Ef5,:C5,:C5,:D5,:C5,:C5,:A5,:C5,:C5,:Bf4,:A4,:G4,:r,:Bf4,:D5,:Ef5,:C6,:Ef5,:Ef5,:D5,:F5,:Bf5,:F5,:G5,:F5,:Ef5,:D5,:C5,:F5,:A5,:C6,:Bf5,:D6,:C6,:Bf5,:A5,:G5,:F5,:Ef5,:D5,:r,:F5,:G5,:F5,:F5,:Bf5,:G5,:Ef5,:Ef5,:F5,:Ef5,:Ef5,:C6,:Ef5,:D5,:F4,:G4,:A4,:Bf4,:C5,:D5,:F5,:Bf5,:D5,:D5,:C5,:A5,:C5,:A4,:Bf4,:D5,:G5,:A5,:Bf5,:A5,:G5,:A5,:G5,:F5,:E5,:G5,:F5,:E5,:D5,:Df5,:D5,:E5,:Af5,:A5,:E5,:F5,:D5,:Df5,:D5,:E5,:Af5,:A5,:E5,:F5,:D5,:Df5,:D5,:E5,:A4,:Bf4,:D5,:Df5,:D5,:E5,:D5,:A4,:D5,:Df5,:D5,:E5,:D5,:G4,:Bf4,:A4,:G4,:F4,:E4,:F4,:D4,:r,:r,:D5,:Ef5,:D5,:D5,:G5,:Ef5,:C5,:C5,:D5,:C5,:C5,:A5,:C5,:Bf4,:G4,:A4,:Bf4,:C5,:D5,:Ef5,:F5,:Ef5,:D5,:C5,:Bf4,:A4,:Df5,:D5,:A4,:Bf4,:G4,:Fs4,:G4,:A4,:Df5,:D5,:A4,:Bf4,:G4,:Fs4,:G4,:A4,:G4,:A4,:Bf4,:C5,:D5,:Ef5,:D5,:C5,:Bf4,:D5,:C5,:Bf4,:A4,:G4,:Ef5,:C5,:Bf
You can’t perform that action at this time.