Created
April 27, 2020 00:30
-
-
Save hallfox/770f2215f62d0bb6639654409faf0154 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
use_bpm 65 | |
with_fx :reverb, mix: 0.5 do | |
live_loop :oceans do | |
s = synth [:cnoise].choose, amp: rrand(0.1, 0.5), attack: rrand(0, 4), sustain: rrand(0, 2), release: rrand(1, 5), cutoff_slide: rrand(0, 5), cutoff: rrand(60, 100), pan: rrand(-1, 1), pan_slide: rrand(1, 5), amp: rrand(0.5, 1) | |
control s, pan: rrand(-1, 1), cutoff: rrand(60, 110) | |
sleep rrand(2, 4) | |
end | |
end | |
live_loop :progression do | |
use_synth :subpulse | |
use_synth_defaults duration: 2, amp: 0.5 | |
[4, 5, 8, 1].each do |d| | |
play_pattern_timed (chord_degree d, :Eb3, :major, 3), [0.5] | |
sleep 1.5 | |
play (chord :Eb2, :major)[d-4] | |
sleep 1 | |
end | |
end | |
define :melody_1 do | |
use_synth :pretty_bell | |
use_synth_defaults release: 0.5, amp: 0.7, cutoff: 90, amp: 0.5 | |
2.times do | |
play_pattern_timed [:C6, :C6, :G5, :G5, :F5, :F5, :D6, :D6], [0.75, 0.25] | |
end | |
play_pattern_timed [:Eb6, :Eb6, :D6, :D6, :G6, :G6], [0.75, 0.25] | |
play_pattern_timed [:F6, :G6, :F6], [0.125] | |
sleep 0.375 | |
play_pattern_timed [:F6, :Eb6, :Eb6, :D6, :D6, :C6, :C6, :Bb5, :Bb5], [0.25, 0.75] | |
end | |
live_loop :melody, sync: :progression do | |
melody_1 | |
end | |
live_loop :voices, sync: :progression do | |
use_synth :hollow | |
use_synth_defaults sustain: 4 | |
play_pattern_timed [:Ab3, :Bb3, :Eb4, :Eb4], [4], amp: 0.75 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment