toSf2
Convenience wrapper that resolves this sequence's instrument bank and associated wave archives from archive, then converts the bank to a SoundFont 2 (SF2) file.
Pair the returned SF2 with toMidi for fully authentic NDS music playback:
val sf2 = archive.sequences[0].toSf2(archive)
val mid = archive.sequences[0].toMidi()
File("bgm.sf2").writeBytes(sf2)
File("bgm.mid").writeBytes(mid)Content copied to clipboard
Return
A byte array containing the complete SF2 file.
Parameters
archive
The SDAT archive that contains this sequence.