This program runs on Sonic Pi midi version. It works on SP 2.12-midi-alpha6 released recently to patreon subscribers of Sam Aaron see https://patreon.com/samaaron It also requires the program TouchOSC which is available for iPad or iPhone users at a very modest price. The TouchOSC file required to run this program is contained in the file index.xml To produce the TouchOSC file, download the raw file index.xml, right click it and select the Compress function. Rename the resulting file SPlissajous.touchosc and say Yes when it asks if you want to change the file extension. Open the file using the TouchOSC editor and download it to your iPad or other compatible device using the sync function. The layout is designed to fit on an iPhone or iPad. The SPlissajousTouchOSC.rb file should be downloaded and opened or pasted into a blank Sonic Pi buffer.
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
#!/usr/bin/ruby | |
`/usr/local/bin/sonic_pi stop` | |
`/usr/local/bin/sonic_pi "run_file '~/Documents/SPfromXML/BeatusVirControlled-RF.rb'"` |
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
# Luca Marenzio Madrigal 1553-1599 "Togli dolce ben mio" arranged for 5 trumpets coded for by Robin Newman, April 2015 | |
#uses sample based voice, and also has variable dynamic settings for each part and final rit. | |
#requires version >=2.9 | |
#Sample requires can be downloaded from http://r.newman.ch/rpi/Marenzio.zip | |
#This version altered for syntax changes. Wrosk with later versions of SP | |
use_debug false | |
path= '~/Desktop/samples/Marenzio/' #path to sample folder | |
#first deal with selecting and setting up the sample | |
inst0 = 0 #first (in fact only) sample in folder |
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
#BachTocAndFugue-RFrb (latest version) | |
#coded by Robin Newman from an arrangement by Guillaume Bentaieb https://musescore.com/user/2953356/scores/7328486 | |
start = 0 #section to start playing from (fugue stats at 6) | |
#note data part0 (a few extra notes from part 1 which required this to play on Sonic Pi) | |
a0=[] | |
b0=[] | |
a0[0]=[:A6,:A6,:r,:G6,:F6,:E6,:D6,:Cs6,:D6,:A5,:A5,:r,:E5,:F5,:Cs5,:D5,:r,:r,:r,:r,:r,:r] | |
b0[0]=[0.16666667,0.33333334,0.125,0.0625,0.0625,0.0625,0.0625,0.125,1.0,0.16666667,0.33333334,0.125,0.125,0.125,0.125,1.0,2.0,4.0,2.0,1.0,0.5,0.25] | |
a0[1]=[:r,:r,:r,:r,:r,:r,:r,:E5,:r,:r,:r,:A4,:r,:r] | |
b0[1]=[0.25,4.0,4.0,4.0,4.0,2.0,0.5,0.5,1.0,2.0,0.5,0.5,1.0,4.0] |
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
#House of the Rising Sun, coded for Sonic Pi by Robin Newman, August 2015 | |
#Based on version by M Ludenhoof at http://imslp.org/wiki/House_of_the_Rising_Sun_(Ludenhoff,_Martin) | |
#Creative Commons 3.0 licence. One or two notes modified. | |
#version 2. Different play structure, and alternative instrument formiddle section | |
use_debug false | |
#samples used with their natural pitches | |
inst0=:bass_woodsy_c | |
samplepitch0=:c3 |
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
#8 note polyphony gated synth setup program | |
#by Robin Newman, August 2017 | |
#Set initial states for polyphonic synth | |
set :vm1,0 | |
set :vm2,0 | |
set :vm3,0 | |
set :vm4,0 | |
set :vm5,0 | |
set :vm6,0 | |
set :vm7,0 |
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
#Theremin plus, controlling pitch and ixi_techno phase by Robin Newman May 2018 | |
#/osc/ changed to /osc*/ in line 24 to work with latest Sonic Pi Aug 2021 | |
#I control a continously playing note (length 2000) | |
use_debug false | |
define :putsPretty do |n,p| | |
num=(n*10**p).round/(10**p).to_f | |
return num | |
end |
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
#GoodBadUgly-RF.rb | |
#coded by Robin Newman, July 2020 | |
#use run_file "path/to/GoodBadUgly-RF.rb" | |
with_fx :reverb, room: 0.8 do | |
use_synth :pluck | |
with_fx :compressor,amp: 2 do | |
a1=[] | |
b1=[] | |
a1[0]=[:r,:r,:r,:r,:r,:r,:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4],:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4],:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4],:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4],:r,:r,:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4],:r,[:G3,:B3,:E4],:r,[:G3,:B3,:E4],[:G3,:B3,:E4],[:G3,:B3,:E4]] |
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
#program to record realtime midi input,and then replay it. | |
#records midi input from say a keyboard, saving data into array tlist | |
#this can then be replayed. Records, note pitch, time started, | |
#velocity of key and note duration. | |
#coded by Robin Newman April 2020 EDITED April 2022 for updated midi message handling | |
uncomment do #comment to record, uncomment to replay | |
tlist=get(:tlist) | |
puts tlist.length | |
puts tlist |
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
#program to utilise 48 different sample voices from Sonatina Symphonic Library | |
#written by Robin Newman, March 2016 | |
#requires Sonatina Symphonic Library from http://sso.mattiaswestlund.net/download.html | |
#requires Sonic Pi ver 2.10 | |
#plays 19 voice Frere Jqeus round! | |
#tested on Pi2, Pi3, Mac OSX and Windows 10. | |
#updated to handle new thread structure in SP2.11dev | |
use_debug false | |
#path to library samples folder (including trailing /) | |
path='~/Desktop/Sonatina Symphonic Orchestra/Samples/' |