A library of general clef utility functions.
clef.get_cell_clef(measure, staff_number)
Gets the clef for any cell.
Input | Type | Description |
---|---|---|
measure |
number |
The measure number for the cell |
staff_number |
number |
The staff number for the cell |
Return type | Description |
---|---|
number |
The clef for the cell |
clef.get_default_clef(first_measure, last_measure, staff_number)
Gets the default clef for any staff for a specific region.
Input | Type | Description |
---|---|---|
first_measure |
number |
The first measure of the region |
last_measure |
number |
The last measure of the region |
staff_number |
number |
The staff number for the cell |
Return type | Description |
---|---|
number |
The default clef for the staff |
clef.set_measure_clef(first_measure, last_measure, staff_number, clef_index)
Sets the clefs of of a range measures.
Input | Type | Description |
---|---|---|
first_measure |
number |
The first measure of the region |
last_measure |
number |
The last measure of the region |
staff_number |
number |
The staff number for the cell |
clef_index |
number |
The clef to set |
clef.restore_default_clef(first_measure, last_measure, staff_number)
Restores the default clef for any staff for a specific region.
Input | Type | Description |
---|---|---|
first_measure |
number |
The first measure of the region |
last_measure |
number |
The last measure of the region |
staff_number |
number |
The staff number for the cell |
clef.process_clefs(mid_clefs)
Processes a table of clef changes and returns them in order, without duplicates.
:(FCCellClefChanges)
Input | Type | Description |
---|---|---|
mid_clefs |
FCCellClefChanges |
clef.clef_change(clef)
Inserts a clef change in the selected region.
@ region FCMusicRegion The region to change.
Input | Type | Description |
---|---|---|
clef |
string |
The clef to change to. |