Skip to content

Instantly share code, notes, and snippets.

💭
Ducunt volentem fata - nolentem trahunt.

G. Martin Butz mbutz

💭
Ducunt volentem fata - nolentem trahunt.
Block or report user

Report or block mbutz

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
@mbutz
mbutz / perf-geneva.rb
Created Apr 20, 2019
Geneva Live Coding Exercise
View perf-geneva.rb
# Geneva Live Coding
# filename: perf-geneva.rb
blips = "~/projects/sonicpi/audio/samples/blips/"
use_bpm 120
live_loop :metro do
sleep 1
end
View shireau.rb
# A coding study done with Sonic Pi exploring the Drum'n'Bass genre.
# I used a sample from freesound.org, a female voice singing 'Shireau' to be
# found at (https://freesound.org/people/maurolupo/sounds/212669/) and some drumsamples
# from Partners In Rhyme (look for: Free Drum Loop Downloads: Drum 'n' Bass).
# Shireau
use_bpm 170
hihats = "~/projects/sonicpi/audio/samples/looplords/07/"
View superflu-02.rb
# Superflu v2
# filename: superflu-02.rb
# Listen to version 1 at: https://soundcloud.com/mbutz/superflu-1
use_bpm 120
# Download sample from: www.mkblog.org/download/superflu.wav
# and adjust path to sample:
path="~/projects/sonicpi/playground/audio/samples/sonicpi"
# Unfortunately I did not save the code for the creation of this loop
@mbutz
mbutz / Sonic Pi Live Looper with touchosc: Controller Script
Last active Nov 5, 2017
Sonic Pi Live Looper with touchosc: Controller, Library and touchosc layout
View Sonic Pi Live Looper with touchosc: Controller Script
# key: live looper touchosc
# filename: live_looper_touchosc.sps
# point_line: 1
# point_index: 2
# --
# Please configure connections between Sonic Pi and touchosc:
set :ip, "192.168.2.150"
set :port, 4000
# where can this script find the library?
View ARM, Midi
use_bpm 120
use_synth :piano
use_synth_defaults attack: 0.0, release: 0.75, stereo_width: 1, vel: 0.15
phrase_len = 64
cycle_len = phrase_len * 3 # here: 4 bars
chn = 1
live_loop :metro do
sleep 4
View Live Looper (controller)
# key: live looper
# point_line: 1
# point_index: 2
# --
# filename: ctl-live-looper.rb
set :metro_vol, 0.5
set :my_bpm, 120
set :playback_master, 10
set :rec_level, 2
View Live Looper
# Basic live looper with Midi Control
# filename: lib-live-looper.rb
# Jack-Connections:
# Midi-Controller => Midi Through
# Soft Synth => Supercollider
# Setup for Arturia Minilab mkII
# Arm track for recording
# Pad 1 -> Track 1
View sonic-pi-live-looper-proof-of-concept.rb
# See https://www.youtube.com/watch?v=gm11KxJyYCA for a video example
use_bpm 120
# 8-beat loop to synchronize live_loops and
# to know, when recording will start which is:
# after every completed 8-beats, see :drums for
# knowing, when 8 beats are over ...
live_loop :metro do
sleep 8
View modulo-random-melody.rb
# filename: modulo-random-melody.rb
use_bpm 120
live_loop :bar do
sleep 4
end
live_loop :phrase, sync: :bar do
sleep 4 * 2
View noise-to-music-2017-04.30.rb
# filename: noise-to-music-2017-04.30.rb
# You can find a video of a live coded version here: https://www.youtube.com/watch?v=80Sw7G-4nno
use_bpm 120
live_loop :bar do
sleep 4
end
live_loop :ptn, sync: :bar do
You can’t perform that action at this time.