# Capture\_Nearest\_Instrument\_From\_Pattern

**URL:** <https://forum.renoise.com/t/capture-nearest-instrument-from-pattern/29560>\
**Category:** Renoise Tool Development\
**Created:** [August 15, 2010, 10:58am UTC](https://forum.renoise.com/t/capture-nearest-instrument-from-pattern/29560 "2010-08-15T10:58:58Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![eeter](https://forum.renoise.com/user_avatar/forum.renoise.com/eeter/32/784_2.png) [@eeter](https://forum.renoise.com/u/eeter)\
**Post date:** [August 15, 2010, 1:47pm UTC](https://forum.renoise.com/t/capture-nearest-instrument-from-pattern/29560/5 "2010-08-15T13:47:02Z")

</div>

Thanks guys!  
According to this false bug-report [https://forum.renoise.com/t/auto-capture-instrument/29561](https://forum.renoise.com/t/auto-capture-instrument/29561) the Ledgers AutoCaptureFromFirstNote script was preventing the capture\_nearest\_instrument\_from\_pattern method to take effect. - And that’s why I was so confused in the first place.

But I got it now. Hmm… That makes things a bit bit more complicated for me. Would be great if there was a method to just get the nearest instrument index from anywhere you want and not depending on where’s the cursor at and not changing the selected instrument.

---

_[View the full topic](https://forum.renoise.com/t/capture-nearest-instrument-from-pattern/29560)._
