Ok, waiting for my food to cook I’ve done something half assed for you to get started:
Click to view contents
add_action(“Custom:Select Instrument 00 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 1
end
end)
add_action(“Custom:Select Instrument 01 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 2
end
end)
add_action(“Custom:Select Instrument 02 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 3
end
end)
add_action(“Custom:Select Instrument 03 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 4
end
end)
add_action(“Custom:Select Instrument 04 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 5
end
end)
add_action(“Custom:Select Instrument 05 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 6
end
end)
add_action(“Custom:Select Instrument 06 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 7
end
end)
add_action(“Custom:Select Instrument 07 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 8
end
end)
add_action(“Custom:Select Instrument 08 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 9
end
end)
add_action(“Custom:Select Instrument 09 [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 10
end
end)
add_action(“Custom:Select Instrument 0A [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 11
end
end)
add_action(“Custom:Select Instrument 0B [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 12
end
end)
add_action(“Custom:Select Instrument 0C [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 13
end
end)
add_action(“Custom:Select Instrument 0D [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 14
end
end)
add_action(“Custom:Select Instrument 0E [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 15
end
end)
add_action(“Custom:Select Instrument 0F [trigger]”,
function(message)
if message:is_trigger() then
renoise.song().selected_instrument_index = 16
end
end)