Skip to main content
Recent Posts
31
User Tools / Re: Percussion splitter
Last post by Flurmy -
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?
32
User Tools / Re: Percussion splitter
Last post by yukulele -
After a few debug time I realize that `Item.Opts` have this structure for me:

Code: [Select · Download]
{
  ["Group"] = { ["Text"] = Standard, },
  ["LabelAbbr"] = "abbr",
  ["Label"] = { ["Text"] = label, },
  ["Name"] = { ["Text"] = perc, },
}

So I now use:
Code: (lua) [Select · Download]
local Name = Item.Opts.Name.Text or Item.Opts.Name
local PercStaffNumber = string.match(Name, PercStaffName.."(%d+)")

But I don't know why the behaviour is different on my side.

my debug code:
Spoiler (click to show/hide)
33
User Tools / Re: Percussion splitter
Last post by Flurmy -
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
34
User Tools / Re: Percussion splitter
Last post by yukulele -
Oups 😅 Sorry Flurmy, I misread the end of the first message as a signature.

I don't have any staves that start with "Perc. staff ".

Here is a minimal example for which I get an error:
Code: (nwc) [Select · Download]
!NoteWorthyComposer(2.751)
|SongInfo|Title:"test perc"
|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
|Clef|Type:Percussion
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-3
!NoteWorthyComposer-End
35
User Tools / Re: Percussion splitter
Last post by Flurmy -
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
36
User Tools / Re: Percussion splitter
Last post by yukulele -
Hi Bart!


I just reinstalled NWC, one of the first things to do is to reinstall the essential percussions-split plugin!

Unfortunately, I'm getting an error that I don't think I've encountered before:

Code: (txt) [Select · Download]
Usertools\fl_PercussionSplit-2.0.lua:738: bad argument #1 to 'match' (string expected, got table)


I tried this quick fix:

replace line 738
Code: (lua) [Select · Download]
    local PercStaffNumber = string.match(Item.Opts.Name, PercStaffName.."(%d+)")
with
Code: (lua) [Select · Download]
    local PercStaffNumber = 0

This hack seems to work, but I assume this line must serve some purpose, right?

- Are you also experiencing this problem?
- Is it a configuration error?
- How can it be fixed?
37
General Discussion / Re: Sound problem
Last post by David Palmquist -
To add a bass saxophone to Lawrie's great table:

Bass sax is written in treble clef, 26 semitones higher than concert pitch.  If you start with a tuba part, you change the clef from bass clef to treble clef, highlight all the notes, and use the down arrow to move them down 12 steps.  Bass clef top line A should become treble clef A two leger lines below that staff.  Then transpose up 26 semtitones - you have to do this in three steps - transpose up 12, then again up 12, and finally up 2, make sure each transpose operation has the Update staff playback box checked. 

Rather than change the tuba staff I copy it and transpose the copy.  That lets me compare my tuba notation with the original hard copy, and check my transposition with the little piano keyboard in the toolbar (highlight a tuba note, see which key is red in the keyboard, then compare that to what is red when the corresponding note is selected in the transposed staff). 

(Why did I need to learn to do this?  A new musician joined our community band, bringing us up to four tenor saxes - way too many.  One tenor player then switched to bari sax, giving us three tenors and three baris.  One bari decided that was too many, and decided to support our lone tuba with his bass sax.  I transposed the entire tuba folder for him.  SharpEye and Niversoft (Music-XML to NWCText converter) saved me many hours.)
39
General Discussion / First submission to imslp
Last post by Warren Porter -
In the early 1960s, my violin teacher gave me an old piece of music, Historie by Pier Tirindelli. I've kept up with it since then but have found few references to it on the internet.
The scan of the music plus a pdf that NWC created is on imslp.org .
My NWC transcription has been on Scriptorium for several years.