File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 4040--[[
4141% extract_enigmaxml
4242
43- EnigmaXML is the underlying file format of a Finale `.musx` file. It is undocumented
44- by MakeMusic and must be extracted from the `.musx` file. There is an effort to document
45- it underway at the [EnigmaXML Documentation](https://github.com/finale-lua/ziputils-documentation)
46- repository.
47-
4843This function extracts the EnigmaXML buffer from a `.musx` file. Note that it does not work with Finale's
4944older `.mus` format.
5045
5146@ filepath (string) utf8-encoded file path to a `.musx` file.
52- : (string) utf8-encoded buffer of xml data containing the EnigmaXml extracted from the `.musx`.
47+ : (string) buffer of EnigmaXml data extracted from the `.musx`. (The xml declaration specifies the encoding, but expect it to be utf8.)
5348]]
5449function enigmaxml .extract_enigmaxml (filepath )
5550 local not_supported_message
@@ -67,7 +62,7 @@ function enigmaxml.extract_enigmaxml(filepath)
6762 end
6863
6964 -- Steps to extract:
70- -- Unzip the `.musx` (which is `.zip` in disguise)
65+ -- Unzip the `.musx` (which is a `.zip` archive in disguise)
7166 -- Run the `score.dat` file through `crypt_enigmaxml_buffer` to get a gzip archive of the EnigmaXML file.
7267 -- Gunzip the extracted EnigmaXML gzip archive into a string and return it.
7368
You can’t perform that action at this time.
0 commit comments