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

**URL:** <https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604>\
**Category:** Creations & Ideas\
**Created:** [February 7, 2024, 8:26pm UTC](https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604 "2024-02-07T20:26:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![beryann](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/beryann/32/3133_2.png) [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Post date:** [February 7, 2024, 8:26pm UTC](https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604/1 "2024-02-07T20:26:07Z")

</div>

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

```ruby
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

```

---

<div class="post-metadata">

**Author:** ![rebelcello](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/rebelcello/32/2602_2.png) [@rebelcello](https://in-thread.sonic-pi.net/u/rebelcello)\
**Post date:** [February 9, 2024, 4:35pm UTC](https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604/2 "2024-02-09T16:35:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![beryann](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/beryann/32/3133_2.png) [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Post date:** [February 9, 2024, 6:10pm UTC](https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604/3 "2024-02-09T18:10:51Z")

</div>

Hi @rebelcello Thanks a lot!! 😀 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! 😉

---

<div class="post-metadata">

**Author:** ![rebelcello](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/rebelcello/32/2602_2.png) [@rebelcello](https://in-thread.sonic-pi.net/u/rebelcello)\
**Post date:** [February 9, 2024, 6:38pm UTC](https://in-thread.sonic-pi.net/t/a-big-rhythm-snippet-inspired-by-2-mr-bomb-tutorials/8604/4 "2024-02-09T18:38:53Z")

</div>

😃 thank you, will do!
