Skip to content

Instantly share code, notes, and snippets.

@mgurov
Last active November 26, 2020 16:57
Show Gist options
  • Save mgurov/e0e552b653aec51bb6ae532b4a680fb1 to your computer and use it in GitHub Desktop.
Save mgurov/e0e552b653aec51bb6ae532b4a680fb1 to your computer and use it in GitHub Desktop.
# as per https://sonic-pi.net/tutorial.html#section-A-2
if true
with_fx :reverb, room: 1 do
live_loop :time do
synth :prophet, release: 8, note: :e1, cutoff: 90, amp: 3
sleep 8
end
end
end
if true
live_loop :machine do
sample :loop_garzul, rate: 0.5, finish: 0.25
sample :loop_industrial, beat_stretch: 4, amp: 1
sleep 4
end
end
if true
live_loop :kik do
sample :bd_haus, amp: 2
sleep 0.5
end
end
if true
live_loop :vortex do
with_fx :echo do
use_random_seed 800
notes = (scale :e3, :minor_pentatonic, num_octaves: 3)
16.times do
play notes.choose, release: 0.1, amp: 1.5
sleep 0.125
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment