Skip to content

Instantly share code, notes, and snippets.

View mbutz's full-sized avatar
💭
Ducunt volentem fata - nolentem trahunt.

G. Martin Butz mbutz

💭
Ducunt volentem fata - nolentem trahunt.
View GitHub Profile
@mbutz
mbutz / Deep_Bass.rb
Created May 13, 2016 19:56
Deep Base - Minimal Techno Track with Sonic Pi
use_bpm 125
set_sched_ahead_time! 1
use_debug false
# Timer Loops -------------------------------------------------------
live_loop :atom do
sleep 0.25
end
live_loop :bar, sync: :atom do
@mbutz
mbutz / test-2016-05-16
Last active November 2, 2017 19:21
Performance Issue Sonic Pi, 2016-05-16
use_bpm 125
set_sched_ahead_time! 4
# Timer Loops -------------------------------------------------------
live_loop :atom do
sleep 0.25
end
live_loop :bar, sync: :atom do
@mbutz
mbutz / otaku
Created May 30, 2016 19:44
From the series R(emodelling) E(electronic) C(lassics) with Sonic Pi: Otaku (1992)
# From the series R(emodelling) E(electronic) C(lassics) with Sonic Pi
# Black Dog Productions - Otaku (1992)
use_bpm 120
# Download sample and adjust path to your environement
path = "/home/marty/projects/leuphana-local/sonic-pi/mb/samples/", 0
load_sample path, 2
# http://www.freesound.org/people/kendallbear/sounds/123804/
clap = path, 2
@mbutz
mbutz / amina.rb
Created June 26, 2016 21:11
From the series R(emodelling) E(electronic) C(lassics) with Sonic Pi: Amine (2000)
# After "Amine" by Arovane
use_bpm 142
# External samples
sn = "/home/marty/projects/leuphana-local/sonic-pi/mb/samples/edm-drums/EDM\ Snares/edm-snare-22.wav"
#sn = "/home/marty/projects/leuphana-local/sonic-pi/mb/samples/edm-drums/EDM\ Snares/edm-snare-27.wav"
### Mixer
play_bass_drum = 0
@mbutz
mbutz / slicing-samples.rb
Created July 3, 2016 11:07
Slicing and Rearranging Samples
# Martin Butz, mb@mkblog.org
#
# Code heavily based on:
# Xavier Riley, https://gist.github.com/xavriley/30444c1773434014c9ee
#
# Uses a sample from freesound:
# https://freesound.org/people/jobro/sounds/52535/
# 32 bars, 128 beats (one beat = quarter)
frsnd_sample = "/home/marty/projects/leuphana-local/sonic-pi/mb/samples/149826__jobro__big-time-breakbeat.wav"
@mbutz
mbutz / jam.rb
Last active July 21, 2020 06:08
JAM, a tune made with Sonic Pi
# From the series R(modelling) E(lectronica) C(lassics) comes this @Sonic_Pi piece called "JAM":
# A trimmed remix of a nice mellow tune by the rather unknown German Electronica Duo
# called 'LEM Productions' (arguably a 'classic' - but for me it is): https://soundcloud.com/mbutz/jam
# Made with Sonic Pi (loops pre-coded, mixing live-coded) using edited samples from
# Sonatina Symphonic Orchestra (http://sso.mattiaswestlund.net/) available under CC Sampling Plus 1.0
use_bpm 120
set_volume! 1
live_loop :timer do
@mbutz
mbutz / live-coding-2016-09-16.rb
Last active November 2, 2017 19:20
My first Live Coding with Sonic Pi
# Live Coding with Sonic Pi
# Martin Butz, mb@mkblog.org, 2016-09-16
# You will find the complete video session here: https://youtu.be/80Sw7G-4nno
# Live Loops for timing
set_volume! 1
use_bpm 120
live_loop :bar do
sleep 4
@mbutz
mbutz / in-the-woods.rb
Last active November 2, 2017 19:19
Live Coding with Sonic Pi, 2016-10-15, Ambient Tune
# Some Live Coding with Sonic Pi
# Using Emacs, sonic-pi.el (thanks to Joseph Wilk) and some home-baked Guitar Samples
# I also use snippets to speed things up ...
# Video of the session: https://www.youtube.com/watch?v=3zGt-1JSfgA
use_bpm 120
# Download samples at: http://www.mkblog.org/download/samples-sonicpi-lc-2016-10-15.zip
path = "/PATH/TO/SAMPLES/"
@mbutz
mbutz / arm.rb
Last active November 2, 2017 19:19
ARM - A live coding study in randomness and control with Sonic Pi
use_bpm 120
use_synth :piano
use_synth_defaults attack: 0.0, release: 0.75, stereo_width: 1, vel: 0.15
vol = (knit 0.75, 3, 0.125, 2, 0.25, 4, 0.35, 3).pick
vol_master = 10
with_fx :reverb, room: 0.75, mix: 0.65 do
live_loop :bass do
@mbutz
mbutz / mother-of-canon.rb
Created December 29, 2016 12:37
Canon Experiment with Sonic Pi (based on Kyrie eleison by Herbert Beuerle)
# mother-of-canon.rb
# Kyrie eleison, Herbert Beuerle
use_bpm 180
use_synth :fm
with_fx :echo, phase: 8, decay: 1, mix: 0.75 do
live_loop :canon do
tick(:cnt)