Is there a command line tool to convert sfz soundfonts to sf2 soundfonts?
I know there is the polyphone app, but it doesn't seem to have a command line interface.
Sound Design Stack Exchange is a question and answer site for sound engineers, producers, editors, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
Yes, this is possible.
The same question was asked in one of the forums, with an answer available: https://www.polyphone-soundfonts.com/forum/support-bug-reports/255-convert-sfz-sf2-via-command-line.
According to the conversation, it appears to work for PC and Mac.
In the article, the steps outlined are:
Yes there is! But I never documented it. Here are command lines to run in a powershell that convert from sf2 to sfz and from sfz to sf2:
cd C:\Program Files\Polyphone .\polyphone.exe -3 -i C:\Path\To\Your\Soundfont.sf2 .\polyphone.exe -1 -i C:\Path\To\Your\Soundfont.sfz
You can set the output directory with "-d" and the output file with "-o". -1 is for a conversion to sf2 -2 is for a conversion to sf3 -3 is for a conversion to sfz
On mac you can write "polyphone -h" or maybe "man polyphone" and the documentation should appear.