working with music XML files

Mar 20, 2010 at 12:12am

working with music XML files

Hi,

I need your advice. I would like to make patch for some kind of
analysis of music files and I would like to use music XML files instead of MIDI files. Are there any objects for working with music XML files?? I know that pattrstorage can read XML files, but are there any others?? What would you prefer?? Thank you

#49236
Mar 20, 2010 at 2:20pm

Yeah, there’s detox, intox, and toxine from Jasch at http://www.jasch.ch/dl/

It’s okay, although it goes line-by-line and I haven’t really figured out how to make it work that well for me. I prefer the more non-linear reading, like Objective C.

Anyway, this should do it for you for MusicXML.

What kind of analysis are you using, and why not use MIDI? Are you trying to involve timbral and other musical elements as well, or just want to get out of the MIDI arena?

#176894
Mar 20, 2010 at 3:49pm

Thank you for your reply, first of all. It is going to be a harmony analysis patch. MIDI is not suitable because it dont distinguish between for example c sharp note a d flat note, which are enharmonically same notes, but for harmonic analysis purpose these two notes have to be distinguished. Thats why I would like to use music XML files.

I just need to read music xml file, and then filter some information about notes played in certain time and so on ..

I have also tried recently use pattrstorage object to read several xml file (not only music xml files)and it havent worked. Each time in max window appeared: incompatible file type. So now I am little confused.

#176895
Mar 20, 2010 at 5:14pm

pattrstorage is not compatible with the MusicXML format, it reads and writes its own XML-based format containing presets and values.

#176896
Mar 21, 2010 at 10:16pm

I see .. thank you for the information.

So, is there any way that I could handle musicXML files in Max/MSP or not??

What about loadind musicXML file as text file and then applying some processing??

Thank you

#176897
Mar 22, 2010 at 12:13am

You could either load it into [text] and step through it line by line using the [detox] object, mentioned above, to help with the processing. Alternatively you might want to try using the [js] object and convert the XML into JSON using some freely available conversion code. This should make it easier to navigate in javascript which might be helpful.

lh

#176898
Mar 22, 2010 at 7:15pm

Tank you all for your replies.

#176899
Mar 22, 2010 at 7:16pm

not tank :) but thank ..

#176900
Mar 22, 2010 at 7:26pm

Or use JMSL and MaxScore

-A

#176901

You must be logged in to reply to this topic.