Skip to content

Instantly share code, notes, and snippets.

@paradoxinversion
Created May 6, 2020 23:41
Show Gist options
  • Save paradoxinversion/ebf021213b311b42b294b7f357a6eab6 to your computer and use it in GitHub Desktop.
Save paradoxinversion/ebf021213b311b42b294b7f357a6eab6 to your computer and use it in GitHub Desktop.
define :starterSynth do |n|
with_fx :hpf do
synth :beep, note: n, amp: 0.50, attack:0.50
end
synth :beep, note: n + 12 , amp: 0.150
with_fx :bpf, centre: 90 do
synth :saw, note: n, cutoff: 75
end
end
define :cleanBouncySynth do |n|
synth :mod_beep, note: n , mod_range: 0.75, mod_pulse_width: 0.50, release: 0.50, amp: 0.75
end
define :backingSynth do |n|
with_fx :lpf, cutoff: 90 do
with_fx :eq, mid: -0.25, high: -0.1 do
with_fx :ixi_techno, phase: 2 do
synth :pluck, note: n, sustain_level: 0.75, coef: 0.5, attack: 0.01
end
end
end
end
define :choppyHighSynth do |n|
with_fx :hpf, cutoff: 85 do
with_fx :slicer, phase:0.25 do
synth :saw, note: n, amp:0.60, pulse_width: 0.5, cutoff: 85
end
end
synth :saw, note: n, amp: 0.40, attack: 0.25, release: 0.5, sustain_level: 0.5, cutoff: 80
end
define :phatSynth do |n|
with_fx :bpf, centre:90, res: 0.5 do
synth :sine, note: n + 24, attack: 0.01, sustain_level: 0.25, env_curve: 7
end
with_fx :lpf, cutoff: 110 do
with_fx :eq, high: -0.7, low: -0.75 do
synth :saw, note: n, env_curve: 6, cutoff: 80
with_fx :tanh, krunch: 8 do
synth :piano, note: n
end
end
end
end
with_fx :reverb do
live_loop :simpleSlow do
sync :start
use_bpm 90
#Good for looping
earlyMorning = 200 # |to met|
simpleAfternoon = 101010 #phat |to marsh|
transit = 6667
marsh = 8400 # |to earlyMorning|
met = 89292 # |to simpleAfternoon|
# Good for transitions
cuteCat = 35000 # use lightly? |to met|
goodDog = 40000
baz = 50000
notes = (scale :e3, :major_pentatonic)
use_random_seed simpleAfternoon
16.times do
n = notes.choose
##| cleanBouncySynth n
starterSynth n
phatSynth n
backingSynth n
##| choppyHighSynth n
sleep 0.50
end
end
end
live_loop :bassdrums do
cue :start
cue :t
use_bpm 90
morningShower = 500
subway = 3500
use_random_seed 500
16.times do
sample :bd_pure, amp: 0.50 if one_in(2)
with_fx :ixi_techno do
sample :drum_snare_soft, lpf: 110 if one_in(3)
end
sample :drum_tom_hi_soft, lpf: 70 if one_in(4)
sleep 0.50
end
end
live_loop :filldrums do
use_bpm 90
morningShower = 500
subway = 3500
wandering = 10101010
use_random_seed morningShower
32.times do
with_fx :eq, high: -0.75 do
with_fx :hpf, cutoff: 70 do
sample :elec_plip, amp: 0.50, lpf: 105 if one_in(2)
with_fx :ixi_techno do
sample :drum_snare_hard, lpf: 120 if one_in(3)
end
sample :drum_cymbal_closed, lpf: 90 if one_in(2)
end
end
sleep 0.25
end
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment