Skip to content

Instantly share code, notes, and snippets.

View OnixIsThePewterGod's full-sized avatar

OnixIsThePewterGod

View GitHub Profile
@OnixIsThePewterGod
OnixIsThePewterGod / industrial_beat.txt
Created October 27, 2019 17:53
Industrial Beat - my Sonic Pi masterpiece. | 100 lines, 2 minutes 0 seconds.
# 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
@OnixIsThePewterGod
OnixIsThePewterGod / 99bottlesofbeer.sh
Created November 23, 2019 16:26
My 99 bottles of beer program in bash - simply structured
# 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 ]
@OnixIsThePewterGod
OnixIsThePewterGod / simple_acid.rb
Created February 16, 2020 02:19
Easy acid in 40 lines or less
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