Skip to content

Instantly share code, notes, and snippets.

@pgagnidze
Last active August 23, 2021 14:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgagnidze/fd01ddb9332c336d7e853f121538c953 to your computer and use it in GitHub Desktop.
Save pgagnidze/fd01ddb9332c336d7e853f121538c953 to your computer and use it in GitHub Desktop.
# Coded by Papuna Gagnidze
live_loop :beat do
with_fx :ixi_techno, phase: 1.5 do
use_synth :fm
play :d3, attack: 0.5, amp: (ring 0.3, 0.4, 0.5).look
sleep 0.25
end
end
live_loop :snare do
sync :melody
sample :sn_zome, cutoff: 90, rate: -0.5, release: 0.1, attack: 2, amp: 0.5
sleep 5
end
notes = (scale :d3, :aeolian)
live_loop :melody do
with_fx :echo, phase: 1.25 do
use_synth :beep
play notes.choose, amp: 1.1
sleep 0.75
end
end
live_loop :drum do
sync :beat
patterns = [
'111-1-1',
'1--1--1'
]
pattern = patterns.ring[tick]
pattern.split('').each do |c|
if c != '-'then
sample :drum_bass_hard, amp: (ring 0.3, 0.4, 0.5).look, cutoff: 120, rate: 0.5
end
sleep 0.125
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment