# Monophonic sample playback in loops?

**URL:** <https://in-thread.sonic-pi.net/t/monophonic-sample-playback-in-loops/4553>\
**Category:** Support, Help & Resources\
**Created:** [October 29, 2020, 10:28pm UTC](https://in-thread.sonic-pi.net/t/monophonic-sample-playback-in-loops/4553 "2020-10-29T22:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnarlyfella](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@gnarlyfella](https://in-thread.sonic-pi.net/u/gnarlyfella)\
**Post date:** [October 29, 2020, 10:28pm UTC](https://in-thread.sonic-pi.net/t/monophonic-sample-playback-in-loops/4553/1 "2020-10-29T22:28:25Z")

</div>

Hi there,

Just wondering if anyone knows if I can / how to make a sample based loop monophonic so each sample cuts off the previous one. Currently I’ve been doing this by making the sustain length of each sample match it’s ‘sleep’ time but this becomes quite time consuming and sometimes doesnt quite work as intended.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![mrbombmusic](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/mrbombmusic/32/2282_2.png) [@mrbombmusic](https://in-thread.sonic-pi.net/u/mrbombmusic)\
**Post date:** [October 30, 2020, 12:47am UTC](https://in-thread.sonic-pi.net/t/monophonic-sample-playback-in-loops/4553/2 "2020-10-30T00:47:52Z")

</div>

Hi @gnarlyfella. Welcome to the forum!

I would recommend checking out the kill function. It is in the Lang section of the documentation.

I had played around with triggering samples with a Midi controller and ran into a similar problem of having the samples overlap when I triggered them multiple times in a row.

Here is the thread about it: [Using MIDI controller to trigger sliced up samples](https://in-thread.sonic-pi.net/t/using-midi-controller-to-trigger-sliced-up-samples/253)

If you scroll through that there might be some helpful info. The solutions that seemed to work involved using the kill function.

Hope this helps!
