# Recreating the pulsating beep NY state of mind

**URL:** <https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423>\
**Category:** Creations & Ideas\
**Created:** [December 5, 2023, 6:07pm UTC](https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423 "2023-12-05T18:07:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roguentropy](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@roguentropy](https://in-thread.sonic-pi.net/u/roguentropy)\
**Post date:** [December 5, 2023, 6:07pm UTC](https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423/1 "2023-12-05T18:07:05Z")

</div>

[This beat](https://www.youtube.com/watch?v=-DXw4AtwclU) is one of my favourites from DJ premier, I am just trying to get the first part of the song right i.e the pulsating beep, not able to get a sound close to it ☹ any help is appreciated

I was able to put together the rest of the song! beats, bassline and the piano

```ruby
use_bpm 90

beep_note = :elec_ping
live_loop :beep do
  ##| stop
  with_fx :flanger do
    3.times do
      sample beep_note, pitch: 3, amp: 6
      sleep 0.75
    end
    sleep 0.25
    2.times do
      sample beep_note, pitch: 3, amp: 6
      sleep 0.75
    end
  end
end

grid1 = [
  1,0,0,0,
  2,0,0,0,
  0,2,1,0,
  2,0,0,1,
  1,0,1,0,
  2,0,0,0,
  0,2,1,0,
  2,0,0,0
]

live_loop :drum1 do
  32.times do |index|
    puts index, grid1[index]
    with_fx :reverb, mix: 0.3 do
      sample :drum_heavy_kick, release: 0.8 if grid1[index] == 1
      sample :drum_snare_hard, amp: 0.5, release: 0.1 if grid1[index] == 2
    end
    sleep 0.25
  end
end

```

I have also uploaded my full example here [https://www.youtube.com/watch?v=mPaE8j3YJC4](https://www.youtube.com/watch?v=mPaE8j3YJC4)

---

<div class="post-metadata">

**Author:** ![mrbombmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/mrbombmusic/32/2282_2.png) [@mrbombmusic](https://in-thread.sonic-pi.net/u/mrbombmusic)\
**Post date:** [December 6, 2023, 3:17am UTC](https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423/2 "2023-12-06T03:17:24Z")

</div>

Love seeing the attempt to recreate some classic hip hop beats!

I can’t help in regards to the beep (you might just wanna look into using the actual sample)  
but I tinkered around with the drumbeat you have. The original beat has some bounce to it that works better if you are subdividing your grid into groups of 6 instead of 4 which has a more even feel that doesn’t swing like it does in the Preemo beat.

Check this out

```ruby
use_bpm 80

grid1 = [
  1,0,0,0,0,0,
  2,0,0,0,0,0,
  0,0,2,1,0,0,
  2,0,0,0,0,1,
  1,0,0,1,0,0,
  2,0,0,0,0,0,
  0,0,2,1,0,0,
  2,0,0,0,0,0
]

#for faint accents on the hihat
hh = [2, 8, 14, 20, 26, 32, 38, 44]

live_loop :drum1 do
  48.times do |index|
    puts index, grid1[index]
    with_fx :reverb, mix: 0.3 do
      sample :drum_heavy_kick, release: 0.8 if grid1[index] == 1
      sample :drum_snare_hard, amp: 0.5, release: 0.1 if grid1[index] == 2
      sample :drum_cymbal_closed if index % 3 == 0
      hh.length.times do |i|
        sample :drum_cymbal_closed, amp: 0.05 if index == hh[i]
      end
    end
    sleep 1/6.0
  end
end

```

You could try this with the bass and piano parts to capture the bouncy feel of the original too.

---

<div class="post-metadata">

**Author:** ![roguentropy](https://avatars.discourse-cdn.com/v4/letter/r/58f4c7/32.png) [@roguentropy](https://in-thread.sonic-pi.net/u/roguentropy)\
**Post date:** [December 6, 2023, 8:31am UTC](https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423/3 "2023-12-06T08:31:20Z")

</div>

OMG yes much bouncier! I love it, thanks so much

---

<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:** [December 6, 2023, 9:13am UTC](https://in-thread.sonic-pi.net/t/recreating-the-pulsating-beep-ny-state-of-mind/8423/4 "2023-12-06T09:13:05Z")

</div>

Hey thanks for this - I loved the nuanced vibe compared with my beginner elephantine stomping 😃 and wanted to understand how the grid worked musically (not being a coder). So worked out it was a 6/8 bar and then had a play around and put a bass on it.

Funny - when I stopped the run, there was a weird distant after-music which sounded like the rhythm of the Tardis taking off.

Then I tried this with the grid. It worked!:

/// 2,1,1,2,0,1,  
2,1,1,2,0,1,  
2,1,1,2,0,1,  
2,1,1,2,0,1,  
2,1,1,2,0,1,  
2,1,1,2,0,1,  
2,1,1,2,0,1,  
///

Maybe not your vibe 😃 but your generous code above has helped me to learn a lot. Thanks! Also Chat GPT was v helpful in explaining ‘what’s the code structure doing in musical terms?’ Hope it was OK to paste in in there - do let’s know if not.
