Section Scores

Score utility functions

See
Score

Summary

Return typeFunction and summary
 DeleteReservedPages(Score score)
Delete reserved pages from a score, if any, and move or delete the free objects visible on the reserved pages.
 InsertReservedPages(Score score)
Insert reserved pages, after the already existing if any) and shift the free objects to next pages.
intLoadScoreAppearance(Score score, string setName)
Load score appearance settings from a file saved by SaveScoreAppearance(...).
 SaveScoreAppearance(Score score, string setName, boolean full)
Save score appearance settings in a file.

Functions

SaveScoreAppearance(Score score, string setName, boolean full)

Save score appearance settings in a file.

Harmony Assistant only allow to save one default set, but you may need several sets, for solo parts, for conductor...

ParameterTypeDefaultDescription
scoreScore score
setNamestring Setting name, e.g. "conductor", "drums"
fullboolean true to save all settings, false to save only those that differs from factory settings.

LoadScoreAppearance(Score score, string setName)

Load score appearance settings from a file saved by SaveScoreAppearance(...).

Harmony Assistant only allow to save one default set, but you may need several sets, for solo parts, for conductor...
Only the settings read from the file are modified, missing settings are untouched.

ParameterTypeDefaultDescription
scoreScore score
setNamestring Setting name, e.g. "conductor", "drums"
Return
int: Number of modified settings

InsertReservedPages(Score score)

Insert reserved pages, after the already existing if any) and shift the free objects to next pages.

e.g.: A free object is on page 2 of a score without any reserved pages, after insertion of 1 reserved page, the free object will move to page 3.

ParameterTypeDefaultDescription
scoreScore score

DeleteReservedPages(Score score)

Delete reserved pages from a score, if any, and move or delete the free objects visible on the reserved pages.

  • A free object is on the 2nd page of the score, but page 3 as the score has 1 reserved page: the object will move to page 2 to stay on 2nd score page.
  • Free objects visible only on reserved pages are deleted.

ParameterTypeDefaultDescription
scoreScore score