Files
rosetta/docs/FORMATS.md
T
4DBug 6986b82ab9 ws-music: music/sf2 + SoundFont tests vs FluidSynth (envelope r 0.995, band spectra r >= 0.969, pitch peaks within 0.6%), gain ramp per block, bench lines
tools/bench.sh: also generates the midi + sf2 fixtures (the bench renders their songs). licenses: TinySoundFont MIT row in NOTICE.md.
2026-10-31 08:44:56 -05:00

984 B

Formats

GENERATED by tools/gen_registry.py from each format's contract (caps) - do not edit. Every format listed here is tested under both runtimes (luau --codegen -O2 and LuaJIT through the build) by bash tools/test.sh.

Category Format Extensions Read Write Capabilities Test
image png .png .apng yes yes animation: false, alpha: true, depths: 1, 2, 4, 8, 16 tests/image/png.luau
music midi .mid .midi .smf .kar .rmi yes yes formats: 0, 1, 2, render: true, streaming: true, rmid: true tests/music/midi.luau
music sf2 .sf2 yes - sm24: true, sf3: false tests/music/sf2.luau

Codecs (layer 1, shared by formats; not loadable on their own):

  • codecs/Deflate: DEFLATE (RFC 1951) decoder and compressor, with the zlib (RFC 1950) and gzip (RFC 1952) wrappers.
  • codecs/SoundFont: SoundFont 2 banks and the sample synth that plays MIDI through them. A codec (layer 1) shared by