31
User Tools / Re: Percussion splitter
Last post by Flurmy -Quite different! Why?
But no "text"!
I still get no error: the name field is present and ignored as it should.
Quite different! Why?
But I don't know why the behaviour is different on my side.
{
["Name"] = perc.,
["Group"] = Standard,
} {
["Group"] = { ["Text"] = Standard, },
["LabelAbbr"] = "abbr",
["Label"] = { ["Text"] = label, },
["Name"] = { ["Text"] = perc, },
}local Name = Item.Opts.Name.Text or Item.Opts.Name
local PercStaffNumber = string.match(Name, PercStaffName.."(%d+)")
!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
!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
Usertools\fl_PercussionSplit-2.0.lua:738: bad argument #1 to 'match' (string expected, got table)
local PercStaffNumber = string.match(Item.Opts.Name, PercStaffName.."(%d+)")with
local PercStaffNumber = 0