如何读取FLASH CS4/AS3中的MusicXML文件以便直观地显示数据

发布于 2024-10-10 20:44:16 字数 1436 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

季末如歌 2024-10-17 20:44:16

您可以使用 E4X(ECMAscript for XML)来读取和解析 MusicXML 文件,就像使用它来读取和解析其他 XML 文件一样。据我所知,没有额外的类库可用。像 Noteflight 和 Legato 这样在 Flash 中开发 MusicXML 的开发人员发现,销售服务比销售 ActionScript 库更好。

http://www.recordare.com/musicxml 提供了大量 MusicXML 信息,包括教程位于http://www.recordare.com/musicxml/tutorial。通过计算机创建乐谱很复杂,因此如果您想这样做,请做好准备做大量工作。如果您有其他类型的可视化,那可能会容易得多。能够读懂乐谱将会有很大帮助;这是即使在 MusicXML 教程中也假定的知识水平。

祝你好运!

You use E4X (ECMAscript for XML) to read and parse MusicXML files in the same way that you use it to read and parse other XML files. To the best of my knowledge there is no additional class library available. Developers like Noteflight and Legato who are doing MusicXML in Flash find it better to sell services rather than ActionScript libraries.

There is lots of MusicXML information available at http://www.recordare.com/musicxml, including a tutorial at http://www.recordare.com/musicxml/tutorial. Creating music notation by computer is complex, so be prepared for a lot of work if that's what you want to do. If you have some other type of visualization in mind, that could be a lot easier. Being able to read music notation will be a big help; that's a level of knowledge that is assumed even in the MusicXML tutorial.

Good luck!

聆听风音 2024-10-17 20:44:16

只有几种方法,可以覆盖 80% 的 XML 作业:

attributes      An object containing attribute variables assigned to this element.
childNodes      An array containing all child nodes belonging to this node.
parentNode      This node's parent node.
firstChild      The first child in this element's childNodes,
                or childNodes[0]
lastChild       The last child in this elements childNodes,
                or childNodes[childNodes.length-1]
nextSibling     The node after this node in the parent's childNodes array.
previousSibling The node before this node in the parent's childNodes array.

简单的文档位于此处: http://www.republicofcode.com/tutorials/flash/as3xml/

There are only several methods, which will cover 80% of your XML-job:

attributes      An object containing attribute variables assigned to this element.
childNodes      An array containing all child nodes belonging to this node.
parentNode      This node's parent node.
firstChild      The first child in this element's childNodes,
                or childNodes[0]
lastChild       The last child in this elements childNodes,
                or childNodes[childNodes.length-1]
nextSibling     The node after this node in the parent's childNodes array.
previousSibling The node before this node in the parent's childNodes array.

The simple documentation is located here: http://www.republicofcode.com/tutorials/flash/as3xml/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文