Skip to content

Instantly share code, notes, and snippets.

@ryrun
Last active July 27, 2025 12:42
Show Gist options
  • Save ryrun/a1e9be02a000bf978bbd to your computer and use it in GitHub Desktop.
Save ryrun/a1e9be02a000bf978bbd to your computer and use it in GitHub Desktop.
Simple converter for renoise 3.1 to convert sfz files to xrni
files = renoise.app():prompt_for_multiple_filenames_to_read({"*.sfz"},"SFZ files to convert")
--check for files
if table.getn(files)>0 then
for key,value in pairs(files) do
outputfile = value:match("^(.*)\.[sS][fF][zZ]+$")
renoise.app():load_instrument_multi_sample(value)
renoise.app():save_instrument(outputfile)
end
renoise.app():show_message(table.getn(files) .. " instruments converted.")
else
renoise.app():show_message("No files selected.")
end
@franky436
Copy link

This is awesome, thanks for sharing !!

@ryrun
Copy link
Author

ryrun commented Aug 4, 2019

@frank

This is awesome, thanks for sharing !!

No problem. Hope it helps :)

@esaruoho
Copy link

thanks @ryrun - i've modified this and applied it to my tool Paketti. how would you like to be credited? ryrun in Credits?

@esaruoho
Copy link

ok i've added this to the codebase, and this to the dialog:

--- ryrun SFZ2XRNI.lua
--- original source: https://gist.github.com/ryrun/a1e9be02a000bf978bbd
Screenshot 2025-07-25 at 21 28 27

thanks for the neat idea! i modified it pretty heavily - it will now either save and load or just load
and the saved and loaded instruments are auto-pakettified, so these are added:

Screenshot 2025-07-25 at 21 28 56

@ryrun
Copy link
Author

ryrun commented Jul 27, 2025

@esaruoho Nice to see that this little code snippet is still useful. I originally saved it as a gist for myself in case I ever needed to quickly convert something again. I’m totally fine with you including it in your tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment