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
# Define the delay (we wiil change it soon!) | |
delay = 0.90 | |
# Start the opening sequence (with snare drums) | |
3.times do | |
sample :sn_dub | |
sleep 0.45 | |
end | |
sample :sn_zome | |
sleep 0.45 | |
# Define the first a-section, with an industrial loop |
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
# My 99 bottles of beer program, by PokemonCoder @ repl.it and Github | |
# Simply structured, includes a "do you want to play it again?" statement | |
# Of course, there are 99 bottles (you can change this variable and it will still work!) | |
bottles=99 | |
# This will be used if the user wants to exit or not | |
out_of_here=0 | |
# Make sure the user stays in unless they say so (more on this later!) | |
while [ "$out_of_here" -lt 1 ] |
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
use_synth :tb303 | |
cut = 0 | |
define :acid do | |
n = (ring :e1, :e2, :e3).tick | |
play n, release: 0.125, cutoff: cut, res: 0.8, wave: 0 | |
puts cut | |
sleep 0.125 | |
end | |
define :acid2 do | |
for cut in (111).downto(0) do |