Skip to content

Instantly share code, notes, and snippets.

@jprudent
Created Sep 28, 2020
Embed
What would you like to do?
loop3
bass = (ring :d, :r, :r, :a, :f5, :r, :a, :r)
bass2 = (ring :d, :r, :r, :Bb, :g5, :r, :Bb, :r)
live_loop :hanabera do
sync :metronom
use_synth :fm
if (one_in(12))
melody = bass2
else
melody = bass
end
16.times do
tick
play melody.look
play (melody.look - 12)
sleep 0.125
end
end
with_fx :reverb do
live_loop :space_light do
sync :metronom
with_fx :slicer , phase: 0.5, pulse_width: 0.8, wave: 0 do
synth :blade, note: (ring :d, :a, :f5).choose, release: 8, cutoff: 100, amp: 2
end
sleep 8
end
end
live_loop :ind do
sync :metronom
sample :loop_industrial, beat_stretch: 1, cutoff: 100, rate: 1
sleep 1
end
live_loop :drums do
cue :metronom
sample :bd_haus, cutoff: 110
synth :beep, note: 49, attack: 0, release: 0.1
sleep 0.5
end
@jprudent
Copy link
Author

jprudent commented Sep 28, 2020

bass = (ring :d, :r, :r, :a, :f5, :r, :a, :r)
bass2 = (ring :d, :r, :r, :Bb, :g5, :r, :Bb, :r)
interval = knit(-12, 5, -7, 1)
live_loop :hanabera do
  sync :metronom
  use_synth :fm
  if (one_in(12))
    melody = bass2
  else
    melody = bass
  end
  i = interval.choose
  16.times do
    tick
    play melody.look, release: 0.1
    play (melody.look + i), release: 0.3
    sleep 0.125
  end
end

with_fx :reverb do
  live_loop :space_light do
    sync :metronom
    with_fx :slicer , phase: 0.5, pulse_width: 0.8, wave: 0 do
      synth :blade, note: (ring :d, :a, :f5).choose, release: 8, cutoff: 100, amp: 2
    end
    sleep 8
  end
end


live_loop :ind do
  sync :metronom
  sample :loop_industrial, beat_stretch: 1, cutoff: 100, rate: 1
  sleep 1
end

live_loop :drums do
  cue :metronom
  sample :bd_haus, cutoff: 110
  synth :beep, note: 49, attack: 0, release: 0.1
  sleep 0.5
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment