Forums > MaxMSP

working with music XML files

March 20, 2010 | 12:12 am

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


March 20, 2010 | 2:20 pm

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?


March 20, 2010 | 3:49 pm

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.


March 20, 2010 | 5:14 pm

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


March 21, 2010 | 10:16 pm

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


March 22, 2010 | 12:13 am

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


March 22, 2010 | 7:15 pm

Tank you all for your replies.


March 22, 2010 | 7:16 pm

not tank :) but thank ..


March 22, 2010 | 7:26 pm

Or use JMSL and MaxScore

-A


Viewing 9 posts - 1 through 9 (of 9 total)