1
NWC come with a command line convertor
You can convert
to
Location:
C:\Program Files (x86)\Noteworthy Software\NoteWorthy Composer 2\nwc-conv.exe
usage:
nwc-conv "in.nwc" NWCTXT > "out.nwctxt"
help:
nwc-conv -h
3
After a few debug time I realize that `Item.Opts` have this structure for me:
{
["Group"] = { ["Text"] = Standard, },
["LabelAbbr"] = "abbr",
["Label"] = { ["Text"] = label, },
["Name"] = { ["Text"] = perc, },
}
So I now use:
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:
print(dump(Item.Opts))
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
4
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:
!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
5
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:
Usertools\fl_PercussionSplit-2.0.lua:738: bad argument #1 to 'match' (string expected, got table)
I tried this quick fix:
replace line 738 local PercStaffNumber = string.match(Item.Opts.Name, PercStaffName.."(%d+)")
with 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?
7
I,
Thanks for the update!
You agree for pan and mute.
I'm not kidding, in some case devices are used to workaround 16 channel midi limitation (by using several virtual midi devices). but I admit that I don't use it very often (and probably never for percussion).
thanks! but you should keep first upper and last lower to original (12) value.
I think this fix create a regression in case of time signature change, try it with that:
!NoteWorthyComposer(2.751)
|AddStaff|Name:"perc"|Group:"Standard"
|StaffProperties|Muted:N|Volume:127|StereoPan:64|Device:0|Channel:10
|Clef|Type:Percussion
|TimeSig|Signature:6/4
|Note|Dur:Half|Pos:-8
|Note|Dur:Half|Pos:-8
|Note|Dur:Half|Pos:-8
|Bar
|TimeSig|Signature:4/4
|Note|Dur:Half|Pos:-7
|Note|Dur:Half|Pos:-7
|Bar
|Note|Dur:Half|Pos:-8
|Note|Dur:Half|Pos:-8
|Bar
!NoteWorthyComposer-End