A (big) rhythm snippet inspired by 2 Mr Bomb' tutorials

Enjoy…If you see something to improve, tell ot to me, it will be with pleasure! :grinning:

use_bpm 120

a = [1,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0]
b = [3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]
c = [0,0,4,0,4,0,4,4,4,0,0,0,4,0,4,4]
d = [0,0,5,0,0,5,5,0,0,5,0,0,5,0,0,5]
e = [0,6,0,0,0,0,0,0,6,0,0,6,0,0,0,0]
f = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]


live_loop :drums do
  with_fx :reverb, room: 0.9, mix: 0.4 do
    16.times do |i|
      sample :bd_haus, rpitch: rrand_i(1,12) if a[i] == 1
      sample :sn_zome,rate: rrand(1, 4), pan: -1 if a[i] == 2
      sample :drum_cymbal_closed, amp: 0.5 if b[i] == 3
      sample :drum_cowbell, amp: 0.5, num_slices: 8, slice: pick if c[i] == 4
      sample :drum_tom_hi_soft, cutoff: rrand(60,120)  if d[i] == 5
      sample :misc_crow,amp: 0.6, num_slices: 8, slice: pick  if e[i] == 6
      sample :tabla_tas1, amp: 0.7, hpf: 0.5, pan: rrand(-1, 1) if f[i] == 7
      sleep 0.5
    end
  end
end


live_loop :dense do
  with_fx :echo, phase: 0.5, decay: 0.1 do
    use_random_seed 800
    density (ring, 2, 4, 6, 8).tick do
      play scale(:e, :minor_pentatonic).choose, amp: 0.3, pan: rrand(-1, 1)
      sleep 1
    end
  end
end

2 Likes

I enjoyed! Nice vibe - it’s great to see the code and how you map the different tracks.

Hi @rebelcello Thanks a lot!! :grinning: The idea at the beginning is from @mrbombmusic and i wanted to make a kind of excercise to memorize the way of coding these various grids of rythm…it’s up to you now to make someything new with it! :wink:

1 Like

:smiley: thank you, will do!

1 Like