Load xrni into instrument slot

Hello, does anyone know of a function that takes a filepath to a .xrni and loads it into the nth instrument slot? Or have an idea as to how to approximate this? I have a ton of instruments in xrni form and would like to load them programmatically.


1 Like

You mean using a combination like:

renoise.song().selected_instrument_index = [nth instrument index]

(and then)

1 Like

Oh, perfect. I was looking at the API docs for instrument but saw nothing about loading files. Didn’t think to look at the app API.

Thank you very much, works perfectly!