Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - Flurmy

1
User Tools / Re: Percussion splitter
Since I don't want to roll back my NWC installation and I'm almost sure I forgot to change some items :P , yukulele, could you please try this (beta) version? Thanks.

[edit: tool version officially released and attached to the first message]
3
User Tools / Re: Percussion splitter
Quote
In the new beta, the |Text:*| property and User object properties are now stored as strings (replaces the nwcOptText object).

In the current general release, text properties use a nwcOptText class for storage. This is a heavy operation that requires an additional allocated table just to store the encoded string.
In this same release, user object properties are all stored as raw, encoded strings. This creates a complicated approach to handling the text properties.

In the new beta, all of these text properties are maintained as simple decoded strings. All simple strings are passed through an encoding filter before writing them back into a nwctxt file stream, which strives to make scripting changes to these properties much simpler.
It does create an issue for current tools.

As it currently stands, changes will be required in tool code when accessing these text properties. Perhaps the easiest way to handle this is by two utility functions:
Code: [Select · Download]
local function GetTextProp(item,lbl)
  local t = item.Opts[lbl]
  return (t and t.Text) and t.Text or t
end
Code: [Select · Download]
local function SetTextProp(item,lbl,txt)
  item:Provide(lbl,'')

  if item.Opts[lbl].Text then
    item.Opts[lbl].Text = txt
  else
    item.Opts[lbl] = txt
  end
end
5
User Tools / Re: Percussion splitter
A-ha!
I seem to remember (quite surprising for me!  ;D ) that a small change about this was made in the lua libraries in NWC 2.8 Beta 1 (the one I'm using).
Which version of NWC are you using?
7
User Tools / Re: Percussion splitter
But I don't know why the behaviour is different on my side.
So do I.

But:
  • In your snippet the staff name is "perc", in your dump is "perc." but, even after changing it, I found no difference in the result.
  • Using your dump routine I get:
    Code: [Select · Download]
    { 
       ["Name"] = perc.,
       ["Group"] = Standard,
    }

Quite different! Why?
8
User Tools / Re: Percussion splitter
I don't.
Code: (nwc) [Select · Download]
!NoteWorthyComposer(2.751)
|Editor|ActiveStaff:1|CaretIndex:1|CaretPos:0
|SongInfo|Title:"test perc"|Author:"<Name>"|Lyricist:""|Copyright1:"Copyright © 2026 <Name>"|Copyright2:"All Rights Reserved"
|PgSetup|StaffSize:16|Zoom:4|TitlePage:Y|JustifyVertically:Y|PrintSystemSepMark:N|ExtendLastSystem:N|DurationPadding:Y|PageNumbers:0|StaffLabels:None|BarNumbers:None|StartingBar:1
|Font|Style:StaffItalic|Typeface:"Times New Roman"|Size:10|Bold:Y|Italic:Y|CharSet:0
|Font|Style:StaffBold|Typeface:"Times New Roman"|Size:8|Bold:Y|Italic:N|CharSet:0
|Font|Style:StaffLyric|Typeface:"Times New Roman"|Size:7.2|Bold:N|Italic:N|CharSet:0
|Font|Style:PageTitleText|Typeface:"Times New Roman"|Size:24|Bold:Y|Italic:N|CharSet:0
|Font|Style:PageText|Typeface:"Times New Roman"|Size:12|Bold:N|Italic:N|CharSet:0
|Font|Style:PageSmallText|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User1|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User2|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User3|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User4|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User5|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|Font|Style:User6|Typeface:"Times New Roman"|Size:8|Bold:N|Italic:N|CharSet:0
|PgMargins|Left:1.27|Top:1.27|Right:1.27|Bottom:1.27|Mirror:N
|AddStaff|Name:"perc"|Group:"Standard"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:12|Lines:5|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:10
|StaffInstrument|Trans:0|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Percussion
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-3
|AddStaff|Name:"Perc. staff 1"|Label:"Toms"|Group:"Percussions"
|StaffProperties|EndingBar:Section Close|Visible:Y|BoundaryTop:12|BoundaryBottom:12|Lines:1|WithNextStaff:Bracket,ConnectBars|Color:Default
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:10
|StaffInstrument|Trans:-5|DynVel:10,30,45,60,75,92,108,127
|Clef|Type:Percussion
|Key|Signature:Bb|Tonic:F|Visibility:Never
|Note|Dur:4th|Pos:3y
|Note|Dur:4th|Pos:2y
|Note|Dur:4th|Pos:1y
|Note|Dur:4th|Pos:0y
!NoteWorthyComposer-End
9
User Tools / Re: Percussion splitter
Argument #1 is the name of the staff. There something odd with them.
What are the names of the staves in your score that begin with "Perc. staff "?

P.S. I'm not Bart!  :D
12
User Tools / Re: NWCCONVERTOR
you could specifically check for these problems during conversion and either delete or replace them with a flag - maybe "BLANK"?
In the xml he following chars are reserved and must be "escaped", that is:
"  replaced with  &quot;
'   replaced with  &apos;
<  replaced with  &lt;
>  replaced with &gt;
& replaced with  &amp;
(whatever similitude to html is...  ;) )
This is NOT my idea. This is the standard!
https://www.w3.org/TR/xml11/#NT-Char
- 2.4 Character Data and Markup
13
User Tools / Re: NWCCONVERTOR
pencil-button.png is missing in the .zip.
There's no way to include it permanently in the .exe?
14
User Tools / Re: NWCCONVERTOR
More generally, the following chars must be "escaped" in xml:
Quote
"   &quot;
'   &apos;
<   &lt;
>   &gt;
&   &amp;
15
User Tools / Re: NWCCONVERTOR
Quote
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings "&amp;" and "&lt;" respectively.
The right angle bracket (>) may be represented using the string "&gt;", and MUST, for compatibility, be escaped using either "&gt;" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section.
18
User Tools / Re: NWCCONVERTOR
Here it comes.
Since you're at it, take care at where the "repeat" bars appear.
19
User Tools / Re: NWCCONVERTOR
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.
20
User Tools / Re: NWCCONVERTOR
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).
21
User Tools / Re: NWCCONVERTOR
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.  ;)
22
User Tools / Re: NWCCONVERTOR
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.
23
User Tools / Re: NWCCONVERTOR
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!  :))
24
User Tools / Re: NWCCONVERTOR
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..
25
General Discussion / Re: Merry Christmas
The last time I used the Baudot was with a telex machine with punched paper tape, just before they became obsolete. About 1985.  :D
I still have a virgin tape.  :o
27
General Discussion / Re: "Text" window size
Eeeh? Hai problemi di vista? (Che poi la riga "text" ha le stesse dimensioni delle altre.  :) )
Se invece ti riferisci al risultato dell'operazione, cioè al testo visualizzato, allora basta aumentare "font size", come dice la parola stessa... in foresto.  :D

(Sorry for the non Italian speaking people, but, while answering, I'm also kidding Lorenzo...)
28
User Tools / Re: NWCCONVERTOR
It seems the "NWC User" isn't recognised anymore.
Furthermore, "Sorry, no new users possible".
30
Object Plugins / Re: PageTxtMaestro.nw
This instruction doesn't make it clear whether you can have just one PageTxtMaestro on a staff to serve more than one PgTxt object, or , if you have more than one PgTxt object on that staff, you need more than one PageTxtMaestro objects.
I've always put only one PageTxtMaestro object only, even with many PgTxt objects.
Quote
Add an object of type PageTxtMaestro.nw into the front of your top staff.
This object does all of the printing work, so you need to add it first.
Note that your top staff must contain at least one note before PageTxtMaestro can do its job.
If I put a PageTxtMaestro.nw on multiple staves is because they can become the top staff when printing parts.
31
General Discussion / Re: Windows 11
I can understand David fears because the 2.8 installer requires a previous 2.75a (or, better, 275a.2) already installed.
If David did all the updating steps for a long time there is the risk to have to redo all those steps... back to the need of the CD.
Not sure at all, but quite afraid!
37
User Tools / Re: NWCCONVERTOR
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.
38
User Tools / Re: NWCCONVERTOR
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...
40
General Discussion / Re: Old files don't open
There is no reason you shouldn't open old 1.75 files in NWC 2.75a.

With "open" you mean dounble clicking on a .nwc file? Then the problem is in the file association in the windows shell.
Check by using, in NWC, file -> Open.
43
General Discussion / What's a plus?
In current violin music, pizzicato with the left hand is indicated by a + above the note (see: Alban Berg - Violin Concerto).
Ok.

But in ancient music (and not for violin)? For example, Telemann for flute (see figure).
(My best guess: accent.)

And the vertical dashes? For example, Telemann for flute (see figure).
(My best guess: staccato.)
45
General Discussion / Re: REINSTALL nwc after computer crash
Umm, I was referring to re-purchasing NWC, not the need for a reader...  Guess I should have been more explicit.
Sorry, Lawrie. Of course I was kidding.

But, since your message went right after David's
An optical drive will connect to your laptop by USB and allow you to read your Noteworthy installation disc.   They aren't very expensive - I found refurbished or "open box" units online for less than $30CDN.
you can forgive me having misunderstood.  :)
48
General Discussion / Re: Beats in a bar
Layering works but, if only for this, it's an overkill.
Code: (nwc) [Select · Download]
!NoteWorthyComposerClip(2.751,Single)
|Clef|Type:Treble
|Key|Signature:Bb,Eb,Ab,Db,Gb,Cb|Tonic:G
|TimeSig|Signature:3/4
|Chord|Dur:4th|Pos:-4,-1|Opts:Stem=Down|Dur2:4th,Dotted|Pos2:2
|RestChord|Dur:8th|Opts:Stem=Up,ArticulationsOnStem,HideRest|Dur2:4th|Pos2:-2
|Note|Dur:8th|Pos:5|Opts:Stem=Up
|Chord|Dur:8th|Pos:4|Opts:Stem=Up,Beam=First|Dur2:4th|Pos2:-2,1
|Note|Dur:8th|Pos:3|Opts:Stem=Up,Beam=End
|Bar
|Chord|Dur:8th|Pos:-5^,-3|Opts:Stem=Down,Beam=First|Dur2:4th,Dotted|Pos2:2
|Chord|Dur:8th|Pos:-5,-1|Opts:Stem=Down,Beam=End
|RestChord|Dur:8th|Opts:Stem=Up,ArticulationsOnStem,HideRest|Dur2:Half|Pos2:-5,-2
|Note|Dur:8th|Pos:2|Opts:Stem=Up
|Note|Dur:8th|Pos:1|Opts:Stem=Up,Beam=First
|Note|Dur:8th|Pos:0|Opts:Stem=Up,Beam=End
|Bar
!NoteWorthyComposerClip-End
Hint: read attentively what Mike wrote.

N.B. NWC doesn't care, but the stem direction of the 2/4 chord was wrong.
49
Object Plugins / Re: PageTxtMaestro.nw
I often do similar things and I never had any problem.
Hint: do you change the "page style" name for each different PageText?
I usually have them named "subtitle", "page number", "instrument" etc.