# Playing with arpeggiated chords

**URL:** <https://in-thread.sonic-pi.net/t/playing-with-arpeggiated-chords/4167>\
**Category:** Creations & Ideas\
**Created:** [July 4, 2020, 9:39pm UTC](https://in-thread.sonic-pi.net/t/playing-with-arpeggiated-chords/4167 "2020-07-04T21:39:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [July 4, 2020, 9:39pm UTC](https://in-thread.sonic-pi.net/t/playing-with-arpeggiated-chords/4167/1 "2020-07-04T21:39:05Z")

</div>

Had a play with chord\_degrees and inversions on a base note

```ruby
use_synth :dsaw
with_fx :reverb, room: 0.7,mix: 0.6 do
  live_loop :test do
    use_transpose [0,2,4,-5].tick(:trans)
    4.times do
      sn=[:major,:major_pentatonic,:major,:major_pentatonic].tick(:base)
      base=[:c4,:e4,:g4,:g3].look(:base)
      puts current_transpose, base,sn
      #play base nod
      with_fx :ixi_techno, phase: 7,cutoff: 50,cutoff_max: 80 do
        synth :tb303, note: base-24,sustain: 7,release: 0.2,amp: 0.2
      end
      #play chord notes
      12.times do
        #choose next chord notes
        nv= chord_invert(chord_degree(rrand_i(1,3),base,sn,rrand_i(2,5)),rrand_i(1,4))
        #arpeggiate
        6.times do
          play (nv.tick) - 12,release: 0.1,amp: 0.3
          sleep 0.1
        end
      end
    end
  end#live_loop
end#reverb  

```
