NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: NoteWorthy Online on 2015-11-20 07:11 pm

Title: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2015-11-20 07:11 pm
Posted a binary update/release of Nicolas Froment's ( @lasconic ) nwc2musicxml that can be run locally as a NWC User Tool:

https://github.com/nwsw/nwc2musicxml/releases/tag/test_0.3

In order to use this release, you must have installed Java SE (Java run-time environment).

If you download the included *.jar file (https://github.com/nwsw/nwc2musicxml/releases/download/test_0.3/nwc2musicxml.jar), you can then configure it as a user tool from Tools, User Tool, New...

A screenshot of the configuration is attached.

Note: Updated to version test_0.3 on 02-Jun-2016
Title: Re: Test Release: nwc2musicxml
Post by: Mike Shawaluk on 2015-11-20 07:51 pm
I have made a few test runs of the tool, but haven't tried to import the results into any other programs just yet. However, I've noticed a few anomalies:

1. If the score contains hairpins, text similar to the following will be printed in the STDOUT window prior to the XML:
Crescendo
Crescendo
Crescendo
Stop
Stop
Diminuendo
Stop
Diminuendo
Stop
Diminuendo
Stop
Stop
Stop
Stop

2. I received an exception when running this for one score:

Code: [Select · Download]
Exception in thread "main" java.lang.NumberFormatException: For input string: "9.5"
 at java.lang.NumberFormatException.forInputString(Unknown Source)
 at java.lang.Integer.parseInt(Unknown Source)
 at java.lang.Integer.parseInt(Unknown Source)
 at fr.lasconic.nwc2musicxml.model.Tempo.parse(Tempo.java:49)
 at fr.lasconic.nwc2musicxml.convert.Nwc2MusicXML.processLine(Nwc2MusicXML.java:550)
 at fr.lasconic.nwc2musicxml.convert.Nwc2MusicXML.convert(Nwc2MusicXML.java:80)
 at fr.lasconic.nwc2musicxml.convert.Nwc2MusicXML.main(Nwc2MusicXML.java:1519)
It appears to have been caused by a Tempo object with Pos:9.5. Changing the Tempo object's position to an integer value prevents the exception.
Title: Re: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2015-11-20 08:45 pm
I have made a few test runs of the tool, but haven't tried to import the results into any other programs just yet.

In my experience, a successful import depends largely on the source material. I am not necessarily going to fix all of the possible problems. This is largely provided as-is.

I updated the release to test_0.11 (https://github.com/nwsw/nwc2musicxml/releases/tag/test_0.11), which includes the fixes for your reported issues.
Title: Re: Test Release: nwc2musicxml
Post by: Richard Woodroffe on 2015-11-21 06:23 pm
I've tried this out and it provided an xml score that loaded successfully into another music program.
This was not without errors (such as missing fermata, missing accidentals ) .  But given the following :

I'm not sure that I want to spend time checking between source and output and then documenting errors, particularly since the opposite conversion of mxml to nwc2 , that I would find much more useful, does not appear to be on the cards.



Title: Re: Test Release: nwc2musicxml
Post by: melismata on 2015-11-21 06:36 pm
the opposite conversion of mxml to nwc2 , that I would find much more useful, does not appear to be on the cards.


IMHO Both are useful and both should be on the cards.  Maybe for version 3.0 ?
Title: Test Release: nwc2musicxml test_0.2
Post by: NoteWorthy Online on 2015-11-22 12:20 pm
In this update (https://github.com/nwsw/nwc2musicxml/releases/tag/test_0.2):

Title: Re: Test Release: nwc2musicxml
Post by: Lawrie Pardy on 2015-11-22 01:00 pm
<snip>
In order to use this release, you must have an up to date Java run-time environment installed on your machine.
<snip>
Damn - I have some Cisco tools I MUST use that will not run in current Java releases - I need to be about 3 years (currently) out of date :(
Title: Re: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2015-11-22 01:08 pm
You can install and use multiple JRE versions (http://www.oracle.com/technetwork/java/javase/jre-update-scenarios-142141.html).
Title: Re: Test Release: nwc2musicxml
Post by: Lawrie Pardy on 2015-11-23 03:21 am
Thanks Eric,
when my head is up to it I'll take a closer look.
Title: Re: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2015-11-23 05:34 pm
I changed the build target to Java SE 6, and then rebuilt the tool. Perhaps that will help...
Title: Re: Test Release: nwc2musicxml
Post by: Lawrie Pardy on 2015-11-24 03:45 am
Wonderful!!!  Worked a treat.

Thanks mate :D :D :D
Title: Re: Test Release: nwc2musicxml
Post by: Haymo on 2015-11-24 03:48 pm
Thanks  - it will be great when conversion NWC <---> XML is available natively in NWC
Title: Re: Test Release: nwc2musicxml
Post by: Paul O on 2015-11-30 10:58 am
Looks promissing. How can I use it to try it out?
I downloaded the "update" from reply #5; I only received a warning when I used the user tool.
test_0.11 from reply #2? or the earlier "included *jar file?
I'm a layman in these matters.
Title: Re: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2015-12-11 03:49 am
How can I use it to try it out?

I am looking at ways to make this easier.
Title: Re: Test Release: nwc2musicxml
Post by: NoteWorthy Online on 2016-02-09 02:36 pm
This has been updated to fix issues with notes in the Tenor clef.
Title: Re: Test Release: nwc2musicxml
Post by: therapon57 on 2016-03-16 08:44 pm
Quick question: Is there a way to set the default output directory? It automatically goes to My Documents and I would like to set another one as default if possible.
Title: Re: Test Release: nwc2musicxml
Post by: lasconic on 2016-05-01 03:52 pm
I just updated http://nwc2musicxml.appspot.com/ with the fixes made by "Noteworthy Online" and a couple other fixes. It also have a new UI. Enjoy!
Title: Re: Test Release: nwc2musicxml
Post by: lasconic on 2016-05-29 10:09 pm
And another update. The converter now supports Coda, Segno and voltas. Thanks to Tim Hedger-Gourlay.
http://nwc2musicxml.appspot.com/
Title: Re: Test Release: nwc2musicxml
Post by: benspratling4 on 2019-03-03 02:28 am
lasconic, thanks a ton for this converter!  Unfortunately, it doesn't correctly assign lyrics to notes when different lyric lines use different voices to reflect a change in rhythm from one verse to another.  Which makes almost every real converted file unusable without a large amount of additional work.  Any chance you could fix that?  ( I don't know java or have any working knowledge of the .nwctxt format, otherwise I'd help.)
Title: Re: Test Release: nwc2musicxml
Post by: Opagust on 2021-05-24 09:28 am
I started to write a tool for converting musicxml to nwctxt.
Until a month ago I never opened a musicxml file. But I found the documentation on https://www.musicxml.com/ (https://www.musicxml.com/). There's a tutorial, but it doesn't cover everything, and the rest of the documantation isn't very easy to master. Another great help was lasonic's tool.  So I could study the xml-files from several of my own nwctxt files, which are all choral scores.
My next step will be to download some bigger files from the scriptorium and run lactoniscs tool on them, so I can compare the output of my tool with the original nwc-file.

But after that I'd like to test with 'external' xml files. So If you could send me such files, with their corresponding pdf, I would be very grateful. You can include them as a reply to this post, or send a personal message.


Title: Re: Test Release: nwc2musicxml
Post by: Flurmy on 2021-05-24 02:01 pm
Of course you know about https://www.niversoft.com/products/xml2nwc/ (https://www.niversoft.com/products/xml2nwc/), do you?
Title: Re: Test Release: nwc2musicxml
Post by: Bart on 2021-05-24 03:30 pm
Dear Opagust,

Musescore can export files into musicxml format.
So what you can do is to search for midi files on the internet (or create them from NWC files), import them in Musescore and export as musicxml file.
With this detour you can create for your tests more musicxml files that you can ever verify. See one attached example.

Bart
Title: Re: Test Release: nwc2musicxml
Post by: Flurmy on 2021-05-24 06:24 pm
Sorry, Bart, but I disagree.
If you pass through MIDI you lose too many typographic details.
It is much better to seek the internet for some well done Musescore parts and export them in musicxml.