# Automating Loop Points?

**URL:** <https://forum.renoise.com/t/automating-loop-points/28488>\
**Category:** Ideas & suggestions\
**Created:** [April 21, 2010, 8:53pm UTC](https://forum.renoise.com/t/automating-loop-points/28488 "2010-04-21T20:53:06Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![supersole](https://forum.renoise.com/user_avatar/forum.renoise.com/supersole/32/589_2.png) [@supersole](https://forum.renoise.com/u/supersole)\
**Post date:** [April 21, 2010, 8:53pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/1 "2010-04-21T20:53:06Z")

</div>

There’s something that I really think could help doing crazy things with samples, and it is to be able to draw / automate their loop points.

I am not sure this can be done right now … I have been looking and messing with all the meta\* devices that allow for automation and modulation and whatnot, but I have failed at finding any that lets me change on the fly the start and end points for a sample.

I know it is relatively ‘complicated’ and non-obvious – i.e. if you select a destination instrument and it’s got more than one sample you should select the sample you’re going to alter with that device, I guess.

But it would allow for some funny/crazy micro music stuff, I think.

An example of how it would sound: just load a sample, set it to loop forwards (or ping pong, forwards gets brighter results) and play a random key… then just move the end/start points at your will. The closest they are the wicked sounds you get. Granted, you can then stay with the final result, but the fun is in being able to change that dynamically, and possibly several times during the song.

I have also tried recording this and looking for some hidden pattern effects but they are pattern effects… not sample/instrument effects and I can’t find anything relating to this.

Now just go and tell me that’s already implemented … and make me happy by telling me how to get that result!!  
 ![:w00t:](https://files.renoise.com/forum/emoticons/default/w00t2.gif)

---

<div class="post-metadata">

**Author:** ![kloz](https://forum.renoise.com/user_avatar/forum.renoise.com/kloz/32/979_2.png) [@kloz](https://forum.renoise.com/u/kloz)\
**Post date:** [April 22, 2010, 2:29am UTC](https://forum.renoise.com/t/automating-loop-points/28488/2 "2010-04-22T02:29:40Z")

</div>

yeah…that would be a nice feature !!! ![:w00t:](https://files.renoise.com/forum/emoticons/default/w00t2.gif) ![:w00t:](https://files.renoise.com/forum/emoticons/default/w00t2.gif) ![:dribble:](https://files.renoise.com/forum/emoticons/default/dribble.gif)

---

<div class="post-metadata">

**Author:** ![almosthuman](https://forum.renoise.com/letter_avatar/almosthuman/32/6_449c533f586939b6e5f246632a46421f.png) [@almosthuman](https://forum.renoise.com/u/almosthuman)\
**Post date:** [April 22, 2010, 6:10am UTC](https://forum.renoise.com/t/automating-loop-points/28488/3 "2010-04-22T06:10:00Z")

</div>

I suggested this very thing quite a while ago. I do hope that it is eventually added. If not, I suppose that the effect can be achieved by other means.

---

<div class="post-metadata">

**Author:** ![It-Alien](https://forum.renoise.com/user_avatar/forum.renoise.com/it-alien/32/41_2.png) [@It-Alien](https://forum.renoise.com/u/It-Alien)\
**Post date:** [April 22, 2010, 8:11am UTC](https://forum.renoise.com/t/automating-loop-points/28488/4 "2010-04-22T08:11:22Z")

</div>

this cannot be done as of version 2.5.

however, I have made a LUA script which allowed to move the loop points of the currently selected sample using MIDI controllers, and it worked quite well, so this should be feasible in Renoise 2.6

---

<div class="post-metadata">

**Author:** ![vvoois](https://forum.renoise.com/letter_avatar/vvoois/32/6_449c533f586939b6e5f246632a46421f.png) [@vvoois](https://forum.renoise.com/u/vvoois)\
**Post date:** [April 22, 2010, 8:23am UTC](https://forum.renoise.com/t/automating-loop-points/28488/5 "2010-04-22T08:23:48Z")

</div>

> [@It-Alien](#):
>
> this cannot be done as of version 2.5.
> 
> however, I have made a LUA script which allowed to move the loop points of the currently selected sample using MIDI controllers, and it worked quite well

“Currently selected” is the keyword.  
We would then also need a midi control that allows to select the sample that needs the triggering and then slots to store the loop-positions in.  
To get it automated, one would then need to loop back midi information send by a MIDI control device back through a virtual midi device.  
Yet how fast will this be (how much delay is involved with this?)

---

<div class="post-metadata">

**Author:** ![It-Alien](https://forum.renoise.com/user_avatar/forum.renoise.com/it-alien/32/41_2.png) [@It-Alien](https://forum.renoise.com/u/It-Alien)\
**Post date:** [April 22, 2010, 8:35am UTC](https://forum.renoise.com/t/automating-loop-points/28488/6 "2010-04-22T08:35:33Z")

</div>

yes, my scripting solution was intended for live usage because of the selected sample only limitation.

actually, the script could of course modify any sample’s loop points, given that the user tells in the script code which one to control, but for non live usage this would still not straightforward to use

---

<div class="post-metadata">

**Author:** ![Achenar](https://forum.renoise.com/user_avatar/forum.renoise.com/achenar/32/224_2.png) [@Achenar](https://forum.renoise.com/u/Achenar)\
**Post date:** [April 22, 2010, 9:21am UTC](https://forum.renoise.com/t/automating-loop-points/28488/7 "2010-04-22T09:21:42Z")

</div>

&nbsp;Been wanting this feature since Protracker days, where you could produce cool sounds by setting the loop size and manually moving the loop start point in the sample editor. Being able to automate this as part of a song would fulfil a lifelong dream! OK, maybe not, but it would still be astoundingly cool.&nbsp;

---

<div class="post-metadata">

**Author:** ![c-Row](https://forum.renoise.com/user_avatar/forum.renoise.com/c-row/32/237_2.png) [@c-Row](https://forum.renoise.com/u/c-Row)\
**Post date:** [April 22, 2010, 11:14am UTC](https://forum.renoise.com/t/automating-loop-points/28488/8 "2010-04-22T11:14:50Z")

</div>

Hybrid used this in their remix of BT’s “Never Gonna Come Back Down”, for example (for those who can’t imagine a good use for this feature). Would allow for some cool effects.

---

<div class="post-metadata">

**Author:** ![Jonas](https://forum.renoise.com/user_avatar/forum.renoise.com/jonas/32/6937_2.png) [@Jonas](https://forum.renoise.com/u/Jonas)\
**Post date:** [April 22, 2010, 11:59am UTC](https://forum.renoise.com/t/automating-loop-points/28488/9 "2010-04-22T11:59:23Z")

</div>

Automating looppoints was one of the first suggestion topics I made years ago ![:)](https://forum.renoise.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif) and have seen it return many times. Great to hear it is possible somewhat through a script in 2.6!

> [@It-Alien](#):
>
> this cannot be done as of version 2.5.
> 
> however, I have made a LUA script which allowed to move the loop points of the currently selected sample using MIDI controllers, and it worked quite well, so this should be feasible in Renoise 2.6

What I wonder is how the scrolling actually sounds? I’ve always imagined it would glitch a lot. Also, would it be possible to scroll through snap settings (128th, 64th, 32nd etc)? That would be great for synced beats, creating syncopation on the fly.

---

<div class="post-metadata">

**Author:** ![scrumtoe](https://forum.renoise.com/user_avatar/forum.renoise.com/scrumtoe/32/747_2.png) [@scrumtoe](https://forum.renoise.com/u/scrumtoe)\
**Post date:** [April 22, 2010, 12:35pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/10 "2010-04-22T12:35:17Z")

</div>

Yeah this is something i have wanted for a while too. +1 from me ![:D](https://files.renoise.com/forum/emoticons/default/biggrin.gif)

---

<div class="post-metadata">

**Author:** ![It-Alien](https://forum.renoise.com/user_avatar/forum.renoise.com/it-alien/32/41_2.png) [@It-Alien](https://forum.renoise.com/u/It-Alien)\
**Post date:** [April 22, 2010, 12:48pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/11 "2010-04-22T12:48:30Z")

</div>

> [@Jonas](#):
>
> What I wonder is how the scrolling actually sounds? I’ve always imagined it would glitch a lot.

well, it does glitch ![:)](https://forum.renoise.com/uploads/default/original/2X/f/f31646767a12ff3f4d6b8c4766d2ea41b23d4ab9.gif)

> [@](#):
>
> Also, would it be possible to scroll through snap settings (128th, 64th, 32nd etc)? That would be great for synced beats, creating syncopation on the fly.

this is feasible. if I remember well, I have also tested it for scrolling through quarters of sample length.

---

<div class="post-metadata">

**Author:** ![s-n-s](https://forum.renoise.com/letter_avatar/s-n-s/32/6_449c533f586939b6e5f246632a46421f.png) [@s-n-s](https://forum.renoise.com/u/s-n-s)\
**Post date:** [April 22, 2010, 2:46pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/12 "2010-04-22T14:46:58Z")

</div>

this whole scripting thing will be amazing

i dont know jack about scripting,is there some kind of tutorial for audio work with LUA?

---

<div class="post-metadata">

**Author:** ![supersole](https://forum.renoise.com/user_avatar/forum.renoise.com/supersole/32/589_2.png) [@supersole](https://forum.renoise.com/u/supersole)\
**Post date:** [April 22, 2010, 5:10pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/13 "2010-04-22T17:10:58Z")

</div>

> [@Jonas](#):
>
> What I wonder is how the scrolling actually sounds? I’ve always imagined it would glitch a lot. Also, would it be possible to scroll through snap settings (128th, 64th, 32nd etc)? That would be great for synced beats, creating syncopation on the fly.

I think that if there is a linear/curve envelope, renoise’s engine interpolates between every sub-row sample that it produces, so it would produce a ‘smooth’ sound between two points in the envelope, unless the automation is done via discrete points, which would definitely sound very ‘granular-ish’. Think of the sample points changing abruptly between rows. Not sure how would I implement it, if I was taktik… I mean, if the sample gets a new end point which has already been played, do we reset it or do we allow it to continue until the last point and then start in the next one? etc etc. I guess it depends on what is decided. Or maybe it could be a switch. Yet, I’m not taktik, so I’ll shut up in regards to this.

Re: the lua script for this… I have the feeling you guys are adding this lua thing so that we create super cool plugins and then you implement the coolest ones natively for best performance ever. Would be great 🙂

Glad to hear more people would like this feature. Maybe it’s time to update the feature list in the backstage area? ![;)](https://forum.renoise.com/uploads/default/original/2X/c/cc6810a6a8ecbfcb592ca3fd490fb59d90ec9739.gif)

---

<div class="post-metadata">

**Author:** ![Daed](https://forum.renoise.com/user_avatar/forum.renoise.com/daed/32/829_2.png) [@Daed](https://forum.renoise.com/u/Daed)\
**Post date:** [April 23, 2010, 1:21pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/14 "2010-04-23T13:21:04Z")

</div>

> [@s-n-s](#):
>
> this whole scripting thing will be amazing
> 
> i dont know jack about scripting,is there some kind of tutorial for audio work with LUA?

[http://www.lua.org/docs.html](http://www.lua.org/docs.html)

---

<div class="post-metadata">

**Author:** ![syphus](https://forum.renoise.com/user_avatar/forum.renoise.com/syphus/32/448_2.png) [@syphus](https://forum.renoise.com/u/syphus)\
**Post date:** [April 24, 2010, 1:54am UTC](https://forum.renoise.com/t/automating-loop-points/28488/15 "2010-04-24T01:54:06Z")

</div>

Yeah, this is a nice feature. My MOD/XM/S3M replayer/interactive-performance library for Processing has this, whereby any CC (or note, for that matter) can be mapped to any sample’s loop _start point_ and loop _length_. I’ve used an automated Midi-CC device in Renoise to synchronise with the Processing playback and record live tweaks of this sort…fun and fairly easy to implement, though it’ll probably leave a lot of decisions up to the user. But that’s probably the most flexible way anyway.

Incidentally, in my library, adjusting the loop points of a non-looping sample enables looping, so that the feature has something to work on…otherwise it’d be pretty dull ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif) But I’ll have to add more switches and controls for people who don’t want that as the default.

Looking forward to seeing this sort of thing being available via the Renoise scripting engine.

---

<div class="post-metadata">

**Author:** ![ripley](https://forum.renoise.com/user_avatar/forum.renoise.com/ripley/32/1167_2.png) [@ripley](https://forum.renoise.com/u/ripley)\
**Post date:** [April 25, 2010, 2:50pm UTC](https://forum.renoise.com/t/automating-loop-points/28488/16 "2010-04-25T14:50:50Z")

</div>

This would be so great to have!

It could be also achieved by the effect column, if the developers would decide to expand the number of effect commands.

---

<div class="post-metadata">

**Author:** ![headache](https://forum.renoise.com/letter_avatar/headache/32/6_449c533f586939b6e5f246632a46421f.png) [@headache](https://forum.renoise.com/u/headache)\
**Post date:** [November 29, 2011, 11:22am UTC](https://forum.renoise.com/t/automating-loop-points/28488/17 "2011-11-29T11:22:51Z")

</div>

I’m quite interested in this feature.

It-Alien, would you consider releasing a tool ? I don’t think I’ve seen it in the tool section yet.

---

<div class="post-metadata">

**Author:** ![dblue](https://forum.renoise.com/user_avatar/forum.renoise.com/dblue/32/153_2.png) [@dblue](https://forum.renoise.com/u/dblue)\
**Post date:** [November 29, 2011, 11:30am UTC](https://forum.renoise.com/t/automating-loop-points/28488/18 "2011-11-29T11:30:16Z")

</div>

> [@headache](#):
>
> It-Alien, would you consider releasing a tool ? I don’t think I’ve seen it in the tool section yet.

You can find the tool slightly hidden in this other thread:

> [@Experiment: Use Midi Knob To Set Loop Markers](https://forum.renoise.com/t/experiment-use-midi-knob-to-set-loop-markers/29587):
>
> update: this script is obsolete. please use the [XRNX version](https://forum.renoise.com/t/experiment-use-midi-knob-to-set-loop-markers/29587) try putting the following into your GlobalMidiActions.lua, located into the “Scripts” folder (at the end of the file is fine) -- BEGIN: use MIDI actions to set loop markers add\_action("Selected Sample:Loop Start [Set]", function(message) local sample = song().selected\_sample; local int\_frames = sample.sample\_buffer.number\_of\_frames; local int\_message = message.int\_value + 1; if message:is\_rel\_value() th…
