Created
January 4, 2018 17:06
-
-
Save Freemoth/9d65fbe1431f47cd81347581870ff80d to your computer and use it in GitHub Desktop.
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
# A Renewed Eleven, coded by sonic(K) | |
# 20May2017; tweaked 26November2017 | |
use_bpm 120 | |
use_debug false | |
notes = [50, 55, 60, [65, 120].choose, 70, 75, 80] | |
x = 0 | |
live_loop :a do | |
a = rrand_i(1, 7) | |
puts "a: #{a-1}" | |
use_synth :hollow | |
use_synth_defaults release: 0.5, cutoff: [90, 80, 70].choose | |
with_fx :gverb, amp: 0.8, mix: 0.8, tail_level: [0.7, 0.5].choose do | |
play notes[a-1], pan: rrand(-0.42, 1) | |
end | |
sleep a | |
end | |
live_loop :b do | |
b = rrand_i(1, 7) | |
puts "b: #{b-1}" | |
use_synth :hollow | |
use_synth_defaults noise: 3, amp: [1, 0.5, 1.23].choose, cutoff: 93 | |
play notes[b-1], pan: rrand(-1, 0.42) | |
sleep b | |
end | |
live_loop :p do | |
use_synth [:beep, :blade].choose | |
use_synth_defaults amp: 0.05 | |
x += 1 | |
if x < 12 | |
with_fx :ring_mod, freq: rrand(25, 30) do | |
play [80, 85, nil, 90, [95, 100].choose, nil].choose, | |
release: [0.1, 0.3, 0.5].choose, pan: rrand(-0.3, 0.3) | |
end | |
end | |
puts x | |
if x == 6 || x == [20, 21].choose | |
with_fx :reverb, pre_mix: [0, 1].choose, room: 0.2, mix: 0.45 do | |
with_fx :distortion, distort: rrand(0.4, 0.6), mix: 0.7 do | |
sample :drum_snare_soft, rate: rrand(2, 1.9), amp: [1, 1.25].tick, pan: rrand(0, 0.1) | |
end | |
end | |
end | |
if x == [7, 10, 21].choose | |
2.times do | |
sample :drum_snare_soft, rate: rrand(1.6, 1.8), amp: [1, 1.4].tick, pan: rrand(0.1, 0.2) | |
sleep 0.25 | |
end | |
end | |
if x == 1 || x == 3 || x == 9 | |
with_fx :reverb, room: 0.4, mix: rrand(0.4, 0.7) do | |
sample [:drum_cymbal_soft, :drum_cymbal_closed].choose, rate: rrand(1.99, 2) | |
end | |
end | |
if x == 22 | |
x = 0 | |
tick_reset | |
end | |
sleep [0.25, 0.5].choose | |
end | |
live_loop :percky do | |
use_synth :piano | |
use_synth_defaults pan: 0.3, release: [0.4, 1].choose, amp: 2, stereo_width: 0.5 | |
with_fx :reverb, mix: 0.3, room: 0.25, damp: 0 do | |
with_fx :echo, decay: 1, phase: [0.25, 0.75].choose do | |
play_chord chord([:c3, :f3, :g3].choose, [:sus4, '5', :sus2, :m11].choose) | |
end | |
end | |
with_fx :slicer, phase: 0.25, pulse_width: 0.125 do | |
2.times do | |
sample :elec_fuzz_tom, rate: 0.75, amp: 0.3 | |
sample :ambi_drone, amp: 0.5, pan: rrand(-0.6, 0.6) | |
sleep [0.5, 0.75, 1].choose | |
end | |
end | |
2.times do | |
sample :bd_808, pan: 0.2, amp: 1.2 | |
sleep 1 | |
end | |
end | |
live_loop :bass do | |
use_synth :fm | |
use_synth_defaults pan: -0.3, attack: 0.01, release: 0.12, amp: 0.3 | |
sample :bd_klub, pan: -0.2, amp: 1.2 | |
play_pattern_timed [48-12, 50-12, 51-12, 52-12, 54-12, 55-12, 54-12, 52-12, 57-12], | |
[1, 0.5, 0.5, 0.25, 0.25, 0.5, 0.75, 0.75] | |
end | |
live_loop :bass2 do | |
sleep 11 | |
2.times do | |
use_synth :piano | |
use_synth_defaults pan: -0.3, release: 0.25, amp: 0.4, | |
attack_level: 1.5, stereo_width: 0.35 | |
with_fx :reverb, mix: 0.3, room: 0.2, damp: 0 do | |
play_pattern_timed [48-12, 50-12, 51-12, 52-12, 54-12, 55-12, 54-12, 52-12, [60-12, 57-12].choose], | |
[1, 0.5, 0.5, 0.25, 0.25, 0.5, 0.75, 0.75] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment