Last active
February 25, 2023 10:29
-
-
Save ryrun/a1e9be02a000bf978bbd to your computer and use it in GitHub Desktop.
Simple converter for renoise 3.1 to convert sfz files to xrni
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is awesome, thanks for sharing !!