# Masse d'ondes (Waves Mass)

**URL:** <https://in-thread.sonic-pi.net/t/masse-dondes-waves-mass/9016>\
**Category:** Creations & Ideas\
**Created:** [July 5, 2024, 10:31pm UTC](https://in-thread.sonic-pi.net/t/masse-dondes-waves-mass/9016 "2024-07-05T22:31:11Z")\
**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 5, 2024, 10:31pm UTC](https://in-thread.sonic-pi.net/t/masse-dondes-waves-mass/9016/1 "2024-07-05T22:31:11Z")

</div>

Inspired by Olivier Messiaen: a “waves mass abstraction”…If you see something to improve, it will be with pleasure. I hope you’ll have fun… 😃

[soundcloud waves mass](https://soundcloud.com/beryann-parker/masse-dondes?in=beryann-parker/sets/sonic-pi)

```ruby
a = rrand(0.1, 1)
b = rrand(0.25,1)

use_synth :mod_fm
use_synth_defaults attack: 0.25, release: 0.5, pan: rrand(-0.9, 0.9), cutoff: rrand_i(30, 130)
with_fx :reverb, room: 0.8,mix: 0.8 do
  
  live_loop :melody1 do
    ##| stop
    play 72, amp: a
    sleep b
  end
  
  live_loop :melody2, delay: 8 do
    ##| stop
    play 75, amp: a
    sleep b
  end
  
  live_loop :melody3, delay: 16 do
    ##| stop
    play 79, amp: 2, pitch: rrand(48,70)
    sleep b
  end
  
  live_loop :melody4, delay: 24 do
    ##| stop
    play 60, amp: a
    sleep b
  end
  
  live_loop :melody5, delay: 32 do
    ##| stop
    play 48, amp: 2 , pitch: rrand(48,70)
    sleep b
  end
  
  live_loop :melody6, delay: 40 do
    ##| stop
    play 36, amp: a
    sleep b
  end
end

```
