Giter Site home page Giter Site logo

cognitone / sf2convert Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 3.0 44 KB

Convert SF2 SoundFonts to SF3 (Vorbis) or SF4 (FLAC) and back

License: GNU General Public License v2.0

C 6.39% C++ 90.41% Objective-C++ 3.21%
soundfonts juce audio midi ogg-vorbis flac musescore

sf2convert's Introduction

sf2convert

Convert SF2 SoundFonts to SF3 (Vorbis) or SF4 (FLAC) and back

This utility converts SF2 files to SF3 format, using Ogg Vorbis for sample compression (SF3 is natively supported by MuseScore). Conversion of SF3 back to SF2 is also possible, however since Ogg Vorbis is lossy, SF3 is not useful for archiving purposes.

Alternatively, sf2convert converts to a new proposed SF4 format (not a standard in any way yet), using lossless FLAC for sample compression. This format is well suited for archiving and maybe a workable replacement for the legacy sfArk format.

Based on the SoundFont reader/writer class by Davy Triponney (2015, Polphone), Werner Schweer and others (2010, MuseScore), which was ported from Qt to the Juce framework and somewhat extended in order allow for easy integration with Juce-based projects. It makes use of the Vorbis and FLAC classes of Juce. In order to compile sf2convert, you'll' need Juce version 4. As a result, sf2convert compiles and runs on Mac, Windows, Linux and more.

Usage

Compression with Ogg Vorbis (o)
sf2convert -zo <infile.sf2> <outfile.sf3>

Compression with FLAC (f)
sf2convert -zf <infile.sf2> <outfile.sf4>

Extraction of any compressed format:
sf2convert -x <infile.sf?> <outfile.sf2>

For additional options, run the utility with an empty command line.

Download

This repository does not include compiled binaries. If you want to use sf2convert as an end user, you can download it for Windows and Mac from the Cognitone website.

How To Compile

The SoundFont class was ported to Juce and thus can be integrated with Juce projects rather easily. To compile, you need to get Juce 4 and use Projucer to create project exporters for your target platform.

License

Released by Cognitone under GPLv2.

sf2convert's People

Contributors

aurelium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sf2convert's Issues

sampletype will be corrupted

The output file will be corrupted when compressing.
"sampletype" becomes invalid and cannot be loaded by MuseScore/fluidsynth.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.