# Sonic Pi and Minimalism

**URL:** <https://in-thread.sonic-pi.net/t/sonic-pi-and-minimalism/1499>\
**Category:** Support, Help & Resources\
**Created:** [September 23, 2018, 5:05pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-and-minimalism/1499 "2018-09-23T17:05:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWB70](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/gwb70/32/410_2.png) [@GWB70](https://in-thread.sonic-pi.net/u/GWB70)\
**Post date:** [September 23, 2018, 5:05pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-and-minimalism/1499/1 "2018-09-23T17:05:04Z")

</div>

Hi there :

I’m trying to apply some minimalist techniques to audio

material:

First one is called _"Phasing_",and consists on puting 2 identical

loops progressively out phase;they will realign after some time.

Here some practical example :

Steve Reich - Clapping Music (Scrolling)

The code i was trying is this:

```ruby
# Loop Phasing

use_sample_defaults beat_stretch: 2, num_slices: 8, release: 0.5,amp: 0.7

sl = (line 0,8,inclusive: true).tick

live_loop :perc do
  use_bpm 90
  sample :loop_breakbeat
  sleep 1
  sample :loop_breakbeat,slice: sl
  sleep 1
end

```

Second,is extract midi information from an audio file;

as _“Pure Data”_ does,and use some midi notes as source material.

Then i can apply some of these techniques:

## Minimalism Music Techniques

I tryed something like this:

```ruby
live_loop :perc do |f|
  sample :loop_breakbeat,note: hz_to_midi(f)
  sleep 1
end

```

If someone around know how can these can be achieved…

Think it will interest to musicians particularly.

Once again,thank you for your attention.

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [September 23, 2018, 5:38pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-and-minimalism/1499/2 "2018-09-23T17:38:57Z")

</div>

Hi @GWB70,

there is a working “clapping” example out there by William Denton since quite a while. You might be interested:

[https://www.miskatonic.org/2015/01/12/clapping-music-on-sonic-pi/](https://www.miskatonic.org/2015/01/12/clapping-music-on-sonic-pi/)

I used this a while ago to build a variation for demonstration purposes (see the headline “Clapping Music von Steve Reich”):

[http://www.mkblog.org/2016/05/04/republica-ten-hoerbar-programmieren-mit-sonic-pi/](http://www.mkblog.org/2016/05/04/republica-ten-hoerbar-programmieren-mit-sonic-pi/)

---

<div class="post-metadata">

**Author:** ![GWB70](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/gwb70/32/410_2.png) [@GWB70](https://in-thread.sonic-pi.net/u/GWB70)\
**Post date:** [September 23, 2018, 9:47pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-and-minimalism/1499/3 "2018-09-23T21:47:51Z")

</div>

Hi Martin :

Very interesting indeed,although the code is beyond my scope.

I’ll stick with SP,and also Pure Data,and try to get the best from both.

For all the rest i rely to a DAW.

Perhaps you want to subscribe to this course :

Real-Time Audio Signal Processing in Faust

I’ll do it anyway.If there’s something on Pure Data,please,

let me know.

All the best.
