File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ of Lua for Finale can at least load the library.
2424- [ calc_temp_output_path(archive_path)] ( #calc_temp_output_path )
2525- [ calc_gunzip_command(archive_path)] ( #calc_gunzip_command )
2626- [ calc_is_gzip(buffer)] ( #calc_is_gzip )
27+ - [ extract_enigmaxml(filepath)] ( #extract_enigmaxml )
2728
2829### calc_rmdir_command
2930
@@ -132,3 +133,27 @@ Detects if an input buffer is a gzip archive. Sometimes, Finale gzips the intern
132133| Return type | Description |
133134| ----------- | ----------- |
134135| ` boolean ` | true if the buffer is a gzip archive |
136+
137+ ### extract_enigmaxml
138+
139+ ``` lua
140+ ziputils .extract_enigmaxml (filepath )
141+ ```
142+
143+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/refs/heads/master/src/library/ziputils.lua#L177 )
144+
145+ EnigmaXML is the underlying file format of a Finale ` .musx ` file. It is undocumented
146+ by MakeMusic and must be extracted from the ` .musx ` file. There is an effort to document
147+ it underway at the [ EnigmaXML Documentation] ( https://github.com/finale-lua/ziputils-documentation )
148+ repository.
149+
150+ This function extracts the EnigmaXML buffer from a ` .musx ` file. Note that it does not work with Finale's
151+ older ` .mus ` format.
152+
153+ | Input | Type | Description |
154+ | ----- | ---- | ----------- |
155+ | ` filepath ` | ` string ` | utf8-encoded file path to a ` .musx ` file. |
156+
157+ | Return type | Description |
158+ | ----------- | ----------- |
159+ | ` string ` | utf8-encoded buffer of xml data containing the EnigmaXml extracted from the ` .musx ` . |
You can’t perform that action at this time.
0 commit comments