def tutti(cache): accumulator( ["v1", "v2", "va", "vc"], baca.dls_staff_padding(6), ) accumulator( (["v1", "v2", "va", "vc"], (1, 4)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="tight-poss-grind-at-talon", ), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.flat_glissando("G4"), baca.hairpin( '"ff" -- !', abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( (["v1", "v2", "va", "vc"], (7, 10)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="tight-poss-grind-at-talon", ), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.hairpin( "p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("v1", (7, 10)), baca.flat_glissando("Bb4"), ) accumulator( ("v2", (7, 10)), baca.flat_glissando( "G4", stop_pitch="A4", ), ) accumulator( ("va", (7, 10)), baca.flat_glissando("Bb4"), ) accumulator( ("vc", (7, 10)), baca.flat_glissando("Bb4"), ) accumulator( (["v1", "v2", "va", "vc"], (12, 15)), baca.dynamic( "p-ancora", abjad.Tweak(r"- \tweak self-alignment-X -0.75"), ), baca.text_spanner( r"\baca-circle-tight-poss-markup -> \baca-circle-very-tight-markup =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=True, bookend=False, pieces=lambda _: baca.select.omgroups(_, [2]), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( (["v1", "v2", "va", "vc"], (12, 27)), baca.breathe(), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), ) accumulator( (["v1", "v2", "va", "vc"], (16, 19)), baca.dynamic("p", redundant=True), baca.text_spanner( r"\baca-circle-very-tight-markup -> \baca-circle-tight-markup =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=True, bookend=False, pieces=lambda _: baca.select.omgroups(_, [2]), selector=lambda _: baca.select.rleak(baca.select.ltleaves(_)), ), ) accumulator( (["v1", "v2", "va", "vc"], (20, 23)), baca.dynamic("p", redundant=True), baca.text_spanner( r"\baca-circle-tight-markup -> \baca-circle-mod-markup =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), library.left_broken_circle_bow_tweak(), autodetect_right_padding=True, bookend=False, pieces=lambda _: baca.select.omgroups(_, [2]), selector=lambda _: baca.select.rleak(baca.select.ltleaves(_)), ), ) accumulator( (["v1", "v2", "va", "vc"], (24, 27)), baca.dynamic("p", redundant=True), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), selector=lambda _: baca.select.rleak(baca.select.ltleaves(_)), qualifier="wide", ), ) accumulator( (["v1", "v2", "va", "vc"], (30, 33)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.hairpin( "mf mf mp p pp pp", bookend=False, pieces=lambda _: baca.select.runs(_), ), ) def grouped_pheads(start=0, stop=None): def selector(argument): result = baca.pheads(argument) result = result[start:stop] return [[_] for _ in result] return selector accumulator( (["v1", "v2", "va", "vc"], (36, 55)), baca.hairpin( "pp pp p p mp mp", bookend=False, measures=(36, 39), pieces=grouped_pheads(), ), baca.hairpin( "mf mp mp p p pp pp", bookend=False, measures=(40, 43), pieces=grouped_pheads(), ), baca.hairpin( "pp pp p mp mf", bookend=False, measures=(44, 47), pieces=grouped_pheads(), ), baca.hairpin( "f mf mp mp p p pp", bookend=False, measures=(48, 51), pieces=grouped_pheads(), ), baca.hairpin( # "pp p mp mf f ff", "pp p mp mf f", bookend=False, measures=(52, 55), pieces=grouped_pheads(None, -1), ), ) accumulator( (["v1", "v2", "va", "vc"], (36, 59)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), ) accumulator( (["v1", "v2", "va", "vc"], (56, 59)), baca.breathe(), baca.hairpin( '"ff" -- !', abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.rleak(baca.lleak(abjad.select.leaves(_))), ), ) accumulator( (["v1", "v2", "va", "vc"], (62, 69)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), baca.hairpin( "p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.new( baca.pitch("B5"), match=0, ), baca.new( baca.pitch("B4"), match=1, ), baca.new( baca.pitch("B3"), match=2, ), baca.new( baca.pitch("B1"), match=3, ), ) accumulator( (["v1", "v2", "va", "vc"], [62, 64, 66, 68]), baca.laissez_vibrer(selector=lambda _: baca.select.ptails(_), ), ) accumulator( (["v1", "v2", "va", "vc"], [63, 65, 67, 69]), baca.stop_on_string(selector=lambda _: baca.select.ptails(_), ), ) accumulator( ("v1", (71, 76)), baca.flat_glissando( "Bb4", stop_pitch="G4", ), ) accumulator( ("v2", (71, 76)), baca.flat_glissando( "Ab4", stop_pitch="F4", ), ) accumulator( ("va", (71, 76)), baca.flat_glissando( "A3", stop_pitch="B2", ), ) accumulator( ("vc", (71, 76)), baca.flat_glissando( "G2", stop_pitch="Bb1", ), ) accumulator( (["v1", "v2", "va", "vc"], (71, 76)), baca.hairpin( "f >o niente", abjad.Tweak(r"- \tweak shorten-pair #'(0 . 3.5)"), selector=lambda _: baca.select.rleaves(_), ), baca.text_spanner( r"\baca-circle-wide-markup -> \baca-circle-very-tight-markup =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), # spanner terminates at double bar: (abjad.Tweak(r"- \tweak bound-details.right.padding 7.75"), -1), bookend=False, pieces=lambda _: baca.mgroups(_, [3, 3 + 1]), selector=lambda _: baca.select.rleaves(_), ), )
commands( ("vc", (2, 3)), baca.hairpin( ">o", bookend=False, selector=lambda _: baca.select.rleaves(_), ), baca.text_spanner( "no scr. -> scr. poss. -> XFB =|", (abjad.Tweak(r"- \tweak bound-details.right.padding 1"), 0), (abjad.Tweak(r"- \tweak bound-details.right.padding 2.25"), -1), abjad.Tweak(r"- \tweak staff-padding 5.5"), bookend=False, pieces=lambda _: baca.select.lparts(_, [1, 1, 11]), selector=lambda _: baca.rleak(baca.lleak(abjad.select.leaves(_))), ), ) commands( ("vc", 4), baca.hairpin( 'o< "f" >', bookend=False, pieces=lambda _: baca.select.lparts(_, [1, 3]), selector=lambda _: baca.select.rleaves(_), ), baca.suite( baca.pitch("C#3"), baca.new( baca.repeat_tie_extra_offset((-1.5, 0)),
baca.text_spanner( "XFB =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), bookend=False, selector=lambda _: baca.select.rleaves(_), ), ) commands( ("vc", 7), baca.glissando( selector=lambda _: baca.select.lleak(baca.select.leaves(_)[:1]), ), baca.hairpin( "|> ppppp <| p |>o niente", pieces=lambda _: baca.select.lparts(_, [1, 1, 4]), selector=lambda _: baca.rleak(baca.lleak(abjad.select.leaves(_))), ), baca.suite( baca.pitches( "Gb2 Gb2 G4 Gb2", allow_repeats=True, ), baca.accidental_extra_offset( (-0.25, 0), selector=lambda _: abjad.select.leaf(_, -1), ), baca.glissando( selector=lambda _: baca.select.leaves(_)[-3:], zero_padding=True, ), baca.literal(
baca.finger_pressure_transition(), baca.hairpin("mp <| fff", ), baca.note_head_style_harmonic( selector=lambda _: abjad.select.leaf(_, -1), ), baca.pitch("E2"), baca.text_spanner( "RH vib. molto -> NV", abjad.Tweak(r"- \tweak staff-padding 8"), lilypond_id=1, ), baca.text_spanner( "no scr. -> scr. poss. -> XFB =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), bookend=False, pieces=lambda _: baca.select.lparts(_, [1, 1, 3]), selector=lambda _: baca.rleak(abjad.select.leaves(_), count=3), ), ) commands( ("vc", 3), baca.finger_pressure_transition( selector=lambda _: baca.select.lleak(baca.select.leaves(_)[:1]), ), baca.hairpin( "|> ppp <| p", pieces=lambda _: baca.select.lparts(_, [1, 2]), selector=lambda _: baca.select.lleak(baca.select.leaves(_)), ), baca.note_head_style_harmonic_black( selector=lambda _: abjad.select.leaf(_, 0), ), baca.pitch("E2"),
def vns_va(cache): accumulator( ["v1", "v2", "va"], baca.dls_staff_padding(5), baca.hairpin( "o< f >o", bookend=False, measures=(1, 12), pieces=lambda _: baca.select.mgroups(_, [8, 4]), ), baca.hairpin( "o< ff", measures=(13, 16), selector=lambda _: baca.rleak(abjad.select.leaves(_), count=2), ), baca.hairpin( ">o", bookend=False, measures=(17, 20), selector=lambda _: baca.select.leaves(_)[1:], ), baca.hairpin( "o< fff >o ! o< fff", measures=(21, 32), pieces=lambda _: baca.select.mgroups(_, [5, 3, 4]), ), ) accumulator( (["v1", "v2", "va"], (1, 8)), library.clouded_pane_spanner("clouded pane -|", 8), ) accumulator( (["v1", "v2", "va"], (9, 12)), # TODO: allow score-specific simultaneous material spanners # library.circle_spanner( # "intercalated ds cirles -|", 10.5, # ), library.urtext_spanner("urtext (ds) -|", 8), ) accumulator( (["v1", "v2", "va"], (13, 16)), library.clouded_pane_spanner( "clouded pane -|", 8, selector=lambda _: baca.rleak(abjad.select.leaves(_), count=2), ), ) accumulator( (["v1", "v2", "va"], (17, 20)), # TODO: allow score-specific simultaneous material spanners # library.circle_spanner( # "intercalated ds cirles -|", 10.5, # ), library.urtext_spanner( "urtext (ds) -|", 8, selector=lambda _: baca.select.rleak(baca.select.leaves(_)[1:]), ), ) accumulator( (["v1", "v2", "va"], (21, 25)), library.clouded_pane_spanner("clouded pane -|", 8), ) accumulator( (["v1", "v2", "va"], (26, 28)), # TODO: allow score-specific simultaneous material spanners # library.circle_spanner( # "intercalated ds cirles -|", 10.5, # ), library.urtext_spanner("urtext (ds) -|", 8), ) accumulator( (["v1", "v2", "va"], (29, 32)), library.clouded_pane_spanner("clouded pane -|", 8), )