Music 253 XML homework

From CCARH Wiki
Revision as of 16:40, 2 March 2017 by Craig (Talk | contribs) (Question 8)

Jump to: navigation, search

Here is a MusicXML file to use for the following questions: hwsample.xml

1 Question 1

Draw a tree diagram of the sample file's elements

2 Question 2

What is the root element of the file?

3 Question 3

Load the MusicXML file into MuseScore, Finale, Sibelius, or Noteflight. Then export it from the program as MusicXML data (not as a compressed MXL file although you could uncompress it with a zip program).

3.1 Q3a

Draw a tree-diagram of the MusicXML output from the program.

3.2 Q3b

What has changed between the two files?

4 Question 4

Data validation

In the example MusicXML file, here is the note element and its contents:


Edit the file, changing the order of one more sub-elements within the note element. Load the file into MuseScore, Finale, Sibelius or Noteflight. What happens? If something different from loading for question 3, why is it happening?

5 Question 5

Add note sub-elements/attributes by hand.

Referring to the DTD for the note element in MusicXML:

or a more textual description of the sub-elements and attributes of note elements:

For the note element in the example file, change the content of at least one sub-element parameter. Add at least three parameters (either elements or attributes on elements), such as adding articulations or changing the notehead shape. Load it into a music notation editor. Does it validate? (if not then fix it until it validates).

6 Question 7

Add some more notes and measures to the original MusicXML sample file. Also try adding a chord. Send the modified original file (not the output from the music notation program) along with a screen-capture of the rendered notation from the editor (or a printout from the editor).

7 Question 7

Save the MusicXML sample file to your computer. Then drag-and-drop the file into Verovio Humdrum Viewer and then press alt+m to view the data converted into MEI data.


7.1 7a

Draw the element tree for this file. Compare to the one for the MusicXML file drawn for question 1.

7.2 7b

What is the contents of the element for the example note? How are the note's parameters expressed differently than in the MusicMXL note element?