GroupedRhythmicStavesScoreTemplate

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.segments" { graph [label="abjad.segments"]; node [color=1]; "abjad.segments.GroupedRhythmicStavesScoreTemplate.GroupedRhythmicStavesScoreTemplate" [URL="../api/abjad/segments/GroupedRhythmicStavesScoreTemplate.html#abjad.segments.GroupedRhythmicStavesScoreTemplate.GroupedRhythmicStavesScoreTemplate", color=black, fontcolor=white, label="Grouped\nRhythmic\nStaves\nScore\nTemplate", target=_top]; "abjad.segments.ScoreTemplate.ScoreTemplate" [URL="../api/abjad/segments/ScoreTemplate.html#abjad.segments.ScoreTemplate.ScoreTemplate", label="Score\nTemplate", shape=oval, style=bold, target=_top]; "abjad.segments.ScoreTemplate.ScoreTemplate" -> "abjad.segments.GroupedRhythmicStavesScoreTemplate.GroupedRhythmicStavesScoreTemplate"; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/segments/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/segments/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.segments.ScoreTemplate.ScoreTemplate"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.segments.GroupedRhythmicStavesScoreTemplate.GroupedRhythmicStavesScoreTemplate(staff_count=2)

Grouped rhythmic staves score template.

One voice per staff:

>>> class_ = abjad.GroupedRhythmicStavesScoreTemplate
>>> template_1 = class_(staff_count=4)
>>> abjad.show(template_1) 
>>> score = template_1()
>>> abjad.show(score) 
>>> abjad.f(score)
\context Score = "Grouped Rhythmic Staves Score"
<<
    \context StaffGroup = "Grouped Rhythmic Staves Staff Group"
    <<
        \context RhythmicStaff = "Staff 1"
        {
            \context Voice = "Voice 1"
            {
            }
        }
        \context RhythmicStaff = "Staff 2"
        {
            \context Voice = "Voice 2"
            {
            }
        }
        \context RhythmicStaff = "Staff 3"
        {
            \context Voice = "Voice 3"
            {
            }
        }
        \context RhythmicStaff = "Staff 4"
        {
            \context Voice = "Voice 4"
            {
            }
        }
    >>
>>

More than one voice per staff:

>>> template_2 = class_(staff_count=[2, 1, 2])
>>> abjad.show(template_2) 
>>> score = template_2()
>>> abjad.show(score) 
>>> abjad.f(score)
\context Score = "Grouped Rhythmic Staves Score"
<<
    \context StaffGroup = "Grouped Rhythmic Staves Staff Group"
    <<
        \context RhythmicStaff = "Staff 1"
        <<
            \context Voice = "Voice 1-1"
            {
            }
            \context Voice = "Voice 1-2"
            {
            }
        >>
        \context RhythmicStaff = "Staff 2"
        {
            \context Voice = "Voice 2"
            {
            }
        }
        \context RhythmicStaff = "Staff 3"
        <<
            \context Voice = "Voice 3-1"
            {
            }
            \context Voice = "Voice 3-2"
            {
            }
        >>
    >>
>>

Attributes Summary

__call__ Calls score template.
staff_count Gets score template staff count.
voice_abbreviations Gets context name abbreviations.

Special methods

__call__()

Calls 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 allows instrument.

To be implemented by concrete score template classes.

Return type:bool
(ScoreTemplate).allows_part_assignment(voice_name, part_assignment)

Is true when voice_name allows part_assignment.

Return type:bool
(ScoreTemplate).attach_defaults(argument)

Attaches defaults to all staff and staff group contexts in argument when argument is a score.

Attaches defaults to argument (without iterating argument) when argument 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]
staff_count

Gets score template staff count.

>>> class_ = abjad.GroupedRhythmicStavesScoreTemplate
>>> template = class_(staff_count=4)
>>> template.staff_count
4

Returns nonnegative integer.

voice_abbreviations

Gets context name abbreviations.

>>> class_ = abjad.GroupedRhythmicStavesScoreTemplate
>>> template = class_(staff_count=4)
>>> template.voice_abbreviations
OrderedDict([])