Skip to content

Instantly share code, notes, and snippets.

@Nanomancer
Last active December 19, 2018 12:21
Show Gist options
  • Save Nanomancer/7b733a263f813e2c87a4ce738a33bb25 to your computer and use it in GitHub Desktop.
Save Nanomancer/7b733a263f813e2c87a4ce738a33bb25 to your computer and use it in GitHub Desktop.
Quick gist to test fade in....
set_volume! 5
set_mixer_control! amp: 0.1, amp_slide: 0.1
sleep 1 # wait for amp to go down
set_mixer_control! amp: 5, amp_slide: 8
live_loop :doombeat do
# if one_in(3) then sleep [16, 32, 64].choose end
if one_in(2)
puts "doombeat 1"
cut = rrand(60, 80)
16.times do
sample :loop_industrial, beat_stretch: 2, amp: 0.225, cutoff: cut
sleep 2
end
elsif one_in(3)
puts "doombeat 2"
16.times do
sample :loop_industrial, beat_stretch: 2, amp: 0.225, cutoff: range(60, 85, step: 2.5).mirror.ring.tick
sleep 2
end
else
puts "doombeat 3"
cut = rrand(70, 80)
8.times do
sample :loop_industrial, beat_stretch: 4, amp: 0.25, cutoff: cut
sleep 4
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment