Questions tagged [musicxml]

MusicXML is a digital sheet music exchange and distribution format. It is an example of a symbolic music format that represents musical features like pitches and rhythms, as opposed to audio music formats that represent sound. The format focuses on representing common Western music notation from the 17th century on, and is supported by over 160 music applications.

59 questions
2
votes
0 answers

JAXB 2.2 not unmarshalling unbounded choice elements

I am updating a java application that uses JAXB 1.0 and internally written MusicXML 1.0 schemas, to use JAXB 2.2 and the vendor provided MusicXML 3.0 schemas. When I unmarshall a file with multiple child elements for using…
elliot-j
  • 10,709
  • 3
  • 19
  • 18
1
vote
1 answer

musicXML: 2 voices in 1 measurement

I am trying to create a musicXML file with 2 voices:
user4035
  • 22,508
  • 11
  • 59
  • 94
1
vote
0 answers

MusicXML not affecting MIDI or playback

EDIT: Added complete example at the bottom, for testing (non-working, small but complete). At the top of a MusicXML file, you can define MIDI instruments with IDs, Channel, and Program information as follows (see this w3.org page for a full…
ultraGentle
  • 5,084
  • 1
  • 19
  • 45
1
vote
1 answer

Using in MusicXML to specify MIDI velocity

tl;dr: How can I use the element so that the MIDI velocity of a given note is affected? Background: MusicXML has a MIDI-compatible part (see w3.org specification), for specifying MIDI values (e.g. velocity) when…
ultraGentle
  • 5,084
  • 1
  • 19
  • 45
1
vote
1 answer

Is there a way to read Rests from a musicxml file using music21?

I am trying to read a musicxml file with music21 into a list. I'm keeping it very simple. sheetmusic I've tried the code below but even though it adds the notes without problem, it skips the rest. def xml_to_list(): fn = "Untitled.xml" …
1
vote
1 answer

How to convert abc file to a musicxml file using music21?

I'm writing my thesis and I need some help to understand how I can convert using music21 a set of abc files to a set of musicxml files. I need to write a automatic stream that helps me to convert all the notthingam dataset into a set of musicxml…
1
vote
1 answer

Find what time (in second) spend to play note in musicxml file

I have note like A 3 2 1 eighth up 1
1
vote
1 answer

MusicXML files in java swing - visual representation and dynamic editing

I'm developing a desktop application with java swing which should be able to display the visual content (notes, clefs, measures) defined in a MusicXML file in the frame. All .xml parsers that I found allow me to only create trees. I couldn't display…
user102
  • 35
  • 6
1
vote
1 answer

Why am I getting a namespace error with Manufaktura Library

I am attempting to use this library Manufaktura to draw music notation in a WPF application. I have the using statement that I need according to the instructions on this page using Manufaktura.Controls; using Manufaktura.Model; using…
xerotolerant
  • 1,955
  • 4
  • 21
  • 39
1
vote
2 answers

Iterating over different elements and changing a particular one in JSoup

I need to change a few elements, which are nested deep within a musicxml file. I use jSoup to parse the document and perform my calculations. Now I want to expert the jsoup doc and make a few modifications first. The problem is, within the xml…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
2 answers

Finding note onsets in musicXML

I am trying to parse a list of which pitch classes are being played at each division in a musicXML file with java and jSoup. The output should look like this (one line per division): A C E A C A C D (for instance) I could fill up this array based…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
1 answer

MusicXML file not playing - something missing?

I have generated this musicXML file with my own C++ code. It displays ok in musescore etc, but it is not playing. I am guessing some important info is missing in the file? Here is the file: https://dl.dropboxusercontent.com/u/13564139/cf.xml This…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
3 answers

Finger positions

I am writing an algorithm to calculate piano fingering. I want to add this number (1-5) for each note to a musicXML sheet and I did that by using the fingering property. Yet, the text is placed on the notes themselves in musescore instead of below…
dorien
  • 5,265
  • 10
  • 57
  • 116
1
vote
1 answer

Using XSD.exe for c# code gen, ignores empty nodes in XML?

Maybe I'm not doing this correctly. But I'm using MusicXML, along with XSD.exe to generate the C# classes against the DTD. According to the documentation, along with a sample xml file, the element contains an empty element, if the…
kevin
  • 417
  • 4
  • 20
1
vote
2 answers

Extracting measure number of key change in MusicXML

I am working a lot with MusicXML files and am trying to compile a list of the bars in which there are key changes in a number of pieces. I am in need of some help using python to first identify where the tags occur in the XML file, and then…
user2025161
  • 103
  • 1
  • 5