0.3.1 • Published 11 months ago

@menglinmaker/soundfont3 v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago
pnpm i @menglinmaker/soundfont3

For examples and API details, visit the documentation website.

 

What does this solve?

Reduce CDN bandwidth up to 25x

SoundFont2 files contain audio samples in WAV format. SoundFont3 uses OGG VORBIS compression - at the cost of audio quality (if you can hear the difference).

Standard compliance

The parser and writer complies with SoundFont 2.01 specification.

However, this also means the SoundFont3 implementation deviates from the unofficial standard set by MuseScore. Nevertheless, editors like Polyphone can read this SoundFont3 file.

Note: MuseScore SoundFont3 breaks the RIFF file standard. This is the main reason for compatability issues.

Caveats

Besides the potential compliance issues, There are a few limitations:

  • SoundFont3 converter requires Node.js and FFMPEG.
  • The web SoundFont2 converter is UI blocking - AudioContext cannot initialise on a separate process (Web Worker).

Note: Try caching the processed file as memiosation.

0.3.1

11 months ago

0.3.0

11 months ago

0.1.0

11 months ago

0.0.3

1 year ago

0.0.2

1 year ago