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
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?
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.
pattrstorage
is not compatible with the MusicXML format, it reads and writes its own XML-based format containing presets and values.
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
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
Tank you all for your replies.
not tank :) but thank ..
Or use JMSL and MaxScore
-A