Section Clefs

Clefs utility functions.

Summary

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

Function

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.