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.
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.
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.
发布评论
评论(2)
您可以使用 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!
只有几种方法,可以覆盖 80% 的 XML 作业:
简单的文档位于此处: http://www.republicofcode.com/tutorials/flash/as3xml/
There are only several methods, which will cover 80% of your XML-job:
The simple documentation is located here: http://www.republicofcode.com/tutorials/flash/as3xml/