a.) Two Main Algorithms for Staff Spacing in the Score
The Perfect Layout plug-in includes two algorithms for creating a non-colliding and visually balanced look of the staff systems.
In Perfect Layout v3 the algorithms are applied both to the score and to the linked parts.
PL v2 only supports the score layout (not linked parts).
Image 1: The score balancing algorithm on an overstuffed page
The main algorithm works on overstuffed pages as well as on pages with lots of free space.
The plug-in starts by creating the maximum condensed score and then inserts space for a good visual balance.
If there is way too much space, it won't stretch the page until the bottom page margin, but keep a portion free at the bottom of the page.
In general you should always get good results with the default score balancing settings of the plug-in. Should you not be happy with the result or would like to have access to more spacing parameters which are currently hidden to the user, please contact our support team: we might fine-tune our default settings for the future.
b.) Max. Distance between Staves (Default: 470 EVPU)
This value handles the maximum distance between staves.
If a staff group starts, then this value will be increased according to the "group slider".
Usually you will not get this distance between two staves as probably your page will not have that much space.
But in case of very much space it will (probably) be limited to 470 EVPUs.
Probably? Why probably?
If only "a bit more" is required to fill the full page, more space will be used.
Some mathematical rounding issues can also lead to slightly different max. values.
c.) Standard Distance Between Two-Staff Groups (Default: 280 EVPU)
If there is for example a piano part on the staff system, it should not have a distance of 470 EVPU as the other single staves. Instead they should be aligned a bit tighter. 280 EVPU has proved to be a good value for typical piano or harp staves.
d.) Sliders: Extra Distance Before/After Staff Groups and Staff/System Distance
Who gets the most empty space?
Multiple systems on a page or staves can get extra space: "between systems" or "between staves".
This can be controlled via the "Staff/System Distance" slider.
The more you move the slider to the right the more space is inserted between staff systems.
Extra space for grouped staves within a system is controlled via the "Extra Distance Before/After Staff Groups" slider.
The more you move the slider to the right the more extra space is inserted before and after groups.
By default these sliders are set to auto-detection: an algorithm automatically sets good default spacing values for standard score types like single staff, piano, piano + solo, duo, piano + duo, small ensemble or large ensemble.
e.) Max. Distance Between Staff Systems (Default: deactivated, 800 EVPU)
(Perfect Layout v3+ only:)
By default Perfect Layout automatically adds space between the staff systems, so that the bottom staff systems aligns with the page bottom margin.
If this meant very much free space between multiple systems, Perfect Layout would reduce the space and automatically avoid the alignment.
However, there are scores, for example with many very different staff system heights, where it makes sense to limit the maximum space between staff systems.
This also means that they won't align at the page bottom margin, if the maximum distance is reached.
To achieve this activate the option Max. Distance Between Staff Systems.
By default the distance is limited to 800 EVPU. But this value can also be adjusted in the dialog.
See image 2 for the difference between automatic staff system distances and a limited distance.
Image 2: Option "Max. Distance Between Staff Systems""
f.) Min. Bottom Margin of Staff System and Auto-Suggest 'Parts' Value
The "Minimum Bottom Margin of Staff System" value is available both for the score and the parts and has the highest influence on the distance between multiple systems on a page.
Especially in parts this is probably the most important value for the system layout.
For a very dense spacing use low values (e.g. 20 EVPU is the default in the 'Tight Spacing' preset).
For a wide spacing use higher value between 150-240 EVPU.
Note: The "Min. Bottom Margin" value will only provide a rough orientation for the plug-in.
The actual bottom margin of the systems will probably be different on each system dependent on the content.
In PL v3 there is also an "Auto-Suggest 'Parts' Value" option.
It tries to suggest a good value according to the spacing in the current system setup in the parts (before Perfect Layout).
"Auto-Suggest" will either generate a value of 80 EVPU (medium dense spacing) or 200 EVPU ("standard" spacing).
How does "Auto-Suggest" work?
Orchestral or chamber music parts very often use a more dense spacing. Other musical genres often use a wider spacing.
It's obviously difficult to detect if the engraver wanted a dense or wide system spacing.
The "Auto-Suggest" in Perfect Layout decides like this:
If the vertical spacing in the parts is already very wide, it will be kept (->use 200 EVPU).
If the spacing is already extremely dense and maybe even with collisions between staves, then it will also be set to s (standard) wide spacing (->use 200 EVPU).
If the spacing is dense, but probably ok, then the plug-in will keep a dense spacing (->use 80 EVPU).
If you load the "Tight Spacing" preset, then the vertical spacing will be set to just "20 EVPU".
If you want to define your own system distance in parts, deactivate "Auto-Suggest" and set your own value.
g.) Reserve Distance Between Bottom and Next Top Staff System Margin (Default: 70 EVPU)
After the score balancing algorithm the bottom system margin will be reduced by this value to allow easy manual shifting of the systems after Perfect Layout has finished.
Image 3: "Reserve Distance Between Bottom and Next Top Staff System Margin"
h.) Min. Vertical Space on Reflow Systems Across Pages (Default: 14 EVPU)
If "Reflow Systems Across Pages" is activated in the Finale preferences, Perfect Layout will re-arrange the systems across the pages and improve the layout. This "Min. Vertical Space" value defines the minimum distance between two systems.
Usually you will never encounter this exact distance between systems in the end, as there is nearly always more space available on a page.
This is more a guide value that defines the general density of a page: the higher the value, the less number of systems will appear on a page.
E.g. the value 0 EVPU creates very dense parts, while a value of 50-70 EVPU generates a very loose vertical spacing.
This value is more relevant to (extracted) parts with lots of systems per page (see for example this demo video).
On conductor's scores with only one or two systems per page, this is not relevant as there is usually no reflow of systems across pages.
a.) Adjust Top System Margin to Max. Position of Top Staff
When activated this feature aligns the top element of the top staff with the page top margin (see in image 4 bottom).
This option is available separately for the score and the parts.
By default this is activated for the parts only. In the score it is usually preferred to have the top staff lines aligned.
If you have deactivated this option, make sure you have a nice "Distance Between Systems" value in your Finale (default) page format settings.
This will be used/maintained otherwise.
Note: Make sure there is enough vertical space between your page text elements and the page top margin (e.g. page numbers, title) before you apply Perfect Layout.
Otherwise you may get collisions when this feature is activated.
When Perfect Layout detects these page text/page top margin collisions, it automatically deactivates this pre-set feature.
In this case you have to manually (re-)activate this option to have it applied.
Image 4: The "Adjust Top System Margin to Max. Position of Top Staff" option
The enclosure of "Letter D" is aligned with the page top margin.
b.) Alignment at the Page Bottom
You can select different alignment techniques for the bottom of the page (see image 5 below). In this case alignment means "snap an element to the bottom page margin". That is also why it is important to set the bottom page margin to your needs before running the Perfect Layout plug-in.
The option "Fix Staff System Bottom Margin (Auto-Detect Lowest)" looks at all score pages, finds the lowest element at the bottom staff and uses the distance of this element to the bottom staff line as the "fix bottom margin".
This guarantees that all staff lines of the bottom staff system align over all pages and that no element goes below the bottom page margin line. This default option works best in most cases.
If the bottom staff has very different distances to the bottom staff line (e.g. in modern piano works), it may work better to select the "Lowest Element On Bottom Staff" algorithm which aligns the lowest elements on all pages (and not the bottom staff line).
Both options are combined in the default option "Auto-Detect (Fix Staff System Bottom Margin or Lowest Element)": if the bottom margin is huge and very different on each page (e.g. contemporary piano scores), the "Lowest Element" algorithm is select, otherwise the "Fix Staff System Bottom Margin (Auto-Detect Lowest)".
Other options are:
"Fix Staff System Bottom Margin": same as above, but the distance is not auto-detected and can be entered manually.
"Bottom Staff Line": this option aligns the bottom staff line with the bottom page margin which means that all elements below the bottom staff line appear below the bottom page margin. It's the same as a "Fix Staff System Bottom Margin" with a value of 0 EVPU.
Image 5: Option Align Page Bottom Margin With
Note: the score balancing algorithm needs to take into account each Finale object (except page texts). Unfortunately JW Lua doesn't support all object properties yet, so the algorithm has some minor restrictions.
Currently unsupported or only partially supported objects are for graphic objects, mid-measure clefs, staff names, complex cross staff notes, shape articulations and smartshapes that span more then two systems.
To support some of these objects nevertheless dummy values are used which already lead to better results.
c.) Option: Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page (e.g. Copyright Text)
Perfect Layout aligns the bottom system with the page bottom margin. So you need to make sure that all copyright text, page numbers, etc. are placed below the page bottom margin in order to avoid collisions with the score.
Perfect Layout's Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page automatically adjusts the page bottom margin on the first page with systems (i.e. where usually the copyright texts are).
By default it generates a distance of 56 EVPU between the page bottom margin and the page text (see image 6 below).
The distance is set with the Bottom Margin to Page Text Distance parameter.
Image 6: Option Auto-Adjust Bottom Margin for Colliding Page Texts on Bottom of First Page
d.) Option: Force Spread to Page Bottom Margin
While the Max. Distance Between Staves value (470 EVPU by default) usually defines the maximum distance between staves, this value can be overridden by activating Force Spread to Page Bottom Margin.
This gives so much space between staves until the system(s) are stretched until the page bottom margin(see image 7).
Left: By default 470 EVPUs maximum distance between staves
Right: Force Spread to Page Bottom Margin activated
In parts with only one staff Perfect Layout v3 can optimize the system and measure layout for easy page turns via the option Optimize Page Breaks with Rests.
This feature analyzes the last systems on a page and looks for good page breaks with multi-measure rests, cue notes sections or longer rests within a measure.
First you have to determine where Perfect Layout should add page breaks.
By default Perfect Layout will add them on the odd (right) pages (Option: "On Odd (Right) Pages").
But you can also select the even (left) or both pages.
There is also the option "Only Optimize if Number of Staff Systems is at Least X".
It automatically deactivates the page break feature on parts with less than X systems (e.g. if the part only has two pages).
Perfect Layout only takes into account rests in the first or second bar of a system, or in the last or next-to-last bar.
I.e. a single multi-measure rest in the middle of a system with at least 5 bars is currently not shifted to the end of a system, because it is very likely that it will influence more than one subsequent system.
However, you can allow "Mid-System Multi-Measure Rests" for the page break if you activate one of these two options:
1.) Always Accept Mid-System Multi-Measure Rests: the first system with a multi-measure rest found in the middle of a system would be used for the page break, if the subsequent systems didn't have rests for a good page break.
2.) Prefer Mid-System Multi-Measure Rests over Single Empty Measures (in PL Gold only): like 1.), but only if there were no previous or subsequent systems with multi-measure rests at the start or end of the system.
Note: in these case of mid-system multi-measure rests Perfect Layout uses the system for the page break, but it doesn't shift the rest bars to the end of the system automatically. Because this will usually lead to music spacing problems or other collisions.
Here Perfect Layout only supports the search for page breaks:
you have to shift the multi-measure rest bars manually to the end of the system after Perfect Layout.
BTW, that is also why these two options are deactivated by default.
However, they allow for more complex page turns which may be required if there are only very few rests.
In Perfect Layout Gold you can control in how many systems Perfect Layout will search for rests through the option "Max. Number of Systems to Search in for Good Page Breaks". By default (and in PL Silver) this value is 4.
Perfect Layout refines its search in several steps:
1.) First it looks for a multi-measure rest that spans at least x bars. In PL Gold x is defined in "Preferred Minimum Number of Empty Measures at Page Break". By default and in PL Silver it is 2.
2.) If it doesn't find such a rest, it will reduce the number of bars (until x=1) and try again.
3.) If it's only one bar, it will first search with for one empty bar with adjacent rests in the previous bar.
4.) Then it will search for single rest bars.
5.) If it still hasn't found a full bar rest and "Allow Rests within Measures" is activated, it will search for long rests at the end of a measure:
In step one it searches for rests that span at least 3072 EDU (dotted half note - set with the "Minimum Rest Duration" option), in step two for rests that span at least 2048 EDU (half note, set with the "If not found, check for" option).
6.) If it still hasn't found a rest bar, it will finally search for mid-system multi-measure rests, even if the two mid-system options are not activated.
Rests at the end of a system are preferred over rests at the beginning of a system.
A rest at the start of a new page will not be visible to the musician before the page turn. So, if possible, this should be avoided.
Image 8: Rest priorities for good page breaks:
The first multi-measure rest in the second system (second measure) could be preferred over the second multi-measure rest (fifth measure of the second system) as it only requires shifting a whole note to the previous system, instead of shifting four quarter notes to the next system.
Perfect Layout decides which rest to take dependent on the system contents (e.g. the density of the music spacing).
If Perfect Layout has found a good page break above the current last system of the page, the number of systems on that page will be reduced.
Dependent on the number of reduced systems, Perfect Layout will either automatically add blank space at the bottom of the page (page break found many systems before end of page) or move systems from the previous page to the page with the page break (page break found close to end of page), so that the overall look will still be visually balanced.
If Perfect Layout has found a good page break in the second or next-to-last measure of a system, it tries to move it to the start or to the end of the system.
This is possible in most cases.
However, there may be scenarios where this is not possible or where it's not guaranteed that it looks good.
In these cases you should have a final look at these page breaks and move the measures manually and/or correct some minor collisions.
Perfect Layout adds a message to the log file and also displays a warning message on the screen at the end of processing.
Note 1: The page break feature is only available if "Reflow Systems Across Pages" is activated in Finale's Preferences->Edit and if "Systems->Optimize Staff/System Distances" is activated in Perfect Layout.
Note 2: The feature currently doesn't work on parts with more than one staff (e.g. piano parts or the full score).
The coda system is automatically shifted down for better readability (Option: "Shift Coda System Down").
The algorithm looks for repeat elements or text expressions with the user-defined keyword ("Coda" by default).
If the algorithm detects this word at the beginning of a system, it will move the system down by the given value (120 EVPUs by default). If there is not enough space on the page, the score balancing algorithm will probably decrease the distance.