Support for smaller ".sf3" files? #91
MengLinMaker
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation:
.sf2
uses uncompressed WAV samples, which are also large.Proposal:
Support SoundFont3 which is essentially SoundFont2 with OGG VORBIS compression for 10-20x smaller SoundFont files.
I've started work on a "SoundFont2" fork which appears to be unmaintained:
https://github.com/musidi-org/soundfont3
Challenges:
Decoding OGG to WAV is not supported through
AudioContext.decodeAudioData()
on Safari.SoundFont3 does not follow the SoundFont2.04 spec closely:
EOP
,EOI
,EOS
ending reports for presets, instruments and samples respectively.So far I've added the ability to parse both sf2 and sf3 files, including audio format conversion using ffmpeg, so this only works on Node.
I think it should be possible to convert sf3 to sf2 by converting OGG to WAV through
AudioContext.decodeAudio()
Beta Was this translation helpful? Give feedback.
All reactions