Section Clefs
Clefs utility functions.
Summary
Return type | Function and summary |
---|---|
int | DeleteUselessClefs(Staff staff) Delete useless clef change that are visible clefs with no changes. |
int | ShowHiddenClefs(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.
Parameter | Type | Default | Description |
---|---|---|---|
staff | Staff | 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.
Parameter | Type | Default | Description |
---|---|---|---|
staff | Staff | staff |
- Return
- int: Number of shown clefs.