ScoreTemplate¶
-
abstract class
abjad.segments.ScoreTemplate.
ScoreTemplate
¶ Abstract score template.
Attributes Summary
__call__
Calls score template. __illustrate__
Illustrates score template. allows_instrument
Is true when staff_name
allowsinstrument
.allows_part_assignment
Is true when voice_name
allowspart_assignment
.always_make_global_rests
Is true when score template always makes global rests. attach_defaults
Attaches defaults to all staff and staff group contexts in argument
whenargument
is a score.do_not_require_margin_markup
Is true when score template does not require margin markup. part_manifest
Gets part manifest. voice_abbreviations
Gets voice abbreviations. Special methods
-
(
AbjadValueObject
).__copy__
(*arguments)¶ Copies Abjad value object.
Returns new Abjad value object.
-
(
AbjadValueObject
).__eq__
(argument)¶ Is true when all initialization values of Abjad value object equal the initialization values of
argument
.Returns true or false.
-
(
AbjadObject
).__format__
(format_specification='')¶ Formats Abjad object.
Set
format_specification
to''
or'storage'
. Interprets''
equal to'storage'
.Returns string.
-
(
AbjadValueObject
).__hash__
()¶ Hashes Abjad value object.
Returns integer.
-
__illustrate__
(default_paper_size=None, global_staff_size=None, includes=None)¶ Illustrates score template.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
Methods
-
allows_instrument
(staff_name, instrument)¶ Is true when
staff_name
allowsinstrument
.To be implemented by concrete score template classes.
Return type: bool
-
allows_part_assignment
(voice_name, part_assignment)¶ Is true when
voice_name
allowspart_assignment
.Return type: bool
-
attach_defaults
(argument)¶ Attaches defaults to all staff and staff group contexts in
argument
whenargument
is a score.Attaches defaults to
argument
(without iteratingargument
) whenargument
is a staff or staff group.Returns list of one wrapper for every indicator attached.
Return type: List
[~T]
Read-only properties
-
do_not_require_margin_markup
¶ Is true when score template does not require margin markup.
Conventionally, solos do not require margin markup.
Return type: bool
-
part_manifest
¶ Gets part manifest.
Return type: Optional
[PartManifest
]
-
voice_abbreviations
¶ Gets voice abbreviations.
Return type: OrderedDict
-