Skip to content

Instantly share code, notes, and snippets.

@samOrbs
Created March 19, 2017 19:14
Show Gist options
  • Save samOrbs/7991b8c5d0b9108d69df5316c0d423be to your computer and use it in GitHub Desktop.
Save samOrbs/7991b8c5d0b9108d69df5316c0d423be to your computer and use it in GitHub Desktop.
yves*Pi
sam = "/Users/SamuelOrbyConran/Music/samps/eoe/"
sams = "/Users/SamuelOrbyConran/Music/samps/ripped/"
def evFour
use_random_seed 101
yield (ring 1,1,1,5).shuffle.stretch(32).tick
end
def yaaas
use_random_seed 101
yield (ring 20,20,25).shuffle.repeat(4).stretch(16).tick
end
def att
yield (ring 0.2,0.2,0.2,0.02).stretch(4).tick
end
with_fx (ring :reverb,:gverb).stretch(32).tick(:foo), room: 0.5, damp: 1, mix: 0.5 do
live_loop :lucy do
use_random_seed 102
za = yaaas{|i|i}
at = att{|i|i}
use_bpm 90/2
sample sams,"yves", onset:(line 37, 45, steps: 8).tick(:ra).to_i+za, pan:(ring -1,1,0.2,-0.2).shuffle.repeat(2).tick(:pan), rate: (ring 2,1.99).stretch(64).look(:foo),amp: 0.2, attack: at, release: 10 if(spread 4,5).tick(:spr)
sleep 0.25
sample sams,"yves", onset:(line 92, 100, steps: 8).tick(:raz).to_i+8, rate: (ring 1,-2).stretch(64).look(:foo),amp: 0.3, attack: 0.01, res: 20, release: 10 if(spread 3,4).tick(:sprz)
end
live_loop :euclid_beats do
use_bpm 90/3
sync :lucy
x = evFour{|i|i}
puts (x)
with_fx :slicer, phase: 0.02, phase_offset: 0.1 do
sample sam,"BD",1,rate: 4,beat_stretch: 2, amp: 0.8 if (spread 3, 4).tick
end
sample sam,"HT",1,amp:2,beat_stretch: 2.1 if (spread 1, x).tick(:kk)
sleep 0.25
with_fx :echo, decay: (ring 0.5,0.8).stretch(4).tick(:ech)*4, mix:(ring 0.5,0.8).stretch(4).look(:ech)*0.2, phase: (ring 0.5,0.25).stretch(4).look(:ech) do
sample sam,"SD",1, amp: 0.08, beat_stretch: (ring 0.2,0.4).stretch(x).tick(:bs), rate: (ring 1,1.5).stretch(8).look if (spread 4, 5).tick(:echy)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment