Skip to content

Instantly share code, notes, and snippets.

@dirkmueller
Created February 27, 2023 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirkmueller/bb74ec6292cf62f17283dd1829de73b9 to your computer and use it in GitHub Desktop.
Save dirkmueller/bb74ec6292cf62f17283dd1829de73b9 to your computer and use it in GitHub Desktop.
Frankenclaps
# Welcome to Sonic Pi
path = "/home/dirk/src/tmp/sounds/samples/frankencampus/"
use_bpm 84
if true then
sample "#{path}/door_bikeshed_close.wav", pan: 1
sleep 3
sample "#{path}/door_bikeshed_lock.wav", pan: 0
sleep 2
sample "#{path}/door_elevator_open.wav", pan: 0
sleep 2
sample "#{path}/door_elevator_close.wav", pan: 0
sleep 7
end
sample "#{path}/door_main_area_close.wav", pan: 0
sleep 2
sample "#{path}/door_opener_triple.wav", pan: 0
if true then
live_loop :hats do
with_fx :reverb, room: rrand(0.1, 0.3) do
sample "#{path}/door_opener_triple.wav", amp: 0.8
sleep 0.5
sample "#{path}/door_opener_single.wav", amp: 0.8
sleep 0.5
sample "#{path}/door_opener_single.wav", amp: 0.8
sleep 0.5
sample "#{path}/door_opener_single.wav", amp: 0.8
sleep 0.5
end
end
end
define :snare do
sample "#{path}/door_main_area_open.wav", amp: 1
end
define :kick do
sample "#{path}/door_main_area_close.wav", amp: 1
end
live_loop :drums do
with_fx :reverb, room: rrand(0.5, 0.8) do
kick
sleep 1
snare
sleep 1
sleep 0.05
sample :drum_heavy_kick, amp: 0.5
sleep 0.2
kick
sleep 0.75
snare
sleep 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment