# Relief Composition : Kibō O Ushinatta Toki

**URL:** <https://in-thread.sonic-pi.net/t/relief-composition-kibo-o-ushinatta-toki/2492>\
**Category:** Creations & Ideas\
**Created:** [June 16, 2019, 3:52pm UTC](https://in-thread.sonic-pi.net/t/relief-composition-kibo-o-ushinatta-toki/2492 "2019-06-16T15:52:44Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [August 28, 2019, 12:15am UTC](https://in-thread.sonic-pi.net/t/relief-composition-kibo-o-ushinatta-toki/2492/16 "2019-08-28T00:15:09Z")

</div>

Hi Mattia,

Possibly the reason you dont like/use live\_loop is because you feel it cannot be controlled ?

With a very simple framework and a couple of defines, you can start and stop the audio output of  
any live loop, allowing you to use it anywhere within a composition.

I posted a simple framework and example a long time ago… I’ll try find the post for you.

Eli…

EDIT: I cant find the post I want but see my comments in these 2 posts, they pretty  
much explain how to use a tracking variable to turn the sound output of a live\_loop  
on and off as you require

> [@TR 808 sequencer](http://in-thread.sonic-pi.net/t/tr-808-sequencer/535):
>
> Hello World! Some simple house beats. I like using a ‘sequencer’ function to control the timing, then pass it a series of Procs which define the tracks, one for each instrument - gives you an easy way to control the timing and also the expression of each beat. Also makes mixing in new instruments a breeze. Note that the kick and snare here are samples, but the hi-hat is a noise synth; wrapping them in functions with the same interface (my\_samp, my\_hat) means you can treat them the same way whe…

> [@A Rainy Night in Bristol](http://in-thread.sonic-pi.net/t/a-rainy-night-in-bristol/659/7):
>
> I usually only post simple tracks… in actual fact you can track just about anything… tracker = [0,0,0] loop\_volume = [0,0,0] note\_duration = [0,0,0] and make defines to set volumes, etc… #Reduce any particular sound loop’s volume define :reduce do |i, n | if loop\_volume[i] - n \> 0 then loop\_volume[i] = loop\_volume[i] - n end end #Increase any particular sound loop’s volume define :increase do |i, n | if loop\_volume[i] + n \< 10 then loop\_volume[i] = loop\_volume[i] + n else end e…

---

_[View the full topic](https://in-thread.sonic-pi.net/t/relief-composition-kibo-o-ushinatta-toki/2492)._
