# A cool attitude (30 bpm)

**URL:** <https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851>\
**Category:** Creations & Ideas\
**Created:** [May 14, 2024, 9:30pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851 "2024-05-14T21:30:39Z")\
**Posts on this page:** 12\
**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:** [May 14, 2024, 9:30pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/1 "2024-05-14T21:30:39Z")

</div>

“A cool attitude”  
Thanks for hearing! If you see someting to improve in my code, tell it to me…I hope you’ll like it… 😊

[soundcloud “cool attitude”](https://soundcloud.com/beryann-parker/cool-attitude?in=beryann-parker/sets/sonic-pi)

```ruby
use_bpm 30

a = 0.15
b = 0.2

live_loop :round do
  with_fx :reverb, room: 0.8, mix: 0.8 do
    with_fx :flanger, phase: 0.8, wave: 2, mix: 0.5 do
      
      play 60,attack: b, release: 10, amp: a
      play 64,attack: b, release: 20, amp: a
      play 67,attack: b, release: 30, amp: a
      play 71,attack: b, release: 40, amp: a
      play 72,attack: b, release: 50, amp: a
      play 74,attack: b, release: 50, amp: a
      
      sleep 50
      
    end
  end
end

live_loop :boom, delay: 8 do
  with_fx :reverb, room: 0.8, mix: 0.7 do
    use_synth :bass_foundation
    play (ring, :g2,:g2,:c3,:c1).tick, amp: 1.5, release: 1.5
    sleep (ring, 0.5,0.5,0.5,2.5).look
    
  end
end

with_fx :reverb, room: 0.9, mix: 1 do
  live_loop :piano, delay: 16 do
    with_fx :reverb, room: 0.9, mix: 1 do
      with_fx :flanger, phase: 0.5, stereo_invert_wave: 1 do
        use_synth :dull_bell
        play 86, release: 10, attack: 0.4, attack_level: 0.3, amp: 0.2
        sleep 10
      end
    end
  end
  
  
  
  live_loop :ryth, delay: 24 do
    cue :round
    sample :loop_breakbeat, beat_stretch: 2
    sleep 2
  end
end

```

---

<div class="post-metadata">

**Author:** ![brendanmac](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/brendanmac/32/2809_2.png) [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Post date:** [May 15, 2024, 5:28am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/2 "2024-05-15T05:28:53Z")

</div>

Love it! The shifting sine tones, the rich bass, the laidback breakbeat, and the slowly shifting different textures and patterns. I usually stay away from reverbs, but it works really well on the drum loop. Maybe place the reverb fx _outside_ the live loops to save cpu cycles, but your sleep times are quite long so I can’t imagine that this will be too resource heavy.

Again, this shows that Sonic Pi really **is** a musical instrument - in that, you can create **any** style or genre of music with it.

PD-Pi

---

<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:** [May 15, 2024, 9:42am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/3 "2024-05-15T09:42:48Z")

</div>

thanks a lot @brendanmac !! It’s very pleasant to read your appreciation! 😊  
I discovered something, it’s this the Ziffers mini-notation for, f.i , Sonic Pi:  
[https://github.com/amiika/ziffers](https://github.com/amiika/ziffers)  
and it gives f.i this:

```ruby
zplay "q 4 e 1 1 q 2 1 r #3 4 ", key: "f", scale: "major", synth: :piano

```

or that:

```ruby
z1 "e1",
rules: {
  "1"=>"3",
  "3"=>"2",
  "2"=>"4",
  "4"=>"(1,6)",
  "5"=>"1",
  "6"=>"2"
}, synth: :pretty_bell

```

It makes me think to FoxDot sometimes but it’s normal since ti’s a mini notation!  
Does anyone here codes with it? I am going to learn it, it’s interestinf for a live coding session…

---

<div class="post-metadata">

**Author:** ![brendanmac](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/brendanmac/32/2809_2.png) [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Post date:** [May 15, 2024, 10:08am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/4 "2024-05-15T10:08:55Z")

</div>

I’ve looked at Fox Dot, Tidal Cycles, Orca, as ‘alternatives’ to Sonic Pi, but they appear to require learning a new (or at least unfamiliar) notation system, whereas SPi makes use of very clear instructions: play, sleep, loop, rand, with logical data and control flow. I find inspiration from these other tools in _the kind of music and sound worlds they create_, and then try to copy that style within Sonic Pi. Although this does look like a handy extension to Sonic Pi, might give it a read.

😉  
PD-Pi

---

<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:** [May 15, 2024, 10:38am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/5 "2024-05-15T10:38:14Z")

</div>

You are right @brendanmac Sonic has a very efficient syntax but the ziffers notation in Sonic ( I have just began to study this particular notation) is interesting for fast coding and it mixes very well with the Sonic syntax. I find that mixing these two one can be efficient and productive…If you try it, make a feedback here to have your opinion? 😀  
Beryann

---

<div class="post-metadata">

**Author:** ![brendanmac](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/brendanmac/32/2809_2.png) [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Post date:** [May 15, 2024, 2:39pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/6 "2024-05-15T14:39:07Z")

</div>

(installed and working fine, will PM you once I’ve spent some time with it)

---

<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:** [May 15, 2024, 5:41pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/7 "2024-05-15T17:41:55Z")

</div>

okay brendan @brendanmac What’s great with it, it’s that you can mix the two syntaxes…and it’s work very well! and it’s very useful depending on the context…it would be great to if Sam @samaaron could give his own opinion…  
I have heard too that an another mini-notation exists in Ruby: has someone some information about it? 🙂

---

<div class="post-metadata">

**Author:** ![brendanmac](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/brendanmac/32/2809_2.png) [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Post date:** [May 23, 2024, 9:06am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/8 "2024-05-23T09:06:55Z")

</div>

. . . and now I’ve just discovered **bytebeat** 🤦‍♂️

[![](https://img.youtube.com/vi/OpSUqJ-B5L8/hqdefault.jpg "Live coding bytebeat/floatbeat/rampcode music with ne (a terminal editor) in beautiful black&green.") ](https://www.youtube.com/watch?v=OpSUqJ-B5L8)

---

<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:** [May 23, 2024, 4:57pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/9 "2024-05-23T16:57:10Z")

</div>

Hello Brendan @brendanmac Thanks for sharing this video, I didn’t know at all this Bytebeat programm., and it’s very intersting too…  
Did you try Ziffers in Sonic Pi and what do you think about it?  
Best Regards 😃

---

<div class="post-metadata">

**Author:** ![HarryLeBlanc](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/harryleblanc/32/2813_2.png) [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Post date:** [May 25, 2024, 11:19pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/10 "2024-05-25T23:19:24Z")

</div>

This is very cool.  
I didn’t know about the sleep(ring) thing. That’s super useful.  
I’ll also check out that notation method you pointed to.

---

<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:** [May 26, 2024, 7:45am UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/11 "2024-05-26T07:45:07Z")

</div>

Hello Harry 😊 @HarryLeBlanc thanks to you! It’s very kind oy you! yes! this sleep (ring) is very useful. I discover every day new possibilities with Sonic Pi…In the “language” list, they are plenty of things to explore…So, if yourself you have cool tricks, it will be with pleasure!  
Best Regards 😀

---

<div class="post-metadata">

**Author:** ![HarryLeBlanc](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/harryleblanc/32/2813_2.png) [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Post date:** [May 26, 2024, 1:18pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851/12 "2024-05-26T13:18:15Z")

</div>

I’m still a noob, just trying to figure things out. Last night I was reading through the Lang part of help, and saw some cool things I wanted to try out.  
Cheers,  
H
