Welcome, Guest
Username: Password: Remember me

TOPIC: Convert SFZ/SF2 via command-line?

Convert SFZ/SF2 via command-line? 1 year 6 months ago #1

  • gp
  • gp's Avatar
  • Offline
  • New Member
  • Posts: 2
I'd like to convert between SFZ and SF2 via command-line. Is that possible with Polyphone?
The administrator has disabled public write access.

Convert SFZ/SF2 via command-line? 1 year 5 months ago #2

  • Strix SoundFont Team
  • Strix SoundFont Team's Avatar
  • Offline
  • Senior Member
  • DSoundFont's Creator
  • Posts: 59
  • Thank you received: 16
Unfortunately, there is no command line on polyphone, except for the external tool to edit samples.

As a workaround, you can open each sf2/sfz and choose export soundfont. You select the format.

I agree, it would be convenient to convert sfz to sf2 on command line as I only have sf2 players.
Strix SoundFont Team

The creator of DSoundFont and FM Electric Piano.

Download these and much more at:

sites.google.com/site/strixsoundfont
Last Edit: 1 year 5 months ago by Strix SoundFont Team.
The administrator has disabled public write access.

Convert SFZ/SF2 via command-line? 10 months 2 days ago #3

  • Tom Parker
  • Tom Parker's Avatar
  • Offline
  • New Member
  • Posts: 1
Any news on this (having more command line options) ?
The administrator has disabled public write access.

Convert SFZ/SF2 via command-line? 5 months 1 day ago #4

  • Davy
  • Davy's Avatar
  • Offline
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Posts: 340
  • Thank you received: 81
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

I'll create a page in the documentation for the command lines.
The administrator has disabled public write access.

Convert SFZ/SF2 via command-line? 5 months 1 day ago #5

  • gp
  • gp's Avatar
  • Offline
  • New Member
  • Posts: 2
Does this work for Mac as well?
The administrator has disabled public write access.

Convert SFZ/SF2 via command-line? 5 months 1 day ago #6

  • Davy
  • Davy's Avatar
  • Offline
  • Administrator
  • Organ enthusiast and creator of Polyphone
  • Posts: 340
  • Thank you received: 81
Yes
On mac you can write "polyphone -h" or maybe "man polyphone" and the documentation should appear.
The administrator has disabled public write access.
Time to create page: 0.103 seconds