3232- [ set_score_page_size(width, height)] ( #set_score_page_size )
3333- [ set_all_parts_page_size(width, height)] ( #set_all_parts_page_size )
3434- [ apply_config(config, options)] ( #apply_config )
35+ - [ calc_voice_staff(staff_num)] ( #calc_voice_staff )
3536
3637### create_default_config
3738
3839``` lua
3940score .create_default_config ()
4041```
4142
42- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L58 )
43+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L78 )
4344
4445Many of the "create ensemble" plugins use the same configuration. This function
4546creates that configuration object.
@@ -54,7 +55,7 @@ creates that configuration object.
5455score .delete_all_staves ()
5556```
5657
57- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L81 )
58+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L101 )
5859
5960Deletes all staves in the current document.
6061
@@ -64,7 +65,7 @@ Deletes all staves in the current document.
6465score .reset_and_clear_score ()
6566```
6667
67- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L95 )
68+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L115 )
6869
6970Resets and clears the score to begin creating a new ensemble
7071
@@ -74,7 +75,7 @@ Resets and clears the score to begin creating a new ensemble
7475score .set_show_staff_time_signature (staff_id , show_time_signature )
7576```
7677
77- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L109 )
78+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L129 )
7879
7980Sets whether or not to show the time signature on the staff.
8081
@@ -93,7 +94,7 @@ Sets whether or not to show the time signature on the staff.
9394score .set_show_all_staves_time_signature (show_time_signature )
9495```
9596
96- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L128 )
97+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L148 )
9798
9899Sets whether or not to show the time signature on the staff.
99100
@@ -107,7 +108,7 @@ Sets whether or not to show the time signature on the staff.
107108score .set_staff_transposition (staff_id , key , interval , clef )
108109```
109110
110- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L148 )
111+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L168 )
111112
112113Sets the transposition for a staff. Used for instruments that are not concert pitch (e.g., Bb Clarinet or F Horn)
113114
@@ -128,7 +129,7 @@ Sets the transposition for a staff. Used for instruments that are not concert pi
128129score .set_staff_allow_hiding (staff_id , allow_hiding )
129130```
130131
131- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L171 )
132+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L191 )
132133
133134Sets whether the staff is allowed to hide when it is empty.
134135
@@ -147,7 +148,7 @@ Sets whether the staff is allowed to hide when it is empty.
147148score .set_staff_keyless (staff_id , is_keyless )
148149```
149150
150- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L189 )
151+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L209 )
151152
152153Sets whether or not the staff is keyless.
153154
@@ -166,7 +167,7 @@ Sets whether or not the staff is keyless.
166167score .set_staff_keyless (is_keyless )
167168```
168169
169- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L208 )
170+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L228 )
170171
171172Sets whether or not all staves are keyless.
172173
@@ -180,7 +181,7 @@ Sets whether or not all staves are keyless.
180181score .set_staff_show_default_whole_rests (staff_id , show_whole_rests )
181182```
182183
183- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L222 )
184+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L242 )
184185
185186Sets whether to show default whole rests on a particular staff.
186187
@@ -199,7 +200,7 @@ Sets whether to show default whole rests on a particular staff.
199200score .set_all_staves_show_default_whole_rests (show_whole_rests )
200201```
201202
202- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L237 )
203+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L257 )
203204
204205Sets whether or not all staves show default whole rests.
205206
@@ -213,7 +214,7 @@ Sets whether or not all staves show default whole rests.
213214score .add_space_above_staff (staff_id )
214215```
215216
216- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L254 )
217+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L274 )
217218
218219This is the equivalent of "Add Vertical Space" in the Setup Wizard. It adds space above the staff as well as adds the staff to Staff List 1, which allows it to show tempo markings.
219220
@@ -231,7 +232,7 @@ This is the equivalent of "Add Vertical Space" in the Setup Wizard. It adds spac
231232score .set_staff_full_name (staff , full_name , double )
232233```
233234
234- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L284 )
235+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L304 )
235236
236237Sets the full name for the staff.
237238
@@ -249,7 +250,7 @@ If two instruments are on the same staff, this will also add the related numbers
249250score .set_staff_short_name (staff , short_name , double )
250251```
251252
252- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L309 )
253+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L329 )
253254
254255Sets the abbreviated name for the staff.
255256
@@ -267,7 +268,7 @@ If two instruments are on the same staff, this will also add the related numbers
267268score .create_staff (full_name , short_name , type , clef , double )
268269```
269270
270- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L336 )
271+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L356 )
271272
272273Creates a staff at the end of the score.
273274
@@ -289,7 +290,7 @@ Creates a staff at the end of the score.
289290score .create_staff_spaced (full_name , short_name , type , clef , double )
290291```
291292
292- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L373 )
293+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L393 )
293294
294295Creates a staff at the end of the score with a space above it. This is equivalent to using ` score.create_staff ` then ` score.add_space_above_staff ` .
295296
@@ -311,7 +312,7 @@ Creates a staff at the end of the score with a space above it. This is equivalen
311312score .create_staff_percussion (full_name , short_name )
312313```
313314
314- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L389 )
315+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L409 )
315316
316317Creates a percussion staff at the end of the score.
317318
@@ -330,7 +331,7 @@ Creates a percussion staff at the end of the score.
330331score .create_group (start_staff , end_staff , brace_name , has_barline , level , full_name , short_name )
331332```
332333
333- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L411 )
334+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L431 )
334335
335336Creates a percussion staff at the end of the score.
336337
@@ -350,7 +351,7 @@ Creates a percussion staff at the end of the score.
350351score .create_group_primary (start_staff , end_staff , full_name , short_name )
351352```
352353
353- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L471 )
354+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L491 )
354355
355356Creates a primary group with the "curved_chorus" bracket.
356357
@@ -367,7 +368,7 @@ Creates a primary group with the "curved_chorus" bracket.
367368score .create_group_secondary (start_staff , end_staff , full_name , short_name )
368369```
369370
370- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L485 )
371+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L505 )
371372
372373Creates a primary group with the "desk" bracket.
373374
@@ -384,7 +385,7 @@ Creates a primary group with the "desk" bracket.
384385score .calc_system_scalings (systems_per_page )
385386```
386387
387- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L503 )
388+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L523 )
388389
389390_ EXPERIMENTAL_
390391
@@ -407,7 +408,7 @@ scripts.
407408score .set_global_system_scaling (scaling )
408409```
409410
410- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L541 )
411+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L561 )
411412
412413Sets the system scaling for every system in the score.
413414
@@ -421,7 +422,7 @@ Sets the system scaling for every system in the score.
421422score .set_global_system_scaling (system_number , scaling )
422423```
423424
424- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L778 )
425+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L798 )
425426
426427Sets the system scaling for a specific system in the score.
427428
@@ -436,7 +437,7 @@ Sets the system scaling for a specific system in the score.
436437score .set_large_time_signatures_settings ()
437438```
438439
439- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L578 )
440+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L598 )
440441
441442Updates the document settings for large time signatures.
442443
@@ -446,7 +447,7 @@ Updates the document settings for large time signatures.
446447score .use_large_time_signatures (uses_large_time_signatures , staves_with_time_signatures )
447448```
448449
449- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L600 )
450+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L620 )
450451
451452Sets the system scaling for a specific system in the score.
452453
@@ -461,7 +462,7 @@ Sets the system scaling for a specific system in the score.
461462score .use_large_measure_numbers (distance )
462463```
463464
464- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L618 )
465+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L638 )
465466
466467Adds large measure numbers below every measure in the score.
467468
@@ -475,7 +476,7 @@ Adds large measure numbers below every measure in the score.
475476score .set_max_measures_per_system (max_measures_per_system )
476477```
477478
478- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L671 )
479+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L691 )
479480
480481Sets the maximum number of measures per system.
481482
@@ -489,7 +490,7 @@ Sets the maximum number of measures per system.
489490score .set_score_page_size (width , height )
490491```
491492
492- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L702 )
493+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L722 )
493494
494495Sets the score page size.
495496
@@ -504,7 +505,7 @@ Sets the score page size.
504505score .set_all_parts_page_size (width , height )
505506```
506507
507- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L726 )
508+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L746 )
508509
509510Sets the page size for all parts.
510511
@@ -519,7 +520,7 @@ Sets the page size for all parts.
519520score .apply_config (config , options )
520521```
521522
522- [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L765 )
523+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L785 )
523524
524525When creating an ensemble, this function is used to apply the configuration.
525526
@@ -535,3 +536,21 @@ used if `uses_large_time_signatures` is true
535536| ----- | ---- | ----------- |
536537| ` config ` | ` table ` | the config file |
537538| ` options ` | ` table ` | ensemble-specific options |
539+
540+ ### calc_voice_staff
541+
542+ ``` lua
543+ score .calc_voice_staff (staff_num )
544+ ```
545+
546+ [ View source] ( https://github.com/finale-lua/lua-scripts/tree/master/src/library/score.lua#L814 )
547+
548+ Determines whether the staff is a voice instrument.
549+
550+ | Input | Type | Description |
551+ | ----- | ---- | ----------- |
552+ | ` staff_num ` | ` number ` | The number of the staff to check. |
553+
554+ | Return type | Description |
555+ | ----------- | ----------- |
556+ | ` boolean ` | True if the staff is a voice instrument. |
0 commit comments