Different size Full / Abbrev. Staff Names?

General notation questions, including advanced notation, formatting, etc., go here.

Moderators: Peter Thomsen, miker

BuonTempi
Posts: 1297
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Fri Dec 30, 2016 2:48 pm

What's the easiest way to get different sizes (or different typefaces for that matter) between Full Staff Names and Abbreviated Staff Names? E.g. 12pt for Full and 10pt for Abbreviated.

Obviously, for a Document Style, I can set up different Fonts in Document Options, and new staves created will have those settings, but for an existing document?


BuonTempi
Posts: 1297
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Fri Dec 30, 2016 4:23 pm

Yes, but I'd have to do each staff individually? I'm looking for a quicker way. The various plug-ins for Staff Attributes and changing fonts only seem to change all names in one go.

BuonTempi
Posts: 1297
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Fri Dec 30, 2016 4:39 pm

I have 24 documents each with around 12 staves. I don't mind doing it by hand if that's what it takes, but I was just checking that there wasn't an easier way.

User avatar
N Grossingink
Posts: 1786
Joined: Mon Dec 19, 2016 2:50 pm
Finale Version: 27.3
Operating System: Mac

Post by N Grossingink » Fri Dec 30, 2016 6:17 pm

I wonder whether Finale Script could do this? Maybe one of the experts could suggest a script.

N.
N. Grossingink
Educational Band, Orchestra and Jazz Ensemble a specialty
Sample: https://drive.google.com/file/d/1pFF5OeJDeLFGHMRyXrubFqZWXBubErw4/view?usp=share_link


Mac Mini 2014 2.6 Ghz, 8Gb RAM
OSX 10.15.7
Finale 2012c, 25.5, 26.3, 27.3

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Fri Dec 30, 2016 9:13 pm

Yes, a script would make it easier. If it was a FinaleScript, it would necessarily make assumptions about the number of staves, so I wrote a solution in JWLua, which changes the sizes of all staff names of an open document. I imagine that this script would be called from within a FinaleScript to make good use of the "batch process folder " command. So I haven't included a dialog which asks for the sizes, which would interrupt batch processing. Instead, the sizes have to be entered directly into the source code into the two lines between the exclamation marks.

In any way, you can run it on a single document as well, so calling from within a FinaleScript isn't necessary.

Harald

Code: Select all

function plugindef()
   finaleplugin.MinFinaleVersion = "2011"
   finaleplugin.Author = "Harald Schollmeyer"
   finaleplugin.Version = "1.0"
   finaleplugin.Date = "30.12.2016"
   finaleplugin.AuthorEmail = "hschollm@gmx.net"
   finaleplugin.CategoryTags = "Staff, System"
   return "Change Staff Name Font Sizes", "Change Staff Name Font Sizes", "Changes the sizes off staff name and abbreviated name"
end

-- This script changes the sizes of all staff names and abbreviated staff names.
-- It doesn't contain a user interface like a dialog to make it easier to call it
-- from within a FinaleScript for batch processing.
-- Change the two following values to the desired sizes:
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
local StaffNameSize = 12
local AbbreviatedStaffNameSize = 16
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

local staves = finale.FCStaves()
staves:LoadAll()
for staff in each(staves) do

        local str = finale.FCString()

        local FullNameFontInfo = staff:CreateFullNameString():CreateLastFontInfo()
        FullNameFontInfo.Size = StaffNameSize
        FullNameFontInfo:MakeEnigmaString( str, NULL )
        str:AppendString( staff:CreateTrimmedFullNameString() )
        staff:SaveNewFullNameString(str)

        local AbbrevNameFontInfo = staff:CreateAbbreviatedNameString():CreateLastFontInfo()
        AbbrevNameFontInfo.Size = AbbreviatedStaffNameSize
        AbbrevNameFontInfo:MakeEnigmaString( str, NULL )
        str:AppendString( staff:CreateTrimmedAbbreviatedNameString() )
        staff:SaveNewAbbreviatedNameString(str)

end
staves:SaveAll()
Attachments
Change Staff Name Font Sizes.zip
(734 Bytes) Downloaded 227 times
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

BuonTempi
Posts: 1297
Joined: Fri Aug 20, 2010 8:59 am
Finale Version: Finale 27
Operating System: Mac

Post by BuonTempi » Fri Dec 30, 2016 10:12 pm

Excellent. Many thanks.

User avatar
zuill
Posts: 4418
Joined: Sat Dec 10, 2016 9:35 pm
Finale Version: Finale 2011-v26.3.1
Operating System: Windows

Post by zuill » Fri Dec 30, 2016 10:27 pm

Is Lua available for v25 yet?

Zuill
Windows 10, Finale 2011-v26.3.1
"When all is said and done, more is said than done."

User avatar
HaraldS
Posts: 229
Joined: Mon Dec 19, 2016 11:46 am
Finale Version: 25.5
Operating System: Windows

Post by HaraldS » Sat Dec 31, 2016 12:58 pm

BuonTempi wrote:Excellent. Many thanks.
You're welcome!
zuill wrote:Is Lua available for v25 yet?
Well, it's still the 0.45 version. I don't know if this would run under v25, but I'd be interested in the result if someone tried it.

Happy new year's eve to all of you,
Harald
Finale 3.0-25.5, German edition, Windows 7
trombonist, pianist, conductor / Recklinghausen, Germany

Post Reply