New Tool: Convert Instrument Numbers

On Tools page:

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:


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

1 Like

nice one,cheers

Awesome, thanks!!! :w00t:

Way easier than swapping instrument number or copying, changing instrument place, pasting…I do this practically every day. Thanks again! B)

Glad you guys find it useful!

yeah its great,your gonna save me mountains of tedious work :D

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

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

http://www.renoise.c…showtopic=26222

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

Nice1 again!

Nice one indeed!

fladd

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

thnx!

Just wanted to add along with everyone else that this tool is great and practical. Thanks :)

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.

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:

  
  
-- 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 theconstrain_to_selected boolean.

Thanks again Conner!

0.7 Added option for “Selection in Pattern”:

http://www.renoise.c…ndpost&p=221402

Awesome!! :D

v 1.0 now on tools page

Please note updated shortcut names and menu names (tidied)

http://tools.renoise…strument-number

It’ s still awesome

B)