TwoStaffPianoScoreTemplate¶
-
class
abjad.segments.TwoStaffPianoScoreTemplate.
TwoStaffPianoScoreTemplate
¶ Two-staff piano score template.
>>> template = abjad.TwoStaffPianoScoreTemplate() >>> abjad.show(template)
>>> abjad.f(template.__illustrate__()[abjad.Score]) \context Score = "TwoStaffPianoScore" << \context GlobalContext = "GlobalContext" << \context GlobalRests = "GlobalRests" { } \context GlobalSkips = "GlobalSkips" { } >> \context PianoStaff = "PianoStaff" << \context Staff = "RHStaff" { \context Voice = "RHVoice" { s1 } } \context Staff = "LHStaff" { \context Voice = "LHVoice" { \clef "bass" %! ST3 s1 } } >> >>
Returns score template.
Attributes Summary
__call__
Calls two-staff piano score template. Special methods
-
__call__
()¶ Calls two-staff piano score template.
Returns score.
-
(
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.
-
(
ScoreTemplate
).__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
-
(
ScoreTemplate
).allows_instrument
(staff_name, instrument)¶ Is true when
staff_name
allowsinstrument
.To be implemented by concrete score template classes.
Return type: bool
-
(
ScoreTemplate
).allows_part_assignment
(voice_name, part_assignment)¶ Is true when
voice_name
allowspart_assignment
.Return type: bool
-
(
ScoreTemplate
).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
-
(
ScoreTemplate
).always_make_global_rests
¶ Is true when score template always makes global rests.
Return type: bool
-
(
ScoreTemplate
).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
-
(
ScoreTemplate
).part_manifest
¶ Gets part manifest.
Return type: Optional
[PartManifest
]
-
(
ScoreTemplate
).voice_abbreviations
¶ Gets voice abbreviations.
Return type: OrderedDict
-