Skip to main content
Topic: NWCCONVERTOR (Read 383872 times) previous topic - next topic

Re: NWCCONVERTOR

Reply #151
I couldn't run NWCCONVERTER on my Windows 11 PC.
Please see the attached.
The error occurred during reading the configuration file. It seems to be incorrect.
You can find this file in the map 'C:\Users\yourusername\AppData\Local\NWCCONVERTOR\nwcconvertor.nwc'.
If you attach that file, I can look at it to see what's wrong.

Gust

Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #152
G'day Opagust,

just popping in to say "thanks" for this. I use audiveris to scan pdf sheets which outputs to music xml. I've been using the niversoft online converter, but I always felt guilty 'stealing' cpu-cycles from someone else. now with your tool I can eat all my own cycles :)
and thanks for the pointer to the user/pass here - I missed it first time 'round (and posted a stupid question on your site - sorry)

and just double-checking - the 'nwcconverter-2.0.05.exe' is a standalone executable, right?

best reg's,
.h

Re: NWCCONVERTOR

Reply #153
just popping in to say "thanks" for this.
...
and just double-checking - the 'nwcconverter-2.0.05.exe' is a standalone executable, right?

- You're welcome
- It's a stanalone indeed

Gust
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #154
I have to add that Gust's converter is also far more up to date than the Niversoft one.
For goodness sake - Gust's one even accounts for the many plugins that have been written by users , not by NWC themselves.

A superb conversion program both into and out of NWC.

It seems that there may not be further updates of the NWC program (it doesn't seem like it does it  - about 9 or 10 years since the last one I think)- such a pity- however, had there been more upgrades, one of the ones that I would have wanted would have been to include Gust's converter into the native NWC program.

So sad that we have had no upgrades for years.

R,
Rich.

Re: NWCCONVERTOR

Reply #155
Hi Rich,
I completely concur.
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #156
Hello Opagust,
I wanted to update you that I have finally been able to access the nwcconvertor program using the access credentials you shared on page 1 of this thread. Thank you very much for providing those details.
I am now able to test and compare the program with the direct MIDI export that I currently use.
Thank you very much for your work and for the time you have dedicated to developing this tool for the community. Your generosity in sharing access is greatly appreciated.
Many thanks again.
Kind regards.

Re: NWCCONVERTOR

Reply #157
Your very (very? extremely:-* ) helpful program converted 2 Mendelssohn files successfully - but not 3 others I tried -> they are in the attached ZIP.
Could you take a look into what happens here - not at all urgent  O:)  (I have the other 2), but maybe somewhen?
The files are from https://www.cpdl.org; the MS4 one I ran through MuseScore4, which sometimes creates a better MXL - but not here, it seems.

Thanks!
Harald

Re: NWCCONVERTOR

Reply #158
Hi Harold,
-  I could sucsessfully convert the 2 ''laudate pueri' files. Can you tell me what's your problem with them?
-  The 'Men-lau' files didn't convert, I'm looking into it. Think I can fix it.
Always look on the bright side of life!

No conversion

Reply #159
Missing conversion:
Quote
Analysing...
Input file: C:/Users/Flurmy/Desktop/Il genetliaco.xml
Waiting for setup...
Converting...
Then: CPU used = 0%  :D

Re: NWCCONVERTOR

Reply #160
In the options->MusicXml to NWC tab, what's that black band? (see attached screenshot)

When I use "browse" to select Ultraedit for "Open NWC output file with..." my choice seems to be ignored or, at least, not remembered.

Re: NWCCONVERTOR

Reply #161
Version 2.0.05.1 is available at https://www.opagust.be/content/nwcconvertor

Changes:

for hmmueller:
 - correction calculating position from default_y (positive is up, negative is down)
 - correction bug in tag starting with '<?' : treating as a comment

for Flurmy:
 - correction bug in determining voice numbers per staff number
   The file contained a separate staff (staff2/voice1), with only pedal marks and no notes nor rests.
   After changing the program, the conversion ends successfully, but I think you will have move the pedal marks manually at the right place in the staff where they belong


Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #162
In the options->MusicXml to NWC tab, what's that black band? (see attached screenshot)

When I use "browse" to select Ultraedit for "Open NWC output file with..." my choice seems to be ignored or, at least, not remembered.

- On my computer it's a gray band, showing the path of the selected program from the combo box, see attachment.
Maybe you should change your colour theme?

- I have to check why the browse button does'nt do what should be expected. Stay tuned...


Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #163
I think you will have move the pedal marks manually at the right place in the staff where they belong
I think so too.

Maybe you should change your colour theme?
Well, of course the problem is the colour theme, but it's not "mine", it's the Windows 10 standard dark theme.

Thank you for the fix.

P.S. That file was generated by Sibelius. Sibelius the software, of course! :-)
"[Musicians] talk of nothing but money and jobs. Give me businessmen every time. They really are interested in music and art." - Jean Sibelius

Re: NWCCONVERTOR

Reply #164
Version 2.0.05.2 is available at https://www.opagust.be/content/nwcconvertor
 - correcting action on browse buttons in Options window
 - changes to improve readability in Windows dark theme
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #165
Quote
04/07/2024: 2.0.01
- including the pencil_icon in the zip file.
Still needed, but not included anymore.


Re: NWCCONVERTOR

Reply #167
Version 2.0.05.3 is available at https://www.opagust.be/content/nwcconvertor

 - correcting bug for setup window in nwc->musicxml conversion
 - correcting bug for instrument change with transpose 0 (reported by William
 - correcting bug for nested slurs (reported by Keith John Hutchison)
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #168
Hi Gust,
go an error for you:
Ver 2.0.05.03
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #169
Sorry for being such a p.i.t.a. but, once again, the text is unreadable.
The loggings are saying:
Quote
Analysing...
Input file: F:/Tmp/elpueblo.mxl
Unzipping...
Unzipping META-INF/container.xml
Extracted: META-INF/container.xml
Unzipping score.xml
Extracted: score.xml
Waiting for setup...
Converting...
Conversion completed.
Output saved in:
F:/Tmp/elpueblo-mxl.nwctxt
but...

Re: NWCCONVERTOR

Reply #170
I converted an xml file, so I got  the setup window.
After having filled the data in the "NWC title page section" and in "parts/staves" having set "Lyric lines" = 0, I clicked "ok".
Conversion done and file saved, I got:
  • The title remained the one proposed by the xml file.
  • Author and lyricist are ok.
  • Copyrigths are empty. My changes ignored or remained those proposed by the xml file?
  • "Lyric lines" = 1. Change ignored.
Not a big problem, but then you could skip the whole "setup window" and set them in NWC.  :D

If,, for any reason, you want to abort the conversion project at any stage, the only way to restart is to close and reopen NWCconvertor.

Re: NWCCONVERTOR

Reply #171
Version 2.05.04 is avalable in https://www.opagust.be/content/nwcconvertor

- dealing with empty staves
- replacing characters '<' and '>' with their unicode equivalent in the musicxml file
- cancel button in setup windows didn't work
- in conversion xml -> nwc:
* changing title didn't work
* filling copyrights didn't work when there is no <rights> tag in the inputfile
* staves table items mustn't be editable
* processing <other-dynamics> tag
* rounding calculated position
* looking for tempo variance in <words> tag
* Converting <dashes> tags into LineSpan.nw user object
- in conversion xml -> nwc:
* creating LineTag.nw user object from <dashes> tags

Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #172
It seems the "NWC User" isn't recognised anymore.
Furthermore, "Sorry, no new users possible".

Re: NWCCONVERTOR

Reply #173
Confirmed.
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.


Re: NWCCONVERTOR

Reply #175
Code: [Select · Download]
Traceback (most recent call last):
  File "nwc2xml.py", line 1717, in convert
  File "nwc2xml.py", line 1497, in create_xml
  File "nwc2xml.py", line 1461, in create_part
  File "nwc2xml.py", line 1285, in process_object_user
  File "nwc2xml.py", line 1228, in process_user_object_line_span
ValueError: invalid literal for int() with base 10: '12.5'

The culprit is:
Code: (nwc) [Select · Download]
|User|LineSpan.nw|Pos:-9|Class:Span|Span:12.5

N.B. After that, no way to go ahead with another file of whatever; olny exit and restart..

Re: NWCCONVERTOR

Reply #176
There is more.
I clicked "Select NWC txt file", loaded my file, selected the options, got "Conversion completed", clicked "Save as" and the only option is to save it... as .nwctxt!  :))

Re: NWCCONVERTOR

Reply #177
There is more.
I clicked "Select NWC txt file", loaded my file, selected the options, got "Conversion completed", clicked "Save as" and the only option is to save it... as .nwctxt!  :))
This is correct.  The compressed NWC file format is proprietary, which is a big part of why .nwctxt exists in the first place...  Or so I understand.
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #178
Lawrie, you missed the point.
I started with a .nwctxt file and, after the conversion,  my only option is to save it as  .nwctxt!   :o
I think I'm able to code myself such a converter.  :))
I need a file .musicxml or .mxl.

Re: NWCCONVERTOR

Reply #179
This is correct.  The compressed NWC file format is proprietary, which is a big part of why .nwctxt exists in the first place...  Or so I understand.
This was originally true; the native NWC format used to be a proprietary binary format, but at some point, the program changed to use gzip compression of the .nwctxt representation of the score, which came out to the approximate same size as the old native binary format. I don't know if there is official documentation on the format, but I think it would be theoretically possible to create compressed NWC files in a converter.

This does not answer Flurmy's concern over only being able to convert .nwctxt file to .nwctxt, but I thought I would respond with the historical information.

Re: NWCCONVERTOR

Reply #180
Lawrie, you missed the point.
I started with a .nwctxt file and, after the conversion,  my only option is to save it as  .nwctxt!   :o
I think I'm able to code myself such a converter.  :))
I need a file .musicxml or .mxl.
Sorry mate, I missed that little subtlety...
NWCCONVERTOR should do the conversion to MusicXML for you though - I've used it for exactly that in the past...

OK, just did some testing with Versions 2.0.05.04, 2.0.05.03 and 2.0.05.01
None allowed me to select "save as type" other than .nwctxt, BUT the offered filename ended in .musicxml and saved as such.

However, when I tried to open the saved musicxml test files the ones from the two more recent versions would NOT import into Musescore while the older one did just fine.  Something is broken...
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #181
None allowed me to select "save as type" other than .nwctxt, BUT the offered filename ended in .musicxml and saved as such.

However, when I tried to open the saved musicxml test files the ones from the two more recent versions would NOT import into Musescore while the older one did just fine.  Something is broken...
You made me wonder, so I investigated.
Well, in my case the file ended in "-nwctxt.musicxml.nwctxt" (maybe a bit verbose?  :) )
I peeked inside and it's a .musicxml.
And, in my case, once renamed, it opened perfectly in musescore.

N.B. Long long ago I had to explain to my daughter that "converting" from .doc to .txt, or from .jpg to .png is not simply a matter of changing the extension.  ;)

Re: NWCCONVERTOR

Reply #182
I don't know if there is official documentation on the format, but I think it would be theoretically possible to create compressed NWC files in a converter.
I see no point in reinventing the wheel.
Do you want such a converter? Here it comes:
Code: [Select · Download]
nwc2.exe -convert "%~dpn1.nwctxt" "%~dpn1.nwc"
Save it in a file and use the .bat extension.  ;)

For historical information, once upon a time there was a stand-alone file called "nwc-conv.exe" whose latest incarnation was version 2.5. Then it has been obsoleted and replaced by a simple command line parameter (see above).

Re: NWCCONVERTOR

Reply #183
It's been a long time since I used this converter, and I tried it again today. And of course it would have to throw an error.

I am running version 2.0.05.04 under Windows 11. Following is the error log I got. I assume the boundary collapse messages are just warnings that I can ignore. I can remove those from the score before running the conversion if that makes a difference.


Object Boundary Collapse in staff Vocal not converted.
part: P1, voice: 1, measure: 1.
------------------
Object Boundary EndCollapse in staff Vocal not converted.
part: P1, voice: 1, measure: 4.
------------------
===================================
Conversion ended with error!
===================================
Traceback (most recent call last):
  File "nwc2xml.py", line 1717, in convert
  File "nwc2xml.py", line 1497, in create_xml
  File "nwc2xml.py", line 1461, in create_part
  File "nwc2xml.py", line 1117, in process_object_ending
  File "nwc2xml.py", line 1092, in create_ending
AttributeError: 'NoneType' object has no attribute 'split'

Re: NWCCONVERTOR

Reply #184
The only version I have that is currently working at all for me is:
2.0.05.01 - NB I haven't exhaustively tested this one so it may also throw similar errors with the right file.

The later ones either create unusable MusicXML files or else throw a bunch of errors like the ones you've listed.

I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

 

Re: NWCCONVERTOR

Reply #185
The only version I have that is currently working at all for me is:
2.0.05.01 - NB I haven't exhaustively tested this one so it may also throw similar errors with the right file.

The later ones either create unusable MusicXML files or else throw a bunch of errors like the ones you've listed.
I was able to get the score to convert without errors by stripping out a few things. Specifically, I removed the segno and coda markings, since I was pretty sure they wouldn't have worked the same in the MusicXML file.

Re: NWCCONVERTOR

Reply #186
I was able to get the score to convert without errors by stripping out a few things. Specifically, I removed the segno and coda markings, since I was pretty sure they wouldn't have worked the same in the MusicXML file.
This is not really viable for me, some of my scores have over 50 staves...
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #187
I was able to get the score to convert without errors by stripping out a few things. Specifically, I removed the segno and coda markings, since I was pretty sure they wouldn't have worked the same in the MusicXML file.
This is not really viable for me, some of my scores have over 50 staves...
I'm in contact with Opagust, and have sent him the original score which generated the error. I'm certain he'll post an updated version shortly.

Re: NWCCONVERTOR

Reply #188
I'm in contact with Opagust, and have sent him the original score which generated the error. I'm certain he'll post an updated version shortly.

Indeed I will, but at the moment I'm investigating how to correctly convert ToCoda and Coda. The Musicxml documentation is not very clear, aspecially concerning the sound tag.

Any musicxml 'specialist' in the forum who can sort this out?
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #189
Well, for sure I'm not a musicxml specialist, but I'd look at how musescore manages the flow.
It seems it has no problem with them.

Re: NWCCONVERTOR

Reply #190
Well, for sure I'm not a musicxml specialist, but I'd look at how musescore manages the flow.
It seems it has no problem with them.
Do you have a musescore file with tocoda and coda? Then exporting it as musicxml will show it. (I don't know how to edit a musescore file :-[ , otherwise I could figure it out myself).
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #191
Here it comes.
Since you're at it, take care at where the "repeat" bars appear.

Re: NWCCONVERTOR

Reply #192
Boy, the segnos and coda symbols in Musescore are TINY  :o
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #193
Here it comes.
Since you're at it, take care at where the "repeat" bars appear.
Hi Flurmy,
In the Musescore file the DS al coda, to coda and coda don't work.
I'd like to have an working example.
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #194
I'd like to have an working example.

I managed to create it myself, but when I exported it to MusicXml and re-imported that file into Musescore, the flow was ignoring the coda's again.

So: if Musescore can't create a correct a correct coda-working musicxml file, why should I bother?
Always look on the bright side of life!



Re: NWCCONVERTOR

Reply #197
Version 2.0.05.05 available in https://www.opagust.be/content/nwcconvertor
    - dealing with fractional values in the LineSpan user object
    - correcting extension filter when saving
Always look on the bright side of life!

Re: NWCCONVERTOR

Reply #198
Hey Gust,
thanks for the quick response.  I tried this quick test file and Musescore didn't like it at all, it threw 39 errors, though NWCConvertor seemed happy.

The source .nwctxt file is just the first one that I found on my system when I went looking for a test file.
The MusicXML file is the output from V 2.0.05.05 (NB I had to ad .txt to the filename to get it to upload - you will need to remove this for Musescore to recognise it)

I concede this may be an unfair test...
I plays 'Bones, crumpets, coronets, floosgals, youfonymums 'n tubies.

Re: NWCCONVERTOR

Reply #199
Hi Lawrie,

The problem is in the author and copyright fields in  the File info of your nwctxt file, which contain "<Name>" and "<Year>".
The '<' and '>' characters are interpreted as tag delimiters in a musicxml file. Their presence in text fields makes the file invalid.



Always look on the bright side of life!