Compress SoundFont, from .sf2
to .sf3
:
- Achieve 10x lossy compression with OGG VORBIS.
- Used in MuseScore.
This is a fork of MuseScore sftools with more compliance with RIFF format.
Install dependencies:
Qt >= 6
libsndfile >= 1.0.25
libogg >= 1.3.3
libvorbis >= 1.3.0
Build binary:
make release
This compresses the sample piano SoundFont from 21.8 MBytes to 1.8 MBytes.
build.release/sf3convert -z test/piano.sf2 test/piano.sf3
The compressed SoundFont is non standard - mostly used by MuseScore.
- Currently stereo samples are compressed as two single streams instead of compressing them as stereo ogg vorbis streams. This may be less optimal.
- Adhere to RIFF chunk size rules.