Created
March 4, 2020 03:27
-
-
Save nicoder/9a80fb6abd6d0a6a50aadb176ae2ac3a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
live_loop :a do | |
sample :elec_tick | |
sleep 1 | |
end | |
live_loop :b do | |
sync :a | |
sleep 0.5 | |
sample (ring :elec_triangle, :elec_tick, :elec_twip).tick | |
end | |
live_loop :c do | |
sync :a | |
sleep 0.25 | |
sample :perc_bell, pan: rrand(-1, 1), amp: rand() unless one_in 4 | |
end | |
live_loop :d do | |
sync :a | |
with_fx :echo, mix: one_in(4), phase: (ring 0.25, 0.33, 0.5, 0.67).tick do | |
with_fx :reverb do | |
note = scale(:c, :major, num_octaves: 2).choose | |
use_synth :pluck | |
play note, amp: 0.5, pan: -1 | |
use_synth :dsaw | |
play note, amp: 0.5, pan: 1, cutoff: 30, release: 0.3 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment