NoteWorthy Composer Forum

Forums => Tips & Tricks => User Tools => Topic started by: Opagust on 2022-02-07 08:19 am

Title: NWCCONVERTOR
Post by: Opagust on 2022-02-07 08:19 am
With this program you can convert NWC text files to Musicxml files and vice versa.
You can download it athttps://www.opagust.be/?q=content/nwcconvertor (https://www.opagust.be/?q=content/nwcconvertor)
In order to download the file, you'll have to be logged in.
You may use an account I created:
- username: 'NWC User'
- password: 'Usertools'
Or you can create your own account, so you can be informed of future updates.

INSTALLATION:
    Download and run the installation file. (REMARK: The name of the file after the download can (depending on the browser used) differ from the file name on the download page. If necessary you should add the extension.)
    During installation, the target folder is shown and can be modified.
    After installation, a shortcut 'NWCCONVERTOR' will be created on your desktop.

___________________

The first time tou run this program, you'll see the options window. When you click 'OK', your choices will be saved.

On the main window you see a row of action buttons, a loggings frame and a warnings frame.
In the loggings frame the stages of the processing are shown, the warnings frame is used for reporting situations
that demand your attention.
Depending on the progress of the processing, each button will be enabled or disabled.

Upon installation a shortcut icon was created on your desktop. You can drag and drop a file upon that icon,
or double click it and manually select the file to be converted via the button 'Select a file to convert'.

- The input file must be a either a NWC text file (extension '.nwctxt') or a musicxml file (extensions: '.musicxml',
  '.xml' or '.mxl'. Files with extension .mxl are compressed files; they will automatically be unpacked in a .xml file.
- A musicxml file is converted into a '.nwctxt' file.
- A nwc file is converted into a '.musicxml' or '.xml' file (according to the options).

The input file is analyzed and a setup window is displayed. The setup window consists of 2 tabs: a titlepage tab and
a staves/parts or part/staves tab. They differ according to the direction of the conversion.
Press the appropriate button on the right side to show detailed explanation.

After pressing 'CONVERT' on the setup window, the conversion process is started. Press the appropriate button to show
detailed information concerning the conversion for each direction.

When the conversion is completed, you can save or 'save as...' the output file. The file name is determined as follows:
 - the dot of the extension is turned into a dash:
 - the extension is added:
    ° '.nwctxt' for the Musicxml -> NWC conversion,
    ° the extension from the options for the NWC to Musicxml conversion.

Next you can directly open that file without leaving the program, via the button 'OPEN the converted file'.
The file will be opened within the program you specified in the options.

Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-02-07 08:30 am
Downloaded!  :D  - but I don't know when I'll try it or need it ... at the moment, unmusical things are in the way ...

H.M.
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2022-02-07 11:42 am
Got it.  No time tonight to explore, but I've downloaded it at least - thanks mate.
Title: Re: NWCCONVERTOR
Post by: William Ashworth on 2022-02-07 03:57 pm
Download worked fine (a bit slow), but Win10 just named it "download" - I had to rename it to the name you gave it. You might want to look into that. Haven't run the installer yet - I'll let you know if there are any issues when I get to it, but it's probably going to be much later in the day.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-07 07:33 pm
To begin with: thank you!  :)

Then, in case you want to process automatically also the .nwc files, you can ask NWC itself.
Quote
-convert: This option can be used to convert a file from one format to another.
Usage: nwc2.exe -convert "[input-file]" "[output-file]"

Both files are required on the command line and the file extension determines the conversion.
Supported conversions include:
.nwc    -> .nwctxt, .mid, or .info
.nwctxt -> .nwc, .mid, or .info
Conversions to .mid support a "-0" option for type 0 files.
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2022-02-07 11:31 pm
Download worked fine (a bit slow), but Win10 just named it "download" - I had to rename it to the name you gave it. You might want to look into that. Haven't run the installer yet - I'll let you know if there are any issues when I get to it, but it's probably going to be much later in the day.
Actually, this happened to me too...
Title: Re: NWCCONVERTOR
Post by: William Ashworth on 2022-02-08 03:44 am
Installation went OK (after assuring Windows that it wasn't going to destroy my hard drive or steal my identity). However, a simple .nwctxt file (a song for voice and guitar) generated multiple errors and refused to convert to musicxml after several tries. The error log is apparently uncapturable from the program; I'd be willing to send you a copy of the log if you release a new version with an option to save the log as a text file. In any event, this version of nwcconvertor will be deleted, and  I'll go back to  using http://nwc2musicxml.appspot.com/ (http://nwc2musicxml.appspot.com/). Too bad: if it worked, it would be a great addition to my tool set.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-08 07:33 am
Installation went OK (after assuring Windows that it wasn't going to destroy my hard drive or steal my identity). However, a simple .nwctxt file (a song for voice and guitar) generated multiple errors and refused to convert to musicxml after several tries. The error log is apparently uncapturable from the program; I'd be willing to send you a copy of the log if you release a new version with an option to save the log as a text file. In any event, this version of nwcconvertor will be deleted, and  I'll go back to  using http://nwc2musicxml.appspot.com/ (http://nwc2musicxml.appspot.com/). Too bad: if it worked, it would be a great addition to my tool set.
If a 'real' error occurs, a popup is shown and the program is aborted. So there is now way to save that log within the program. But then you can copy that popup within Windows.
In the program itself there is e logging frame that logs the actions that were performed, it isn't an error log. Next to it is the warning frame, that shows 'possible' errors or that things that couldn't be converted. You can always copy that via CTRL-A, CTRL-C.

But the simplest way to solve this is that you send me a copy of the input file. I have send you a personel message with my email adress.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-08 07:38 am
Download worked fine (a bit slow), but Win10 just named it "download" - I had to rename it to the name you gave it. You might want to look into that. Haven't run the installer yet - I'll let you know if there are any issues when I get to it, but it's probably going to be much later in the day.

I was already informed about this via a comment on my website. It has apparently to do with the way your browser handles the download. I found out that Google Chrome named it 'dowload'. Indeed you have to add the extension '.msi' to execute it.
In Firefox, you get a random name, but with the right extension, so you can execute it. I didn't try any other browsers.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-08 07:42 am
To begin with: thank you!  :)

Then, in case you want to process automatically also the .nwc files, you can ask NWC itself.
Thanks, Flurmy.

I'll have to find out how to invoke that within my Python program and receive a result. But a user can always open a nwc file in NWC and save it as a nwctxt file.
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-02-09 04:01 pm
Hmmm,   Downloaded andinstalled.

Clicked on NWCCONVERTER Icon.  Error message straight away. This was without trying to load any file, but just on clicking the icon.
Picture attached.
I tried downloading and installing a second time with the same result .

Fortunately, the install did not overwrite the older mxml2nwc program and so I have reverted to using that.
Incidentally, I too have always had the "download" naming problem both for this and the previous program and have always had to copy the name before clicking it to download and then renaming.

Richard


Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-09 08:05 pm
It looks a lot like the installer is searching some files... in the disk of Opagust!  :D  (absolute paths)

Incidentally, I too have always had the "download" naming problem both for this and the previous program and have always had to copy the name before clicking it to download and then renaming.
So do I, but since I'm using an old version of Firefox and XP it looked normal.  ;D
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-10 01:52 pm
The first update with bugfixes is available at https://www.opagust.be/?q=content/nwcconvertor (https://www.opagust.be/?q=content/nwcconvertor)

- 1.0.1: Bugfixes:
    - Interception FileNotFoundError when looking for register entries (bug reported by @Richard Woodroffe)
    - Recalculation of measure length for voice numbers > 1 (bug reported by @William Ashworth)
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-02-10 02:11 pm
Confirm update has solved my problem.  nwcconverter now loads OK (But not had time to test yet)

Richard
Title: Re: NWCCONVERTOR
Post by: William Ashworth on 2022-02-10 03:29 pm
Thanks, Opagust. I'll try to find time to test it later today.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-11 08:53 am
It looks a lot like the installer is searching some files... in the disk of Opagust!  :D  (absolute paths)

Well, it looks like but it's a bit more complicated (sofisticated?) than that. The installation file is created via the Python module cx_freeze (https://cx-freeze.readthedocs.io/en/latest/).
When you run the installation file, not only an executable is created from the source files, but also copies of the source files and their original file names. Not to search for them, but to create a popup window when a fatal error occurs, in which the author (me in this case) is informed which instructions lead to the error, with file name and line number. And that helps me a lot to quickly find the cause of the error.
But as a consequence, the user can see some absolute paths from my computer.
So, if you can hack my computer, you'll know where to look if you want to solve the error yourself.  ;D
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-12 10:26 am
I added this text on my website:
Quote
REMARK: The name of the file after the download can (depending on the browser used) differ from the file name on the download page. If necessary you should add the extension.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-16 09:23 am
Version 1.0.2 is available at https://www.opagust.be/?q=content/nwcconvertor.

- 1.0.2: Bugfixes:
    - Clef, time and key were duplicated in further staves.
    - Correction test for inserting invisible rests.
    - Handling of quotes in text fields.
    - Interception of missing 'volume' in midi-instrument-tag.
    - Correction of processing last bar line of a staff.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-16 09:04 pm
Very slow download, indeed.
What's up, doc?
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-16 10:00 pm
Very slow download, indeed.
What's up, doc?
It's 38.6 Mb.
What do you mean by 'slow'?

I can't get out of my sofa before the download has ended.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-16 10:14 pm
23'12"...
And I tried three times in different moments.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-16 10:17 pm
8"
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2022-02-17 12:09 am
FYI I just tried a test download and got 8" too, 'n I'm in Oz

Maybe @Flurmy has some comms issues between where is and where Opagust's hosting service is.

Title: Re: NWCCONVERTOR
Post by: Mike Shawaluk on 2022-02-17 11:40 am
I'm confused here by the time notation. Is Flurmy saying 23 minutes and 12 seconds, or 23 hours and 12 minutes? And are the rest of you saying 8 minutes or 8 seconds?

I generally would use : notation, but I realize that can be ambiguous also, unless you specify all 3 numbers.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-17 11:48 am
8 seconds.
Title: Re: NWCCONVERTOR
Post by: Mike Shawaluk on 2022-02-17 11:49 am
A separate reply about the download. A number of people (including myself) have observed/complained that when they download the file, it gets the filename "download" rather than the intended name. The URL in the download link is:

https://www.opagust.be/?q=system/files/NWCCONVERTOR-1.0.2-amd64.msi

However, I think that if you change the URL to:

https://www.opagust.be/system/files/NWCCONVERTOR-1.0.2-amd64.msi

Then the file will be saved with the original name (although Windows might warn you that it's not a frequently downloaded file, and make you choose "Keep anyway")

Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-17 01:35 pm
A separate reply about the download. A number of people (including myself) have observed/complained that when they download the file, it gets the filename "download" rather than the intended name. The URL in the download link is:

https://www.opagust.be/?q=system/files/NWCCONVERTOR-1.0.2-amd64.msi

However, I think that if you change the URL to:

https://www.opagust.be/system/files/NWCCONVERTOR-1.0.2-amd64.msi

Then the file will be saved with the original name (although Windows might warn you that it's not a frequently downloaded file, and make you choose "Keep anyway")
Thanks, Mike

The download link is automatically generated by the website CMS(Drupal), when I upload a file.
I see two solutions:
1) I hide the original field where I download the file and add a field with the modified URL. Unfortunately, I can't modify the structure of exsting download pages. So I'l have to create a new sctucture and copy the existing pages.
OR:
2) Mention the changed URL in the forum topic

For now I go for the second solution.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-17 07:41 pm
I'm confused here by the time notation. Is Flurmy saying 23 minutes and 12 seconds, or 23 hours and 12 minutes? And are the rest of you saying 8 minutes or 8 seconds?
I generally would use : notation, but I realize that can be ambiguous also, unless you specify all 3 numbers.
It's ambiguous if you use the : notation with just two items.

In Italian we have "minuti primi" (from the Latin "pars minuta prima", meaning "first small part") e "minuti secondi" (Latin: "pars minuta secunda",  "second small part"). This is where the names "minuto" and "secondo" comes from.
So the "minuti primi" are indicated with <'>, and "minuti secondi" with <">.
Hence 23'12" means 23 primi and 12 secondi.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-02-17 08:19 pm
Tonight is much better: something less than a minute.
Title: Re: NWCCONVERTOR
Post by: Cyber_Hymnal on 2022-02-18 01:56 am
I'm beginning to despair that NWC will ever have the ability to import and export MusicXML files like most modern notation programs. Sigh...
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-02-19 09:44 am
Tried it (needed a MusicXML for a colleague with another program).

1. A bug? In the resulting MusicXML, when opened with Musescore, the barlines of 1st and 2nd stave are connected; but not in the NWCTXT. Also a test conversion with https://nwc2musicxml.appspot.com/ does not connect them.

2. Eighths are not beamed in NWCTXT, but are beamed in the result (also with https://nwc2musicxml.appspot.com/). Would it be possible to suppress auto-beaming in Musescore via some info in the MusicXML?

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-19 03:01 pm
Tried it (needed a MusicXML for a colleague with another program).

1. A bug? In the resulting MusicXML, when opened with Musescore, the barlines of 1st and 2nd stave are connected; but not in the NWCTXT. Also a test conversion with https://nwc2musicxml.appspot.com/ does not connect them.

2. Eighths are not beamed in NWCTXT, but are beamed in the result (also with https://nwc2musicxml.appspot.com/). Would it be possible to suppress auto-beaming in Musescore via some info in the MusicXML?

H.M.
About 1.:  Apparently Musescore connects barlines for staves with orchestral brackets. In nwcconvertor I set group-barline to 'yes' if the bars are to be connected, but do nothing for non connected bars. So in the next version I will always create a group-barline tag, with either "yes" or "no" as value. (Remark: appspot seems to ignore the orchestral brackets).

About 2.: I can't find anything in the musicxml documentation about suppressing automatic beams. I don't know if this can be disabled in Musescore.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-19 08:30 pm
A separate reply about the download. A number of people (including myself) have observed/complained that when they download the file, it gets the filename "download" rather than the intended name. The URL in the download link is:

https://www.opagust.be/?q=system/files/NWCCONVERTOR-1.0.2-amd64.msi

However, I think that if you change the URL to:

https://www.opagust.be/system/files/NWCCONVERTOR-1.0.2-amd64.msi

Then the file will be saved with the original name (although Windows might warn you that it's not a frequently downloaded file, and make you choose "Keep anyway")

I managed to change the URL's for the downloads.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-21 09:17 am
WARNING:
Some bugs in the processing of the option window:
In the frames 'open output file with':
- you can choose a value via one of the combo boxes, but that has no effect;
- the regions left of the 'Browse' button is editable; this can cause a fatal error if it's changed to an invalid file name.

SO: changing via the 'Browse' button is the only valid and working way.

This will be fixed in the next version.
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-02-21 10:04 am
About 2.: I can't find anything in the musicxml documentation about suppressing automatic beams. I don't know if this can be disabled in Musescore.
According to this (https://musescore.org/en/node/299976) and this (https://musescore.org/en/node/298438), it seems that (always?!) adding <supports element="beam" type="yes"/> could do the trick.

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-21 10:39 am
According to this (https://musescore.org/en/node/299976) and this (https://musescore.org/en/node/298438), it seems that (always?!) adding <supports element="beam" type="yes"/> could do the trick.

H.M.

Thanks, Heinrich!
Indeed that does the trick.
It will be included in the next version (comming soon!)
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-02-22 08:05 pm
Version 1.03 is available in https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor).

    - Connection of bar lines: always create group-barline tag, with 'yes' or 'no' as value.
    - Correction in the processing of fields concerning 'open output with' in the option window.
    - Adding <supports element="beam" type="yes"/> in the musicxml file to suppress automatic beaming in Musescore.
    - Bug fix in processing after unchecking a part in the setup window of xml to nwc conversion;
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-03-03 09:51 am
In order to download the installation  file, you'll now have to be logged in.

You may use an account I created:
- username: 'NWC User'
- password: 'Usertools'

Or you can create your own account, so you can be informed of future updates.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-03-04 03:59 pm
Version 1.04 is available on athttps://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor).

    - Adding a checkbox 'Convert custom velocities for dynamics' in hte option window.
    - Converting user object 'BarLabel.ms' as text'.
    - When the nwc score has the option BarLabels set to 'All Systems', and a staff has no abbreviation set.
        the bar label will be used as abbreviation.
    - Dealing with (invisible) tab characters in lyrics.
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-03-16 09:18 am
There's a MusicXML of an orchestral arrangement of Bach's "Jesus bleibet meine Freude" at
https://s9.imslp.org/files/imglnks/usimg/7/7c/IMSLP538555-PMLP149942-Bach_-_Jesus_bleibet_NOR.mxl.
I tried to convert it - it didn't work ...
Could you take a look at the problem(s?)? That would help me, and be great!

Harald M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-03-20 04:46 pm
Version 1.0.5 is available on at https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor).

    - Correcting a typo (that caused an error for @HMM)
    - Adding code for processing time-modification/normal-type and normal-dots
    - Correcting processing of wedges in parts with different voices
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-03-30 04:54 pm
Bach worked! - but here is my next problem :( ... attached below as a ZIP. It says KeyError: ('P4', 2, '1') ...

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-03-31 08:21 pm
A new version (1.0.5.1) which corrected a bug (for staff where first voice number > '1'), is available inhttps://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

Remark:
After I installed a new Python version (the programming language), the package for creating a windows installer was depreciated. So I had to use another package, that creates an executable of nwcconvertor itself.
After unzipping the download file, you can directly run it (I hope, it did for me :) )
And if you want a desktop shortcut, you will have to create it yourself.
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-03-31 08:46 pm
Thank you! - works!

What is a little strange: In m.6, in the S./A. staff, there is a "hidden? eighth rest" - MuseScore shows it in light grey. This pause is not converted into the nwctxt file, so that from there on, all the bar lines are shifted by one eighth. Could such "grey"/"hidden?" rests also be converted?

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-03-31 09:53 pm
Thank you! - works!

What is a little strange: In m.6, in the S./A. staff, there is a "hidden? eighth rest" - MuseScore shows it in light grey. This pause is not converted into the nwctxt file, so that from there on, all the bar lines are shifted by one eighth. Could such "grey"/"hidden?" rests also be converted?

H.M.

Yes, I noticed it too.
In my program, invisible rests are created, when a part has more than 1 staff/voice and the summed duration of the notes/rests of a
following staff/voice < the duration in the first.
But in this case, it's a single staff/single voice part and in measure six, there's really missing a  8th duration, acccording to the time signature. See this snippet from the input file:
Code: [Select · Download]
    <measure number="6" width="185">
      <note default-x="17">
        <pitch>
          <step>B</step>
          <alter>-1</alter>
          <octave>4</octave>
        </pitch>
        <duration>12</duration>
        <voice>1</voice>
        <type>quarter</type>
        <dot/>
        <stem default-y="-55.5">down</stem>
        <lyric default-y="-84" number="1">
          <syllabic>single</syllabic>
          <text>hills,</text>
        </lyric>
      </note>
      <direction>
        <direction-type>
          <wedge spread="12" type="stop"/>
        </direction-type>
      </direction>
      <note default-x="85">
        <rest/>
        <duration>8</duration>
        <voice>1</voice>
        <type>quarter</type>
      </note>
    </measure>

So in that case, my program shows a red warning, as it does also when the duration should be > the time signature.
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2022-04-01 06:48 am
Ah - and the "grey" rest I see in MuseScore is added by that program, when it sees that a measure is not "full length" (because it is one of those typical "rigid measure-length" programs). Understood. Ok - then it is what it is. Thx.

H.M.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-04-23 04:01 pm
Quote
Attribute value not quoted in 'measure number = "1"'
What's wrong?

Then the only option is "exit", and when I click "exit" it's kidding me asking "You didn't convert the input file, do you really want to exit?".  :)
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-04-24 05:57 pm
Attribute value not quoted in 'measure number = "1"'
What's wrong?

The error message is misleading: the attribute value is within quotes, but there's a space before the first quote, what caused the error.
In the syntax rules for xml I can't find that spaces round the equal sign are forbidden, so I have to change my program to admit that.
This change will be included in the next version (coming soon, in the mean while you can edit your input file, changing all ' = ' into '=').

Quote
Then the only option is "exit", and when I click "exit" it's kidding me asking "You didn't convert the input file, do you really want to exit?".  :)

I'll also skip that question after an error (no kidding!)
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-04-24 06:38 pm
Thank you a lot!
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-04-25 07:56 am
Version 1.0.6 is available at https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor).
- 1.0.6:
    - admitting comment line(s) before DOCTYPE line.
    - admitting spaces around the = sign for an attribute
    - modifications to deal with multiple files in a compressed mxl file

Remark: When you process a compressed mxl file with multiple musicxml files, a popup window will appear with the names of these  files. All of them will be extracted and saved, but only the first (the 'rootfile') will be converted. You'll have to restart the program several times to convert the other extracted files.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-04-27 08:32 am
And already a new version 1.0.6.1 at https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor).

    - coping with missing time signatures
    - fill completely empty measures with measure rest
    - processing lyrics for voice numbers > '1'

Thanks to Richard Woodroffe for reporting this problems.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-06-16 08:21 pm
Version 1.0.6.2 available at https://www.opagust.be/content/nwcconvertor:

Bug fix: the apply button in setup frame, parts/staves tab caused a fatal error
Title: Re: NWCCONVERTOR
Post by: Bart on 2022-08-18 06:43 pm
Many thanks, Opagust.

Yesterday I installed your tool to convert a nwctxt-file into musicxml and in Musescore it was almost identical.
I've sent the file also to a friend, because he wanted an musicxml formatted file to import in Dorico.
He told me that he had to make some changes, but at least he had it in Dorico.

Thanks to your tool we are able to distribute it to people that don't have NWC.  :)

Bart
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-08-18 07:38 pm
You made my day!
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-08-18 07:52 pm
Thanks to your tool we are able to distribute it to people that don't have NWC.  :)

But also convert xml files from other music programs and pdf scanners  into nwctxt.

I have to say that  Opagust's converter goes so much further than other converters that you may find around (one in particular that I used to use for a long time) because it really is tailored to nwc functions specifically the user objects.

I have also been greatly impressed by the way that improvements have been made following reports of something that was not quite right.

Thanks Opagust.



Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-08-18 09:15 pm

I have also been greatly impressed by the way that improvements have been made following reports of something that was not quite right.

Thanks Opagust.

And I'm grateful to you, Richard, for your reports that gave me the opportunity to improve this tool!
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-10 03:45 pm
Salve Opagust. Grazie per il tuo strumento. Vediamo se ho capito bene il suo uso.
Se ho una parte. .nwc e la voglio aprire con ad esempio Musescore, con questo tuo sistema posso farlo?
Prima dovevo esportare la parte in. .Mid e poi importarla con Musescore, perdendo gran parte delle legature, dinamiche e parole del canto.
Con il tuo sistema si può conservare tutto degli spartiti?
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-09-10 05:33 pm
Ciao Raffaele,
Rispondendo a nome di Opagust. Sì ! Questo è esattamente ciò che puoi fare. Se usi lo strumento di Opagust per caricare la versione nwctxt del tuo file nwc. Quindi devi controllare tutte le opzioni. Quando sei felice, fai clic sul pulsante di conversione e ti darà un file musicxml che può essere caricato in Musescore. La conversione ti darà un file aggiuntivo e quindi manterrai sempre il file nwctxt originale.

Spero che sia di aiuto.
(Ci scusiamo per Google Translate)

Rich.
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-10 06:39 pm
Ciao Raffaele,
Rispondendo a nome di Opagust. Sì ! Questo è esattamente ciò che puoi fare. Se usi lo strumento di Opagust per caricare la versione nwctxt del tuo file nwc. Quindi devi controllare tutte le opzioni. Quando sei felice, fai clic sul pulsante di conversione e ti darà un file musicxml che può essere caricato in Musescore. La conversione ti darà un file aggiuntivo e quindi manterrai sempre il file nwctxt originale.

Spero che sia di aiuto.
(Ci scusiamo per Google Translate)

Rich.

Nessun problema con Google translate.
Ho scaricato la versione 2 di Opagust ma ancora non ho capito cosa si deve fare. Ma sono a buon punto
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-09-10 07:54 pm
Raffaele,

Qui si spera è un passo dopo passo.
1. Salva il tuo file nwc come .nwctxt
2. Aprire Convertitore NWC
3. Fai clic su "Seleziona un file da convertire"
4. Nella casella che si apre, seleziona il tuo file .nwctxt
5. Fare clic sulle schede "Pagina del titolo" e "Parti del pentagramma"
  e cambia tutto ciò di cui hai bisogno.
6. Fare clic su OK
7. Fare clic su Converti
8. Al termine, prendere nota di dove è stato salvato il nuovo file. Avrà un nome che termina con .musicxml
9. Fare clic su Salva e prendere nota della posizione del file.
10. Apri Musescore
11. Apri file
12 Seleziona il file .musicxml da dove lo hai salvato in 9 sopra
13. Attendi il caricamento e, se necessario, salvalo in formato musescore.

Saluti

Richard
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-10 08:25 pm
Grazie Ricco,

Non avrei potuto spiegarlo meglio.

NonnoGust
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-09-10 08:53 pm
Retranslated: thanks, wealthty (i.e. rich)  :))
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2022-09-10 08:58 pm
Retranslated: thanks, wealthty (i.e. rich)  :))

Or even wealthy  !!  :D


Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-10 09:29 pm
Raffaele,

Qui si spera è un passo dopo passo.
1. Salva il tuo file nwc come .nwctxt
2. Aprire Convertitore NWC
3. Fai clic su "Seleziona un file da convertire"
4. Nella casella che si apre, seleziona il tuo file .nwctxt
5. Fare clic sulle schede "Pagina del titolo" e "Parti del pentagramma"
  e cambia tutto ciò di cui hai bisogno.
6. Fare clic su OK
7. Fare clic su Converti
8. Al termine, prendere nota di dove è stato salvato il nuovo file. Avrà un nome che termina con .musicxml
9. Fare clic su Salva e prendere nota della posizione del file.
10. Apri Musescore
11. Apri file
12 Seleziona il file .musicxml da dove lo hai salvato in 9 sopra
13. Attendi il caricamento e, se necessario, salvalo in formato musescore.

Saluti

Richard
Raffaele,

Qui si spera è un passo dopo passo.
1. Salva il tuo file nwc come .nwctxt
2. Aprire Convertitore NWC
3. Fai clic su "Seleziona un file da convertire"
4. Nella casella che si apre, seleziona il tuo file .nwctxt
5. Fare clic sulle schede "Pagina del titolo" e "Parti del pentagramma"
  e cambia tutto ciò di cui hai bisogno.
6. Fare clic su OK
7. Fare clic su Converti
8. Al termine, prendere nota di dove è stato salvato il nuovo file. Avrà un nome che termina con .musicxml
9. Fare clic su Salva e prendere nota della posizione del file.
10. Apri Musescore
11. Apri file
12 Seleziona il file .musicxml da dove lo hai salvato in 9 sopra
13. Attendi il caricamento e, se necessario, salvalo in formato musescore.

Saluti

Richard


Lunedì proverò senz'altro. Grazie
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-12 08:19 am
Traceback (most recent call last):
  File "nwcconvertor.py", line 673, in <module>
  File "nwcconvertor.py", line 605, in process_main_window
  File "nwcconvertor.py", line 449, in event_convert
  File "nwcconvertor.py", line 442, in convert
  File "nwc2xml.py", line 1903, in convert
  File "nwc2xml.py", line 1369, in create_xml
  File "nwc2xml.py", line 1338, in create_part
  File "<string>", line 1, in <module>
  File "nwc2xml.py", line 902, in process_object_dynamicvariance
  File "nwc2xml.py", line 910, in create_dynamic_tag
  File "<string>", line 1, in <module>
AttributeError: 'Staff' object has no attribute 'sfz'


Non mi va avanti. Non so cosa mi vuole dire il programma. Cosa devo correggere?
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-12 09:39 am
Traceback (most recent call last):
  File "nwcconvertor.py", line 673, in <module>
  File "nwcconvertor.py", line 605, in process_main_window
  File "nwcconvertor.py", line 449, in event_convert
  File "nwcconvertor.py", line 442, in convert
  File "nwc2xml.py", line 1903, in convert
  File "nwc2xml.py", line 1369, in create_xml
  File "nwc2xml.py", line 1338, in create_part
  File "<string>", line 1, in <module>
  File "nwc2xml.py", line 902, in process_object_dynamicvariance
  File "nwc2xml.py", line 910, in create_dynamic_tag
  File "<string>", line 1, in <module>
AttributeError: 'Staff' object has no attribute 'sfz'


Non mi va avanti. Non so cosa mi vuole dire il programma. Cosa devo correggere?
Non devi corregere nulla.
A quanto pare c'è un bug durante l'elaborazione di uno sforzando.
Esaminerò, migliorerò e installerò una nuova versione (forse oggi, altrimenti domani).
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-12 02:12 pm
Version 1.0.6.3 is available at https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

Bug fixed (Sforzando and Rinforzando caused a fatal error).
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-12 02:16 pm
La versione 1.0.6.3 è disponibile su https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

Bug risolto (Sforzando e Rinforzando hanno causato un errore fatale).
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-12 07:39 pm
Ma la versione migliorata si trova sempre nel tuo sito? Il file come si chiama?
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2022-09-12 08:16 pm
Certo che si trova sul suo sito, te l'ha anche scritto in italiano!
"La versione 1.0.6.3 è disponibile su https://www.opagust.be/content/nwcconvertor"
E il file si trova dove c'è scritto "Download: nwcconvertor-1.0.6.3.zip"
Però per poterlo scaricare occorre fare il login, che penso tu abbia già fatto almeno una volta dato che hai la versione precedente.
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-15 07:34 am
Allora. Non ci riesco proprio. Vi elenco i procedimenti.

1) ho scaricato il file zip della versione 1.06.3
2) Ho estratto l'unico file che ho trovato
3) Ho fatto partire il file exe
4) Mi ha portato ad una finestra dove mi chiede di inserire il file da convertire
5) Ho caricato il file con estenzione nwctxt
6) Mi si è aperta un'altra finestra dove ci sono scritti gli indirizi di output.
7) ho cliccato ok e mi ha segnato 3 errori  ma comunque la conversione non si è arrestata.
8) nella finestra precedente mi ha segnalato dove è il file musicwml
9) ho cercato questo file nella directory che mi ha segnalato ma non ho trovato niente.
Cosa sto sbagliando?
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-15 08:51 am
Ciao Raffaele,

Puoi aggiungere il file di input o, se non lo desideri, fare screenshot delle finestre?
Title: Re: NWCCONVERTOR
Post by: Raffaele Buscema on 2022-09-15 07:38 pm
Ciao Raffaele,

Puoi aggiungere il file di input o, se non lo desideri, fare screenshot delle finestre?

Non ci riesco. Lo screenshot supera 256kb perciò non lo carica.
In caso te lo mando per email
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-09-16 07:02 pm
A new version 1.0.6.4 is available in https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

A Tempo Variance before the first note caused a fatal error. (Reported by Raffaele Buscema)
Title: Re: NWCCONVERTOR
Post by: Opagust on 2022-12-01 09:04 am
A new version 1.0.6.6 is available in https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

It seems that I forgot to announce the previous version 1.0.6.5 on 20/09/2022.

20/09/2022: 1.0.6.5
- bug fix: the positions of the notes in a restchord are in the field 'Pos2', not in 'Pos'.
- removing '<Name>' from author and copyright1 fields in the file info, since this would be
interpreted as a musicxml tag.

1/12/2022: 1.0.6.6
- text with font 'StaffCueSymbols' caused a fatal error.
- crescendo and diminuendo ending in last note of a staff was not converted.
- error in stereopan conversion formula.
- characters '<' and '>' are represented by '&lt;' and '&gt;' in a musicxml file.
- undoing removing '<Name>' (from 1.0.6.5)
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-01-11 08:09 am
Version 1.0.6.7 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

It corrects some bugs reported by Richard Woodroffe.

    - converting '&quot;'
    - work-title was not converted
    - bug corrected concerning creating bars between measures.
Title: Re: NWCCONVERTOR
Post by: cvb on 2023-01-11 04:41 pm
Thanks for continuing to update this tool.
I've tried to log in to download, but am in a loop of "bad password, click here to reset" and then "you're trying a reset link that has expired."
I assume they don't really expire within a minute of issue - perhaps the 6 hour time difference from US to Belgium?
I didn't want to post this here, but I can't find a contact option on your site.

btw - my user name there is Charlie
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-01-11 10:02 pm
Thanks for continuing to update this tool.
I've tried to log in to download, but am in a loop of "bad password, click here to reset" and then "you're trying a reset link that has expired."
I assume they don't really expire within a minute of issue - perhaps the 6 hour time difference from US to Belgium?
I didn't want to post this here, but I can't find a contact option on your site.

btw - my user name there is Charlie

Hi Charlie,

I notice a user account for 'Charlie' and one for 'cvb', both with different email addresses.
I will sent a mail to these addresses.
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2023-03-16 04:35 am
Version 1.0.6.7 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
<snip>
Hey Gust,
I downloaded this a couple of days ago and it seemed to work fine except the recipient of the MusicXML file had playback problems because of transposing instrument parts being played as if written in concert pitch...

I resaved the nwctxt without transposed parts and went to convert again and my AV software is complaining that it's infected with something called "FileRepMalware[Trj]". 
So I downloaded a new copy and got the same error.
I'm guessing I had an AV (Avast) update between the first and second uses AND that it's probably a false positive but are you able to check it out?
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-03-16 07:58 am
Hi Lawrie,

I just downloaded the latest version myself and let it scan by my antivirus software Mcafee. No virus found.

As for the transposing problem, if you send me the input file, I could investigate it. I'll send you a personal message with my email address.

Gust
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2023-03-16 10:28 am
Thanks Gust,
hopefully the next update to Avast will fix the false positive.

Input file sent.  Forgot to mention, the user I sent the musicxml file to imported it to Sibelius.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2023-03-20 09:01 pm
A small request: allowing the drag & drop of the nwctxt file?
I'm hard to please.  :)
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-03-21 06:19 pm
Version 1.0.6.8 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

    - bug fix in xml to nwctxt conversion: 64th notes converted as quarter notes.
    - checking for missing Time Signature.
    - bug fix concerning transpose instrument.

A small request: allowing the drag & drop of the nwctxt file?
I'm hard to please.  :)

Sorry, Flurmy, that's to hard for me to please you. The Gui application I use  (PySimpleGui) doesn't support it. You will still have to use click & click.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2023-03-21 08:07 pm
Sorry, Flurmy, that's to hard for me to please you. The Gui application I use  (PySimpleGui) doesn't support it. You will still have to use click & click.
I'll try to survive...  ;)
Thanks anyway.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2023-03-21 08:18 pm
Version 1.0.6.8 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
Sorry, it doesn't seem so,
Title: Re: NWCCONVERTOR
Post by: Lawrie Pardy on 2023-03-21 11:44 pm
Hi Gust,
I can't see it either...

Version 1.0.6.8 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
Sorry, it doesn't seem so,
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-03-22 07:33 am
OOPS!
I forgot to click the 'Save' button.
Now I did.
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
Title: Re: NWCCONVERTOR
Post by: Richard Woodroffe on 2023-03-22 07:40 am

Confirmed - now downloaded
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-03-22 10:30 am
A small request: allowing the drag & drop of the nwctxt file?
I'm hard to please.  :)
I found out that it's possible just by using Windows:
- Open the folder of your nwctxt file in Windows Explorer
- Open in another Window Explorer window the folder where you stored nwcconvertor.
- Drag and drop the file onto the nwcconvertor program name or icon (depending on your Explorer setttings).
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2023-04-12 03:47 pm
Opagust,
I'm not sure the problem is all in your convertor, but I get various errors converting the attached file.
It was generated by MuseScore and, I know, there are some odd notes (MIDI value around 100) in channel 10.
In case you're interested to investigate...
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-04-12 10:04 pm
Opagust,
I'm not sure the problem is all in your convertor, but I get various errors converting the attached file.
It was generated by MuseScore and, I know, there are some odd notes (MIDI value around 100) in channel 10.
In case you're interested to investigate...

