Skip to content

Instantly share code, notes, and snippets.

View mbutz's full-sized avatar
💭
Cum Deus calculat fit mundus

G. Martin Butz mbutz

💭
Cum Deus calculat fit mundus
View GitHub Profile
# 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/"
@mbutz
mbutz / perf-geneva.rb
Created April 20, 2019 21:19
Geneva Live Coding Exercise
# Geneva Live Coding
# filename: perf-geneva.rb
blips = "~/projects/sonicpi/audio/samples/blips/"
use_bpm 120
live_loop :metro do
sleep 1
end
@mbutz
mbutz / sequencer-strategies-V.rb
Created May 3, 2020 06:46
Sequencer Stategies (Sonic Pi and 0-Coast)
# Sequencer Strategies V
#
# Explorations inspired by Lines Thread "Sequencer Strategies",
# https://llllllll.co/t/sequencer-strategies/25375
#
# Manipulations of Musical Patterns
# by Laurie Spiegel
# September, 1981
# http://retiary.org/ls/writings/musical_manip.html
#
@mbutz
mbutz / 001-2020-12-26.tidal
Last active December 27, 2020 16:19
#001 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #1 from 100
-- 001-2020-12-26.tidal
d1
$ fast 2 $ s "ab:2(5,8)"
# delay 0.5 # delayfb 0.8
# delaytime (range 0.001 0.1 perlin)
# coarse (irand 8) # pan sine
# n (irand 9)
@mbutz
mbutz / 002-2020-12-27.tidal
Created December 27, 2020 16:20
#002 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #2 from 100
-- 002-2020-12-27.tidal
d2 $ "[~ mouth:10]*4 [~? mouth:9? ~]" # room 0.3
d1
$ hpf (slow 8 $ segment 64 $ range 30 4000 sine)
# n ("e5" |+ "<'sus2'i 'sus4'i 'sus2'ii>")
# s "supercomparator"
# gain 0.75
@mbutz
mbutz / 003-2020-12-28.tidal
Created December 28, 2020 06:56
#003 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #3 from 100
-- 003-2020-12-28.tidal
d1
$ jux (rev)
$ off 0.25 (|+ n 3)
$ n ("[c]" |+ irand 5)
# sound "superhammond"
# legato 0.5
# room 0.85
@mbutz
mbutz / 004-2020-12-29.tidal
Created December 29, 2020 12:11
#004 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #4 from 100
-- 004-2020-12-29.tidal
d1
$ n (off 0.75 (+12) $ off 0.25 (+7) $ slow 2 $ "0(3,8) [5 7]")
# sound "supervibe"
# room 1 # size 0.75
d2
$ slow 2
@mbutz
mbutz / 005-2020-12-39.tidal
Created December 30, 2020 12:18
#005 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #5 from 100
-- 005-2020-12-39.tidal
d1
$ jux rev
$ fast 2
$ every 1 (|+ up 0)
$ every 2 (|+ up 2)
$ every 3 (|- note 2)
$ every 4 (|+ up 5)
@mbutz
mbutz / 006-2020-12-31.tidal
Created December 31, 2020 12:38
#006 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #5 from 100
-- 006-2020-12-31.tidal
d1 $ n "[5 5 1 [5 ~ 4 4], 2 0 5 2, 0 ~ [4 3] ~]" # s "glitch" # room 0.25 # gain 0.95
d2 $ n "[[~ 3]!4, 1 ~ ~ [~ ~ 1 ~], ~ 2 ~ 2]" # s "short"
@mbutz
mbutz / 007-2021-01-01.tidal
Created January 1, 2021 19:28
#007 of my 100-Patterns-with-TidalCycles exercise.
-- Pattern #7 from 100
-- 007-2021-01-01.tidal
d1
$ every 2 rev
$ every 3 (jux (# speed "<2 1.75 0.5>"))
$ n "[[4 1] 4 1 [3 3]]" # s "psr" # room "[[0.75 0] 0.75 0 [0.5 0.5]]"
# size 0.5 # cut 1
d2 $ (# speed 0.75) $ n "[0 0] ~ ~ ~ " # gain "[1 0.75] ~ 1 ~" # s "bd"