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 / ReadMe.md
Last active Dec 26, 2019
Beethoven Moonlight Sonata played by Sonic Pi. Uses Sonatina Symphonic Orchestra samples. See readme for availablilty. Video at https://youtu.be/8rdJ9wxGw5Y
View ReadMe.md

The Sonic Pi file moonlightSonata-RF.rb which plays Beethoven's Moonlight Sonata 1st Movement requires the use of the Grand Piano samples from the Sonatina Symphonic Orchestra produced by Matthias Westlund.

Unfortunately this is no longer available from his website https://sso.mattiaswestlund.net/ However there is an alternative available at https://github.com/peastman/sso from where you can download the library. It is coverd by a https://creativecommons.org/licenses/sampling+/1.0/ Download and expand on your Desktop, or other suitable location and then set the link in the program at line 9 appropraitely for your installation.

The file should be run using the run_file "/path/to/file/location" command as it is too long to run from a Sonic Pi buffer.

An alternative version using the built in piano synth in Sonic Pi is included for comparison.

@rbnpi
rbnpi / CoventryCarol.rb
Last active Dec 19, 2019
ThePiHut RGBXmasTree controlled by Sonic Pi
View CoventryCarol.rb
#CoventryCarol.rb
#controlling ThePiHut RGBXmasTree via OSC commands
#these are sent from Sonic Pi to a python OSC server running on the Pi
#which then controls the leds on the tree
#written by Robin Newman, Decemeber 2019
use_real_time
use_osc"192.168.1.34",8000
use_bpm 120
##| osc"/setAll",'black'
##| stop
@rbnpi
rbnpi / milfan58.rb
Last active Dec 10, 2019
Fantasia by Milano da Francesco (1497 to 1543) played by Sonic Pi. I tweak the :pluck synth to sound more mellow and lute-like, and add a simple drum part.
View milfan58.rb
#milfan58.rb
#Fantasia by Milano (da) Francesco 1497 to 1543
#The most reknowned Lutist of his time.
#I used the :pluck synth tweeked to give a more ethereal lute like sound.
#I also added a rather crude drum part.
with_fx :reverb, room: 0.8,mix: 0.7 do
use_synth :pluck #change defaults to give a smoother sound
use_synth_defaults attack: 0.05,attack_level: 0.2,decay: 0.1
with_fx :level, amp: 4 do #raise final level of parts
View TouchOSC helmSelector.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 helmSelector.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.bedit

@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)
You can’t perform that action at this time.