Hi Flurmy,

The 'Batteria' staff of the input file contains, in a number of measures,  chords of 2 notes  with same position and same duration (but with different instruments), see example in code snippet below. This is impossible in NWC: each element in a chord must have different position or different duration. So the Warnings frame shows a 'InvalidChordError' in these cases. But this is no 'fatal error', nwcconvertor just removes the double position. (And in this case with 2 instrument change objects, but of course the second overrules the first one.

So, because it's not a fatal error, you can click 'SAVE' and get a valid nwctxt file.
Maybe I should not call it 'error' in the warnings frame (and print it in black instead of red)?

But then there were two other things I noticed in the output file:
1) The bars in the piano staves didn't line up correctly after measure 45. The reason was the presence of rests and notes with a duration of a 128th (see 2nd code snippet), which is not possible for NWC (nor for many pianists I guess). NWC removes the duration part in the nwctxt line, which results in a quarter note or rest.
2) The calculation of the positions for a percussion clef was wrong (12 positions to high).

Code: [Select · Download]
      <note dynamics="92.22">
        <unpitched>
          <display-step>F</display-step>
          <display-octave>5</display-octave>
          </unpitched>
        <duration>48</duration>
        <instrument id="P5-I25"/>
        <voice>1</voice>
        <type>eighth</type>
        <stem>up</stem>
        <beam number="1">begin</beam>
        </note>
      <note dynamics="64.44">
        <chord/>
        <unpitched>
          <display-step>F</display-step>
          <display-octave>5</display-octave>
          </unpitched>
        <duration>48</duration>
        <instrument id="P5-I70"/>
        <voice>1</voice>
        <type>eighth</type>
        <stem>up</stem>
        </note>

Code: [Select · Download]
      <note>
        <rest/>
        <duration>3</duration>
        <voice>5</voice>
        <type>128th</type>
        <staff>2</staff>
        </note>
      <note dynamics="84.44">
        <pitch>
          <step>B</step>
          <octave>3</octave>
          </pitch>
        <duration>3</duration>
        <tie type="start"/>
        <voice>5</voice>
        <type>128th</type>
        <stem>up</stem>
        <staff>2</staff>
        <beam number="1">begin</beam>
        <beam number="2">begin</beam>
        <beam number="3">forward hook</beam>
        <beam number="4">forward hook</beam>
        <beam number="5">forward hook</beam>
        <notations>
          <tied type="start"/>
          </notations>
        </note>

Conclusion:
I will soon publish a new version with:
- corrected positions for the percussion clef
- text 'InvalidChordError' replaced by 'Chord with duplicate positions ans same duration'
- warnings printed in black instead of red.
- print a warning in case of a 128th duration.
Title: Re: NWCCONVERTOR
Post by: Flurmy on 2023-04-13 07:38 pm
Thank you for the detailed report and the modifications, Opagust!

Re. the 1/128 (i.e., the "fusa"), it's not an impossible time for a slow song. Beethoven and Mozart used it.
In NWC it has been surreptitiously allowed via the arpeggio and acciaccatura plugins.
The semifusa (1/256)... I never saw it!  :D
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-04-14 01:30 pm
Version 1.0.6.9 is available at
https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

    - bug fix concerning multirest.
    - bug fix concerning assigning part-group symbol to staff.
    - corrected calculation of note position for percussion clef.
    - changing text color for warnings from red to black.
    - changing text for warning 'InvalidChord Error' into 'Chord with same duration and position.
    - adding warning for note lengths not supported by NWC.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-05-02 08:38 am
Version 1.0.7 is available on https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)

    - refactoring code for improving maintainability (no functional changes)
    - bug fixes: RepeatOpen, Endings en Flow objects missing in layered staves.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-08-04 09:02 am
Version 1.0.7.1 is available at  https://www.opagust.be/content/nwcconvertor
(https://www.opagust.be/content/nwcconvertor)
Following issues, reported by Bart are solved:
- converting float to integer values for staff Channel Volume
- bug fix: accidentals of a chord weren't always attached to the right note
Title: Re: NWCCONVERTOR
Post by: lawrroc on 2023-08-04 11:27 am
Fatto. Grazie!
Lorenzo
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-08-07 08:59 am
And again a new version, after bug report from Lawrie Pardie.
1.0.7.2:
- ignoring group symbols that are not supported in Noteworthy ('square' and 'line'), instead of crashing.
- bug fix for ending and starting orchestral bracket and grand staff brace.

see https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-09-08 11:19 am
2 wishes:

a) NWCCONVERTOR creates files that make Musescore4.1.1 crash because of this problem: https://github.com/musescore/MuseScore/issues/19322
Although they will change MuseScore to survive that, maybe you could change the converter so that it creates the necessary "stop" element.

b) And would it be possible that invisible notes are not emitted into the MusicXML file? I use especially invisible cue notes for some purposes which should not be visible anywhere - but MusicXML files transport them as normal visible notes, and then they turn up in e.g. MuseScore.
This could of course also be a checkbox in the "Options", e.g. "Ignore invisible notes".

Thank you for this tool - it's always very helpful!
H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-09-08 02:14 pm
Hi HMM,

Can you send me a nwctxt file that creates a file that causes this error in Musiscore 4.1.1. ?
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-09-08 06:23 pm
Hi HMM,

Can you send me a nwctxt file that creates a file that causes this error in Musiscore 4.1.1. ?
Of course! Attached.

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-09-08 08:42 pm
b) And would it be possible that invisible notes are not emitted into the MusicXML file? I use especially invisible cue notes for some purposes which should not be visible anywhere - but MusicXML files transport them as normal visible notes, and then they turn up in e.g. MuseScore.
This could of course also be a checkbox in the "Options", e.g. "Ignore invisible notes".

If invisible notes are ingnored, should they be replaced by rests?
An example file with such invisible cue notes should also be helpful.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-09-11 09:40 am
Hi HM,

If invisible notes are ingnored, should they be replaced by rests?
An example file with such invisible cue notes should also be helpful.

I noticed you used them in the previous files you provided.
Aside of being invisible, they're also grace notes and muted.
So maybe I should add a checkbox 'Convert invisible muted grace notes' in the 'Options' (default unticked)?
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-09-11 09:55 am
... a checkbox 'Convert invisible muted grace notes' in the 'Options' (default unticked)?
That would be perfect for me :)

H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-09-12 08:58 am
New version 1.0.7.3:
    - for "wavy line" with span = 1 : creating a "type=stop" element immediately after the "type=start" element.
    - new checkbox in 'OPTIONS': 'convert invisible muted grace notes', default unticked.

see https://www.opagust.be/content/nwcconvertor (https://www.opagust.be/content/nwcconvertor)
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-11-19 09:01 pm
Very good tool - but the first dialog opens at weird places. Now, after having converted 5 or 6 files, it opens almost fully outside my screen - see attachment. So I cannot click on it, and the standard keyboard bindings seem not to apply (Y or J for yes; N for no; Enter for the standard button) - game over  :D

Edit: Ah, could open it by reducing screen enlargement from 125% to 100% - see second attachment. However, one can see that the window is ridiculously large. I have attached the nwctxt input file producing this.

Edit 2: 26 staves - a large wind band - seem to be listed from left to right - see one more attachment ...

H.M.
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-11-19 09:11 pm
... also, here is an nwctxt file which after conversion crashes MuseScore 4.1.1. Maybe you can figure out the problem?

Thx!
H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2023-11-20 09:00 am
Hi Harold,

I just took a quick look and here are my first findings:
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2023-11-20 11:50 am
Thank you!

- First item  :)) .
- Second, I had not installed MS3 on my new laptop - did it, it worked (well enough), thank you for trying and telling me!
- Third, I do not need correct playback - it's just that a certain website requires a MusicXML to be added, so I needed one. For actual listening, I have a youtube link (https://www.youtube.com/watch?v=hi-kFR04tB8) to a playback with NWC Viewer (and Reaper + some soundfonts for the actual sound).

H.M.
Title: Re: NWCCONVERTOR 1.0.7.2
Post by: hmmueller on 2024-01-12 07:26 am
Trouble with a score ... this one says with ERROR. I do have a time signature in "P2, voice 1" as far as I can see. What's wrong?

(In case you ask about that spacer-filled staff: It is for somewhat more smooth playing in the Viewer, like so (https://youtu.be/OM2hWcq3zN0)).

Thank you!
H.M.
Title: Re: NWCCONVERTOR 1.0.7.2
Post by: Opagust on 2024-01-13 11:00 am
I do have a time signature in "P2, voice 1" as far as I can see. What's wrong?

You have a (grace, invisible, muted) chords and rests before the time signature.
Code: [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:1
|Chord|Dur:Half,Grace|Pos:-6,6|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Never
|Rest|Dur:Half,Grace|Visibility:Never
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:7
|Chord|Dur:Half,Grace|Pos:-5,4|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Always
|Rest|Dur:Half,Grace|Visibility:Always
|User|RangePitchMarker.hmm|Pos:7|Class:Span|Color:2|Visibility:Always
|Chord|Dur:Half,Grace|Pos:-2,1|Opts:Stem=Down,Lyric=Never,Muted|Visibility:Always
|Bar|Visibility:Always
|Boundary|Style:Reset|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageTitleText|PgCtrl:Once|XLoc:Center|PgStyle:Title|YLoc:Top|Text:%Title%|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageText|PgCtrl:Once|PgStyle:Author|Text:%Author%|YLoc:Top|CY:10|XLoc:Right|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageText|YLoc:Top|CY:4|PgStyle:Lyricist|XLoc:Left|Text:%Lyricist%|Visibility:TopStaff
|User|PageTxt.nw|Pos:0|Fnt:PageSmallText|YLoc:Bottom|CY:-6|PgStyle:Copyright|XLoc:Center|Text:%Copyright1%%br%%Copyright2%|Visibility:TopStaff
|User|Acciaccatura.ms|Pos:0|Class:StaffSig
|User|CueHeads.ms|Pos:1|Class:StaffSig|Size:70
|User|Melismatic.nw|Pos:0|Class:StaffSig
|Key|Signature:F#|Tonic:G
|TimeSig|Signature:2/4
!NoteWorthyComposerClip-End

My convertor doesn't seem to like that.

Title: Re: NWCCONVERTOR
Post by: hmmueller on 2024-01-13 07:30 pm
Mhm. Seems I need to change my templates - these are RangePitchMarkers (https://forum.noteworthycomposer.com/?topic=9790.0) I use now at many places ... or I delete them manually (using GroupOps (https://forum.noteworthycomposer.com/?topic=10347.0)) to create specific "convertor nwctxt files"; that's probably what I'll do.

Thanks!
H.M.
Title: Re: NWCCONVERTOR
Post by: Opagust on 2024-01-13 09:02 pm
Mhm. Seems I need to change my templates - these are RangePitchMarkers (https://forum.noteworthycomposer.com/?topic=9790.0) I use now at many places ... or I delete them manually (using GroupOps (https://forum.noteworthycomposer.com/?topic=10347.0)) to create specific "convertor nwctxt files"; that's probably what I'll do.

Thanks!
H.M.
Or you may move the time signature before the RangePitchMarkers?
Title: Re: NWCCONVERTOR
Post by: hmmueller on 2024-01-14 10:42 am
Or you may move the time signature before the RangePitchMarkers?
I hesitate to do this, for two reasons ...

a) I have all the "fixed things" on the left (which includes the RangePitchMarkers), and then start with the piece (which includes the time sig).
b) The key signature goes before the time signature, so the key signature would be before the RangePitchMarkers, and then those would need full accidentals ... which, thinking about it, wouldn't be too bad anyway ...

... those staff headers anyway got too chaotic, so I might want to clean them up; and then see whether the (or - aha! - some (maybe invisible)!) time signature could go before them. More "clerical work" to do, instead of writing music ;-)

Thanks!
H.M.