# Map Sample Loop Mode To Midi Cc Or Note?

**URL:** <https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373>\
**Category:** Beginners Questions - Renoise\
**Created:** [November 5, 2010, 8:09pm UTC](https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373 "2010-11-05T20:09:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LamptonWorm](https://forum.renoise.com/user_avatar/forum.renoise.com/lamptonworm/32/606_2.png) [@LamptonWorm](https://forum.renoise.com/u/LamptonWorm)\
**Post date:** [November 5, 2010, 8:09pm UTC](https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373/1 "2010-11-05T20:09:17Z")

</div>

Hey all,

Any idea if it is possible to map sample loop mode to MIDI cc or note? CTRL+M doesn’t show the drop down (up!) box in yellow so I’m assuming not…but maybe there is something else I’m missing, ie it can be done elsewhere in realtime.

Cheers,  
LW.

---

<div class="post-metadata">

**Author:** ![esaruoho](https://forum.renoise.com/user_avatar/forum.renoise.com/esaruoho/32/795_2.png) [@esaruoho](https://forum.renoise.com/u/esaruoho)\
**Post date:** [May 7, 2024, 6:10am UTC](https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373/2 "2024-05-07T06:10:56Z")

</div>

Hi, it is possible to do it. I’ve created a script that offers shortcuts for changing the Loop Mode.  
It’s trivial to do this for Midi. Are you looking for Selected Sample, or all Samples in the Instrument?

---

<div class="post-metadata">

**Author:** ![esaruoho](https://forum.renoise.com/user_avatar/forum.renoise.com/esaruoho/32/795_2.png) [@esaruoho](https://forum.renoise.com/u/esaruoho)\
**Post date:** [May 7, 2024, 6:17am UTC](https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373/3 "2024-05-07T06:17:01Z")

</div>

it occurs that there could be a knob that cycles through off, Forward, Reverse, PingPong (0…127), and a button that steps through the same list, and buttons that set the selected\_sample to one of all of those. It’d be fairly easy to knock this together. Do let me know the specifics.

I’ll do for Selected\_Sample first.

---

<div class="post-metadata">

**Author:** ![esaruoho](https://forum.renoise.com/user_avatar/forum.renoise.com/esaruoho/32/795_2.png) [@esaruoho](https://forum.renoise.com/u/esaruoho)\
**Post date:** [May 7, 2024, 6:25am UTC](https://forum.renoise.com/t/map-sample-loop-mode-to-midi-cc-or-note/30373/4 "2024-05-07T06:25:05Z")

</div>

ok, now i have the four toggles (“hold down to loop, release to loop=Off”), four "on"s (“press to set loop, release does nothing”) and a knob that has 0 = no loop, and 127 = pingpong, and 1…63 = forward and 64…126 = backward.

for selected sample. any thoughts on what else should be added?  
 ![Screenshot 2024-05-07 at 10.31.30](https://forum.renoise.com/uploads/default/original/3X/c/b/cbbaf8c2b338f91e5608d2284a337740d301194f.png)
