Last active
April 22, 2022 19:42
-
-
Save ruda/c6fdddaa847aff5d0d1852698b41a413 to your computer and use it in GitHub Desktop.
Sonic Pi - Haunted*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Coded by Sam Aaron | |
# Tweaks by Ruda Moura | |
use_random_seed 1972 | |
set :start, current_time | |
live_loop :haunted do | |
sample :perc_bell, rate: rrand(-1, 2), amp: rrand(0.9, 1.1) | |
sleep rrand(0.5, 4) | |
set :delta, current_time - get[:start] | |
if get[:delta] > 28 | |
stop | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment