Section Clefs

Clefs utility functions.

Summary

Return typeFunction and summary
intDeleteUselessClefs(Staff staff)
Delete useless clef change that are visible clefs with no changes.
intShowHiddenClefs(Staff staff)
Show hidden clefs where needed.

Functions

DeleteUselessClefs(Staff staff)

Delete useless clef change that are visible clefs with no changes.

After PDF or MusicXML import, you may find clefs on every lines, displayed in scroll mode. Harmony doesn't need such bar settings, there is a print option that repeats clefs on every line.

ParameterTypeDefaultDescription
staffStaff staff
Return
int: Number of deleted clefs.

ShowHiddenClefs(Staff staff)

Show hidden clefs where needed.

After PDF or MusicXML import, if a staff is invisible on first page, first clef is hidden.

ParameterTypeDefaultDescription
staffStaff staff
Return
int: Number of shown clefs.