ws-apifix: music is audio (F.save / F.convert of a Module or Midi to an audio format renders it, render options from opts; F.audio.open / load render music bytes), F.music builder (ops/MusicOps: new, addPattern, setCell / getCell, addSample, addInstrument, note; also F.ops.music), MIDI writer writes track.name as a 0x03 event

api (init.luau): detectFor() falls back from audio to rendering music formats; encoderFor finds audio formats for
music values; renderMusic() through codecs/audio/Tracker or music/midi render.
This commit is contained in:
4DBug committed 2026-10-31 13:56:21 -05:00
1 parent 25d8e4ff25
commit 10bd6b021f
7 files changed
+692 -16

No files matched your search

+2 -2
View File
@@ -250,5 +250,5 @@ visualisers.
number.
- `F.save(decoder)` without `opts.format` or a destination fails with `Err.ARG`, because a Decoder has no source
format.
- `F.audio.load` does not take music files (MOD, MIDI). Use `F.music.open(src)` for their audio
([music.md](music.md)).
- Music files (MOD, S3M, XM, IT, MIDI) are audio too: `F.audio.open` / `F.audio.load` render them, with the
render options in `opts` ([music.md](music.md)).