# New Tool: Convert Instrument Numbers

**URL:** <https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904>\
**Category:** Renoise Tools\
**Created:** [January 5, 2011, 8:18pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904 "2011-01-05T20:18:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 5, 2011, 8:18pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/1 "2011-01-05T20:18:12Z")

</div>

On Tools page:

- [Tools Page](https://www.renoise.com/tools/convert-instrument-number)

Uploaded to tools page, please note new but similar keybindings and menu entries:

* * *

Another simple one to bypass an advanced edit operation I do often:

e.g. when you want to double a lead:

- You copy and paste the section you want from one track to the next.
- Now you want the instrument numbers updated
- While on the new track, make sure you have your target instrument selected in the renoise instrument box.
- Press the shortcut, and all the notes in the current “track (in pattern)” are converted to the target instrument

* * *

**Related Tool:**

- [Sync All Notes In Group](https://www.renoise.com/tools/sync-all-notes-in-group)

* * *

> **Click For Changelog**
>
> * * *
> 
> v0.7
> 
> Added another mode for selection in pattern and organised the instrument box menu
> 
> v 0.61
> 
> - changed :NOTE THE KEYBINDING NAMES ARE CHANGED
> 
> - Added: A further shortcut for converting the whole track, (not just the track in pattern)
> 
> - Added: menu entries in the right-click instrument box menu for both functions also  
> - Added: Status messages

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 5, 2011, 10:32pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/2 "2011-01-05T22:32:42Z")

</div>

nice one,cheers

---

<div class="post-metadata">

**Author:** ![vincentvc](https://forum.renoise.com/user_avatar/forum.renoise.com/vincentvc/32/938_2.png) [@vincentvc](https://forum.renoise.com/u/vincentvc)\
**Post date:** [January 6, 2011, 12:46am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/3 "2011-01-06T00:46:23Z")

</div>

Awesome, thanks!!! ![:w00t:](https://files.renoise.com/forum/emoticons/default/w00t2.gif)

Way easier than swapping instrument number or copying, changing instrument place, pasting…I do this practically every day. Thanks again! ![B)](https://files.renoise.com/forum/emoticons/default/cool.gif)

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 6, 2011, 1:23am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/4 "2011-01-06T01:23:28Z")

</div>

Glad you guys find it useful!

---

<div class="post-metadata">

**Author:** ![ToybOx](https://forum.renoise.com/user_avatar/forum.renoise.com/toybox/32/632_2.png) [@ToybOx](https://forum.renoise.com/u/ToybOx)\
**Post date:** [January 6, 2011, 1:26am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/5 "2011-01-06T01:26:06Z")

</div>

> [@Ledger](#):
>
> Glad you guys find it useful!

yeah its great,your gonna save me mountains of tedious work ![:D](https://forum.renoise.com/uploads/default/original/2X/4/4e279733a789da83bda5b44aedcf6a0d5178edcb.gif)

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 6, 2011, 1:35am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/6 "2011-01-06T01:35:45Z")

</div>

Cool!

If you are interested, this tool was designed to work in conjunction with my autocapture tool which in most scenarios speeds this up further as the target instrument is already selected for you. This fits my workflow of “one instrument only” per track.

[http://www.renoise.c…showtopic=26282](https://forum.renoise.com/t/new-tool-3-0-autocapture-from-first-note/29357)

If you don`t like the automatic version there is a manual (shortcut) version here:

[http://www.renoise.c…showtopic=26222](https://forum.renoise.com/t/new-tool-capture-first-note-s-instrument/29311)

They may not suit you but they could help shave some more seconds off if they do.

---

<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:** [January 6, 2011, 10:21am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/7 "2011-01-06T10:21:23Z")

</div>

Nice1 again!

---

<div class="post-metadata">

**Author:** ![fladd](https://forum.renoise.com/user_avatar/forum.renoise.com/fladd/32/1154_2.png) [@fladd](https://forum.renoise.com/u/fladd)\
**Post date:** [January 6, 2011, 11:43am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/8 "2011-01-06T11:43:53Z")

</div>

Nice one indeed!

fladd

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 6, 2011, 1:28pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/9 "2011-01-06T13:28:17Z")

</div>

Updated to now include:

- Added: A further shortcut for converting the whole track, (not just the track in pattern)

- Added: Menu entries in the right-click instrument box menu for both functions also

- NOTE THE KEYBINDING/S ARE CHANGED, FIRST POST SHOWS WHAT THEY ARE NOW.

[http://www.renoise.c…ndpost&p=221402](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904)

---

<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:** [January 6, 2011, 3:30pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/10 "2011-01-06T15:30:54Z")

</div>

thnx!

---

<div class="post-metadata">

**Author:** ![00.1](https://forum.renoise.com/user_avatar/forum.renoise.com/00.1/32/542_2.png) [@00.1](https://forum.renoise.com/u/00.1)\
**Post date:** [January 10, 2011, 2:22am UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/11 "2011-01-10T02:22:42Z")

</div>

Just wanted to add along with everyone else that this tool is great and practical. Thanks ![:)](https://files.renoise.com/forum/emoticons/default/smile.gif)

---

<div class="post-metadata">

**Author:** ![vincentvc](https://forum.renoise.com/user_avatar/forum.renoise.com/vincentvc/32/938_2.png) [@vincentvc](https://forum.renoise.com/u/vincentvc)\
**Post date:** [January 11, 2011, 6:10pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/12 "2011-01-11T18:10:37Z")

</div>

Could this be possible: “Convert [Selected] Instruments to Currently Selected”?

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 11, 2011, 6:35pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/13 "2011-01-11T18:35:59Z")

</div>

> [@vincentvc](#):
>
> Could this be possible: “Convert [Selected] Instruments to Currently Selected”?

I am not too sure if this is possible to get the `selection in a pattern`. I just check the API docs and could not find anything obvious. I will go and ask in Q+A.

edit: just found this and adding link here as a personal reference.

> [@Renoise.Selectionblock Object](https://forum.renoise.com/t/renoise-selectionblock-object/29147):
>
> it’s been some days since I first thought such kind of object is necessary, but I preferred to wait for beta time in order to avoid adding stress to stress. I think that a SelectionBlock is needed, in order to let the scripts act on selected area only. The question is: how to effectively describe the block as an object? The simple answer is: by the mean of its upper left and lower right corners. This is surely right, but maybe there is some better way? For example, the object could have iter…

---

<div class="post-metadata">

**Author:** ![dac514](https://forum.renoise.com/user_avatar/forum.renoise.com/dac514/32/100_2.png) [@dac514](https://forum.renoise.com/u/dac514)\
**Post date:** [January 11, 2011, 6:55pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/14 "2011-01-11T18:55:13Z")

</div>

> [@Ledger](#):
>
> I am not too sure if this is possible to get the `selection in a pattern`.

It is possible. I do it in NotesRandomizer. The thread you linked is about moving the selection block around. Here’s a a simpler example snippet:

```lua
  
  
-- Toggle this variable accordingly  
local constrain_to_selected = true   
  
-- Define iter, Can be any valid iterator, does not matter which one example:  
-- renoise.song().pattern_iterator:lines_in_pattern(renoise.song().selected_pattern_index)  
local iter = nil  
  
for pos,line in iter do  
 for cur_col,note_col in ipairs(line.note_columns) do  
 if  
 (  
 not constrain_to_selected or  
 constrain_to_selected and note_col.is_selected  
 )  
 then  
 -- Do something here  
 end  
 end  
end  
  

```

The procedure revolves around the`constrain_to_selected` boolean.

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 11, 2011, 7:30pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/15 "2011-01-11T19:30:11Z")

</div>

> [@dac514](#):
>
> It is possible. I do it in NotesRandomizer. The thread you linked is about moving the selection block around. Here’s a a simpler example snippet:
> 
> ```lua
> -- Toggle this variable accordingly local constrain_to_selected = true -- Define iter, Can be any valid iterator, does not matter which one example: -- renoise.song().pattern_iterator:lines_in_pattern(renoise.song().selected_pattern_index) local iter = nil for pos,line in iter do for cur_col,note_col in ipairs(line.note_columns) do if ( not constrain_to_selected or constrain_to_selected and note_col.is_selected ) then -- Do something here end end end   
> 
> ```
> 
> The procedure revolves around the`constrain_to_selected` boolean.

Thanks again Conner!

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [January 15, 2011, 5:29pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/16 "2011-01-15T17:29:57Z")

</div>

0.7 Added option for “Selection in Pattern”:

[http://www.renoise.c…ndpost&p=221402](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904)

---

<div class="post-metadata">

**Author:** ![vincentvc](https://forum.renoise.com/user_avatar/forum.renoise.com/vincentvc/32/938_2.png) [@vincentvc](https://forum.renoise.com/u/vincentvc)\
**Post date:** [January 15, 2011, 7:56pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/17 "2011-01-15T19:56:04Z")

</div>

Awesome!! ![:D](https://files.renoise.com/forum/emoticons/default/biggrin.gif)

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [February 11, 2011, 4:21pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/18 "2011-02-11T16:21:24Z")

</div>

v 1.0 now on tools page

Please note updated shortcut names and menu names (tidied)

[http://tools.renoise…strument-number](http://tools.renoise.com/tools/convert-instrument-number)

---

<div class="post-metadata">

**Author:** ![gentleclockdivider](https://forum.renoise.com/user_avatar/forum.renoise.com/gentleclockdivider/32/663_2.png) [@gentleclockdivider](https://forum.renoise.com/u/gentleclockdivider)\
**Post date:** [February 11, 2011, 5:05pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/19 "2011-02-11T17:05:22Z")

</div>

It’ s still awesome

---

<div class="post-metadata">

**Author:** ![Ledger](https://forum.renoise.com/user_avatar/forum.renoise.com/ledger/32/92_2.png) [@Ledger](https://forum.renoise.com/u/Ledger)\
**Post date:** [February 11, 2011, 5:43pm UTC](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904/20 "2011-02-11T17:43:30Z")

</div>

> [@gentleclockdivider](#):
>
> It’ s still awesome

![B)](https://forum.renoise.com/uploads/default/original/3X/1/9/196bd4662947e797ef8567d4c1de4c4d84512d32.gif)

[Next page](https://forum.renoise.com/t/new-tool-convert-instrument-numbers/30904.md?page=2)
