Skip to content

Instantly share code, notes, and snippets.

@kniknoo
Created October 2, 2017 20:35
Show Gist options
  • Save kniknoo/fef3f4738828f219c72c62ab03164793 to your computer and use it in GitHub Desktop.
Save kniknoo/fef3f4738828f219c72c62ab03164793 to your computer and use it in GitHub Desktop.
#Montford
#by KniKnoo
live_loop :bass do
sync :drum if one_in(6)
use_synth :tb303
use_synth_defaults amp: 0.3, res: 0.8, wave: 1, cutoff_attack: 0.03125
nlen = [0.125, 0.25, 0.5].choose
control amp: 0
notes = scale(:f1, :minor_pentatonic).choose
play notes, release: nlen * 1.125, cutoff: rrand(75, 110)
sleep nlen
end
live_loop :drum do
sample :bd_boom
sleep 0.5#[0.25,0.5, 0.75].choose
sample :sn_dolf
sleep 0.5#[0.25, 0.5, 0.75].choose
end
live_loop :hats do
nlen = [0.0625, 0.125, 0.25].choose
4.times do
sample :drum_cymbal_closed, sustain: 0, release: 0.03
sleep nlen
end
end
live_loop :chords do
#use_random_seed 3068
use_synth :dsaw
use_synth_defaults coef: 0.1
nlen = [1,2,3].choose
cho = (chord_degree, [:i, :iii, :vi, :v].ring.tick, :f3, :minor, 4)
if rand() > 0.7 then
3.times do
play scale([:f3, :f4].choose, :minor_pentatonic).choose, amp: 0.25, release: nlen / 2.0
sleep nlen / 4.0
end
else
play chord_invert( cho, [-1, 0, 1].choose), amp: 0.6, release: nlen
sleep nlen
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment