Administrateur

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Groupe Public active 3 days et 5 hours ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

Include midi channel data in export-musicxml?

Auteur 2 Utilisateurs souscrits |
Profile photo of lt72music
lt72music

Hi. Wondered if there’s any easy way to have midi channel data remain in tact when I’m exporting a Poly to XML (I do have the latest fix ( export-mxml-new-vers18opt) . Examining an exported XML file shows all voices defaulting to midi channel 1. Thanks!

Juillet 8, 2018 à 21:15 #27093
Profile photo of Jean
Jean

Hello — you’re right MIDI info is not considered at the moment in MusicXML export.
As far as I know music XML does not have a MIDI attribute for the “note” element, but the format allows to specify an “instrument” for the note (and I think the instrument can be attached to a MIDI channel). So there’s probably something to do about it. I’ll keep you posted.
Jean

Juillet 22, 2018 à 09:13 #27211
Profile photo of lt72music
lt72music

Good to know, and thank you.

Juillet 22, 2018 à 17:42 #27215
Profile photo of Jean
Jean

Could you try to open the attached XML file (poly.xml) ?

I would expect it to have four notes on four different MIDI channels (attached picture).
Unfortunately I don’t have a music notation software at hand to test it myself.

Also, could you provide an XML file exported by your notation software with different MIDI channels ?

Thank you
Jean

Attachments:
  1. Capture-d’écran-2018-07-30-à-16.30.41

    Capture-d’écran-2018-07-30-à-16.30.41.png

  2. Capture-d’écran-2018-07-30-à-16.30.41

    Capture-d’écran-2018-07-30-à-16.30.41.png

  1. poly.xml
  2. poly.xml
Juillet 30, 2018 à 15:31 #27306
Profile photo of lt72music
lt72music

Thanks, Jean. When I import your attached poly directly into OM, the midi channel data you show on your screen capture is not preserved. All notes are on channel 1.
It looks like midi channel data is not preserved either when I create a doc in Finale and export to xml, so maybe this is trickier than I had thought. I am able to preserve midi data in either direction when simply exporting as a midi file, though.

Juillet 30, 2018 à 18:06 #27313
Profile photo of Jean
Jean

When I import your attached poly directly into OM, the midi channel data you show on your screen capture is not preserved. All notes are on channel 1.

I know. OM does not read MIDI channels in XML.
I would like to know if other notation software can read them in this XML file (poly.xml).

Juillet 30, 2018 à 22:12 #27321
Profile photo of lt72music
lt72music

Ah, got it, sorry about that. I don’t know how to get Finale to distinguish different midi channels within one track or staff. I’m curious though, could you send another poly with different midi channels in separate staves? The musicxml file that I created in Finale, in that format, kept the midi channel information preserved when I re-imported it into Finale (attached)

  • Cette réponse a été modifiée 2 months et 2 weeks ago par Profile photo of lt72music lt72music.
Juillet 31, 2018 à 01:21 #27331
Profile photo of lt72music
lt72music

(attatchment)

  • Cette réponse a été modifiée 2 months et 2 weeks ago par Profile photo of lt72music lt72music.
Juillet 31, 2018 à 01:30 #27333
Profile photo of Jean
Jean

your attachement is still missing. probably the file extension not accepted by this Forum: if this is it I think you can just zip it for instance.

Juillet 31, 2018 à 07:12 #27337
Profile photo of Jean
Jean

… and here is an exported poly with 4 separate voices (one MIDI channel each)

Attachments:
  1. Capture-d’écran-2018-07-31-à-08.14.09

    Capture-d’écran-2018-07-31-à-08.14.09.png

  2. Capture-d’écran-2018-07-31-à-08.14.09

    Capture-d’écran-2018-07-31-à-08.14.09.png

  1. poly-4voices.xml
  2. poly-4voices.xml
Juillet 31, 2018 à 07:21 #27338
Profile photo of lt72music
lt72music

Thanks Jean. I renamed attachment extensions and they seemed to have uploaded now (above), and yes your 4-voice poly was able to be successfully imported into Finale with midi channel data preserved! (screenshot here)

Attachments:
  1. finale-import-4-vx

    finale-import-4-vx.png

Juillet 31, 2018 à 12:15 #27346
Profile photo of Jean
Jean

ok. so, I hope this strategy will work for now :)
=> It is now in-built in the MusicXML import/export functions of OM 6.14
http://forumnet.ircam.fr/shop/fr/forumnet/43-openmusic.html
Let me now if it works.

Best regards,
Jean

Août 28, 2018 à 10:10 #27547

Vous devez être connecté pour répondre à ce sujet.

Log in now