Skip to content

Instantly share code, notes, and snippets.

@vbop9834
Created August 14, 2021 04:42
Show Gist options
  • Save vbop9834/5f585c7ac46c6069b121870ad6b3b809 to your computer and use it in GitHub Desktop.
Save vbop9834/5f585c7ac46c6069b121870ad6b3b809 to your computer and use it in GitHub Desktop.
use_bpm 90
live_loop :wow do
sample :drum_bass_hard
sleep 0.5
sample :drum_heavy_kick
sleep 0.5
end
define :basszone do |wow|
sync :wow
sample :bass_hit_c, compress: wow/10
sample :drum_tom_lo_hard, amp: wow/10
end
live_loop :wow2 do
cue :wow
wow2speed = [1, 3, 5, 10]
wow = wow2speed.tick
basszone wow
sleep 0.75
end
define :mainmelody do |notes|
with_fx :reverb do
use_synth :piano
note = notes.choose
play note, amp: 1
sleeptick = [0.25, 0.5, 0.25, 0.25, 0.5]
sleep sleeptick.tick
play notes.reverse.tick
sleep sleeptick.tick
play notes.choose
sleep sleeptick.tick
play notes.choose
sleep sleeptick.tick
play notes.tick
sleep sleeptick.tick
end
end
live_loop :main do
sync :wow
1.times do
sleep 1
end
4.times do
notes = (scale :e2, :minor_pentatonic)
mainmelody notes
end
4.times do
notes = (scale :b1, :minor_pentatonic)
mainmelody notes
end
end
define :harmonymanmanman do
use_synth :growl
notes = (scale :e3, :minor_pentatonic)
play notes.choose, release: rrand(0, 5), amp: 0.5, release: 0.5
sleep 0.5
play notes.choose, release: rrand(0,5), amp: 0.4, pitch: 2, release: 0.5
sleep 0.5
end
live_loop :harmony do
sync :wow
1.times do
sleep 1
end
harmonymanmanman
end
live_loop :somethin do
sync :wow
use_synth :pluck
sleep 12
with_fx :ixi_techno, mix: rrand(0, 0.3), phase: 0.4 do
12.times do
n = (scale :e2, :minor_pentatonic).choose
play n, release: rrand(0, 0.5), cutoff: rrand(0, 100), res: 0.8, wave: rrand(0, 1), amp: 1
sleep 0.25
end
end
end
live_loop :ambi do
sync :wow
sleep 32
with_fx :reverb do
2.times do
sample :vinyl_scratch, amp: 0.2, release: 0.5
sleep 0.5
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment