# Rejoy in C, made with joy in SPi

**URL:** <https://in-thread.sonic-pi.net/t/rejoy-in-c-made-with-joy-in-spi/9089>\
**Category:** Creations & Ideas\
**Created:** [July 31, 2024, 5:02pm UTC](https://in-thread.sonic-pi.net/t/rejoy-in-c-made-with-joy-in-spi/9089 "2024-07-31T17:02:22Z")\
**Posts on this page:** 1\
**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:** [July 31, 2024, 5:02pm UTC](https://in-thread.sonic-pi.net/t/rejoy-in-c-made-with-joy-in-spi/9089/1 "2024-07-31T17:02:22Z")

</div>

Rejoy in C! Thanks for listening 😃  
[Sound cloud/Rejoy in C](https://soundcloud.com/beryann-parker/rejoy-in-c)

```ruby
use_synth :piano

with_fx :eq, amp: 0.7 do
  with_fx :reverb, mix: 0.8 do
    live_loop :note do
      play (ring, :c4, :d4, :e4, :f4, :g4).choose, amp: 0.8 if rand< 0.6
      sleep 0.25
    end
    
    
    with_fx :ping_pong do
      live_loop :note2 do
        play :c5, amp: 0.3 if rand< 0.3
        with_fx :echo, mix: 0.8, amp: 0.5 do
          play :c2 if rand< 0.1
        end
        sleep 0.25
      end
    end
    
    live_loop :chord do
      play (chord_invert (chord :c3, :maj), 1) if rand< 0.3
      play (chord_invert (chord :f3, :maj), 1) if rand< 0.2
      play (chord_invert (chord :g3, :maj), 1) if rand< 0.1
      sleep 1
      
      live_loop :ryth do
        sample :loop_tabla, onset: rrand_i(0,10), amp: 3 if rand< 0.6
        sleep 0.25
        
      end
      
      
    end
  end
  
end

```
