'vc', baca.mmrest_transparent(), baca.new( baca.bar_line_transparent(), baca.span_bar_transparent(), selector=baca.leaves(), ), baca.time_signature_stencil_false(), ) maker( ('vc', (8, 13)), baca.suite( baca.pitches('Bb1 Cb2'), baca.chunk( baca.repeat_tie_to(), baca.repeat_tie_extra_offset((-1.5, 0)), ), ), baca.rhythm("{ c'1 * 107/30 c'1 * 1/5 }"), ) maker( ('vc', 14), baca.chunk( baca.clef('treble'), baca.clef_shift('treble'), ), baca.literal([ r'\stopStaff', r"\once \override Staff.StaffSymbol.line-positions = #'(4 -4)" r'\startStaff',
baca.stem_down(), ) commands( library.lh_v5_i, baca.script_up(), baca.stem_up(), baca.beam_positions(9), ) commands( (library.rh_v1, -1), baca.chunk( baca.mark(r"\mraz-colophon-markup"), baca.rehearsal_mark_down(), baca.rehearsal_mark_padding(6), baca.rehearsal_mark_self_alignment_x(abjad.RIGHT), selector=lambda _: baca.select.rleaf(_, -1), ), ) defaults = baca.score_interpretation_defaults() del defaults["check_wellformedness"] if __name__ == "__main__": metadata, persist, score, timing = baca.build.interpret_section( score, commands, **defaults, activate=(baca.tags.LOCAL_MEASURE_NUMBER, ), always_make_global_rests=True,
def vns_va(cache): accumulator( (["v1", "v2", "va"], (1, 2)), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ), baca.hairpin( "p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.tasto_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), ) accumulator( (["v1", "v2", "va"], (4, 5)), baca.hairpin( "niente o<|", bookend=False, selector=lambda _: baca.select.tleaves(_, rleak=True), ), baca.new( baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), qualifier="wide", ), baca.markup( r"\baca-thirteen-b-flat", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("Gqf4"), match=0, ), baca.new( baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), qualifier="wide", ), baca.markup( r"\baca-seven-b-flat", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("Atqf3"), match=1, ), baca.new( baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), baca.markup( r"\baca-nine-b-flat", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("C3"), match=2, ), ) accumulator( (["v1", "v2", "va"], (6, 40)), baca.tasto_spanner( abjad.Tweak(r"- \tweak staff-padding 10.5"), match=[0, 1], ), baca.tasto_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), match=[2], ), ) # accumulator( # (["v1", "v2", "va"], (24, 31)), # baca.pitch_annotation_spanner( # "slight independent pitch ascents -|", # abjad.Tweak(r"- \tweak color #magenta"), # abjad.Tweak(r"- \tweak staff-padding 3"), # ), # ) accumulator( (["v1", "v2", "va"], (24, 33)), baca.new( baca.accent(), baca.dynamic("sfp"), baca.stem_tremolo(), map=lambda _: abjad.select.get(baca.select.plts(_), [0], 2), ), baca.new( baca.hairpin( "pp --", bookend=False, ), baca.xfb_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ), map=lambda _: abjad.select.get(baca.select.plts(_), [1], 2), ), ) accumulator( (["v1", "v2", "va"], 34), baca.chunk( baca.stop_on_string(selector=lambda _: baca.select.pleaf(_, -1), ), library.breathe(selector=lambda _: baca.select.pleaf(_, 1), ), ), baca.dynamic_text_self_alignment_x( -1, selector=lambda _: abjad.select.leaf(_, 2), ), baca.hairpin( "p <| mp p < mp", pieces=lambda _: baca.select.clparts(_, [1]), ), baca.new( baca.flat_glissando( "<E4 C5>", selector=lambda _: baca.select.pleaves(_)[:2], ), baca.flat_glissando( "<E4 Cqs5>", hide_middle_stems=True, selector=lambda _: baca.select.pleaves(_)[2:], ), match=0, ), baca.new( baca.flat_glissando( "<Eb4 B4>", selector=lambda _: baca.select.pleaves(_)[:2], ), baca.flat_glissando( "<Eqf4 C5>", hide_middle_stems=True, selector=lambda _: baca.select.pleaves(_)[2:], ), match=1, ), baca.new( baca.flat_glissando( "<D4 Gqs4>", selector=lambda _: baca.select.pleaves(_)[:2], ), baca.flat_glissando( "<C#4 Gqs4>", hide_middle_stems=True, selector=lambda _: baca.select.pleaves(_)[2:], ), match=2, ), ) accumulator( (["v1", "v2", "va"], (82, 85)), baca.hairpin( "ff > p < ff -- f > p < f --", bookend=False, final_hairpin=False, pieces=lambda _: baca.select.plts(_), ), baca.scp_spanner( "P -> T ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( (["v1", "v2", "va"], (87, 88)), baca.hairpin('"f" > p'), baca.scp_spanner( "P -> T ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( (["v1", "v2", "va"], (109, 110)), baca.damp_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), (abjad.Tweak(r"- \tweak bound-details.right.padding 7.75"), -1), ), baca.hairpin( "p -- !", # terminate at double bar: abjad.Tweak(r"- \tweak shorten-pair #'(0 . 3.5)"), abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.new( baca.scp_spanner( "P -> T ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), match=0, ), baca.new( baca.scp_spanner( "P -> T", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, bookend=True, selector=lambda _: baca.select.pleaves(_), ), match=1, ), baca.new( baca.scp_spanner( "P -> T ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), match=2, ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( (["v1", "v2", "va"], (112, 119)), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.hairpin( "p -- ! >o niente", pieces=lambda _: baca.select.mgroups(_, [4, 4 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.scp_spanner( "P -> T ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( (["v1", "v2", "va"], (116, 119)), baca.text_spanner( "trem. ord. -> larghiss. =|", abjad.Tweak(r"- \tweak staff-padding 10.5"), autodetect_right_padding=True, bookend=False, pieces=lambda _: baca.select.mgroups(_, [3, 1 + 1]), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( (["v1", "v1r", "v2", "v2r", "va", "var"], (120, 127)), baca.tacet(selector=lambda _: baca.select.mmrests(_)), )
'rh', baca.literal(r'\override DynamicLineSpanner.staff-padding = 7'), baca.stem_tremolo( selector=baca.pleaves(), ), baca.text_script_parent_alignment_x(0), baca.text_script_self_alignment_x(0), baca.text_script_staff_padding(4), ) maker( ('rh', 1), baca.chunk( baca.bar_extent_persistent((-4, 4)), baca.literal([ r'\once \override RHStaff.StaffSymbol.line-positions =' " #'(8.2 8 7.8 6 4 2 0 -2 -4 -5.8 -6 -6.2)" ]), baca.staff_lines(7), ), baca.make_monads('1/4 1/8 1/8'), baca.staff_positions( [6, 6, 4], allow_repeats=True, ), ) maker( ('rh', (1, 3)), # FUTURE: use this once LilyPond fixes DynamicLineSpanner bug: #baca.hairpin( # 'mp -- !',
def va_vc(cache): accumulator( (["va", "vc"], (42, 49)), baca.breathe(), 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( "p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("va", (42, 49)), baca.flat_glissando("B3"), ) accumulator( ("vc", (42, 49)), baca.flat_glissando("C3"), ) accumulator( (["va", "vc"], (50, 61)), baca.breathe(), baca.hairpin( 'ff < fff -- "fff" > "f"', pieces=lambda _: baca.select.mgroups(_, [4, 4, 4]), ), baca.half_clt_spanner( abjad.Tweak(r"- \tweak staff-padding 10"), measures=(58, 61), ), baca.new( baca.tuplet_bracket_down(), library.bcps( -6, clt=True, staff_padding=2.5, ), baca.chunk( library.multistage_leaf_glissando( [("Ab3", 6), ("F3", 6), ("Gb3", None)], "E3", measures=(50, 53), rleak_final_stage=True, ), baca.new( baca.flat_glissando("E3"), measures=(54, 61), ), ), match=0, ), baca.new( baca.tuplet_bracket_down(), library.bcps( -5, clt=True, staff_padding=2.5, ), baca.chunk( library.multistage_leaf_glissando( [("Ab3", 3), ("F3", 2), ("G3", 6), ("Eb3", 3), ("Gb3", None)], "D3", measures=(50, 53), rleak_final_stage=True, ), baca.new( baca.flat_glissando("D3"), measures=(54, 61), ), ), match=1, ), ) accumulator( (["va", "vc"], (89, 96)), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), baca.damp_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), match=1, ), baca.dynamic_text_self_alignment_x( -0.75, selector=lambda _: baca.select.pleaf(_, 0), ), baca.hairpin( "p-ancora -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( (["va", "vc"], (89, 96)), baca.new( baca.breathe(), baca.flat_glissando("B3"), match=0, ), baca.new( baca.breathe( lambda _: abjad.select.leaf(_, -1), abjad.Tweak(r"\tweak extra-offset #'(-1 . 0)"), ), baca.flat_glissando("C3"), match=1, ), ) accumulator( (["va", "vc"], (97, 108)), baca.breathe(), baca.hairpin( 'o< fff -- "fff" >o !', pieces=lambda _: baca.select.mgroups(_, [4, 4, 4 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(r"- \tweak staff-padding 10"), measures=(105, 108), ), baca.new( baca.tuplet_bracket_down(), library.bcps( -6, clt=True, staff_padding=2.5, ), baca.chunk( library.multistage_leaf_glissando( [("Ab3", 6), ("F3", 6), ("Gb3", None)], "E3", measures=(97, 100), rleak_final_stage=True, ), baca.new( baca.flat_glissando("E3"), measures=(101, 108), ), ), match=0, ), baca.new( baca.tuplet_bracket_down(), library.bcps( -5, clt=True, staff_padding=2.5, ), baca.chunk( library.multistage_leaf_glissando( [("Ab3", 3), ("F3", 2), ("G3", 6), ("Eb3", 3), ("Gb3", None)], "D3", measures=(97, 100), rleak_final_stage=True, ), baca.new( baca.flat_glissando("D3"), measures=(101, 108), ), ), match=1, ), )
def v1(m): accumulator( ("v1", (1, 2)), baca.markup( r"\baca-seven-f-markup", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("Etqf4"), ) accumulator( ("v1", (6, 23)), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.new( baca.accent(), baca.dynamic("sfp"), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_)), map=lambda _: abjad.select.get(baca.select.plts(_), [0], 2), ), baca.suite( baca.hairpin( "pp --", bookend=False, ), baca.xfb_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ), baca.flat_glissando("Etqf4"), map=lambda _: abjad.select.get(baca.select.plts(_), [1], 2), ), baca.pitch("Etqf4", allow_repitch=True), ) accumulator( ("v1", (24, 31)), library.multistage_leaf_glissando( [("Etqf4", 4), ("F4", 4), ("E4", 4), ("Gb4", 4), ("F4", None)], "Ab4", rleak_final_stage=True, ), ) accumulator( ("v1", (32, 33)), baca.flat_glissando("Ab4"), ) accumulator( ("v1", (35, 40)), baca.hairpin( 'p < "mf"', bookend=False, pieces=lambda _: baca.select.mgroups(_, [4, 2]), ), baca.suite( library.bcps( -8, clt=True, staff_padding=4.5, ), baca.untie(lambda _: baca.select.leaves(_)), ), baca.tuplet_bracket_down(), baca.flat_glissando("Ab4"), ) accumulator( ("v1", (42, 49)), baca.breathe(), 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( "p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.flat_glissando("Bb5"), ) accumulator( ("v1", (50, 61)), baca.breathe(), baca.hairpin( 'o< fff -- "fff" >o !', pieces=lambda _: baca.select.mgroups(_, [4, 4, 4 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(r"- \tweak staff-padding 10"), measures=(58, 61), ), baca.tuplet_bracket_down(), library.bcps( -8, staff_padding=2.5, clt=True, ), baca.chunk( library.multistage_leaf_glissando( [("Ab4", 3), ("C5", 2), ("B4", 6), ("Db5", 3), ("C5", None)], "Eb5", measures=(50, 53), rleak_final_stage=True, ), baca.new( baca.flat_glissando("Eb5"), measures=(54, 61), ), ), ) accumulator( ("v1", (63, 78)), baca.hairpin( '"ff" > p', measures=(63, 70), selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(rf"- \tweak staff-padding {4.5 + 6.5}"), ), baca.pitches("D5 F5 Dqs5 E5 Fqs5 G#5 A5 F5 Aqs5"), baca.tuplet_bracket_down(), library.bcps( 0, clt=True, selector=measure_starts_plus_rest, staff_padding=4.5, ), ) accumulator( ("v1", (79, 80)), baca.hairpin( "o< mf -- !", abjad.Tweak(r"- \tweak to-barline ##t"), pieces=lambda _: baca.select.mgroups(_, [1, 1 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.scp_spanner( "T -> poco P =|", abjad.Tweak(r"- \tweak staff-padding 5.5"), bookend=False, pieces=lambda _: baca.select.mgroups(_, [1, 1 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), library.flight_spanner("flight -|", 8), ) accumulator( ("v1", [(79, 80), (82, 85), (87, 88), (109, 110), (112, 119)]), baca.flat_glissando("<Dqs5 G#5>"), ) accumulator( ("v1", (89, 96)), baca.breathe(), baca.circle_bow_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), qualifier="wide", ), baca.damp_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), measures=(87, 96), ), baca.dynamic_text_self_alignment_x( -0.75, selector=lambda _: baca.select.pleaf(_, 0), ), baca.hairpin( "p-ancora -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.flat_glissando("Bb5"), ) accumulator( ("v1", (97, 108)), baca.chunk( library.multistage_leaf_glissando( [("Ab4", 3), ("C5", 2), ("B4", 6), ("Db5", 3), ("C5", None)], "Eb5", measures=(97, 100), rleak_final_stage=True, ), baca.new( baca.flat_glissando("Eb5"), measures=(101, 108), ), ), baca.hairpin( 'o< fff -- "fff" >o !', pieces=lambda _: baca.select.mgroups(_, [4, 4, 4 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(r"- \tweak staff-padding 10"), measures=(105, 108), ), baca.tuplet_bracket_down(), library.bcps( -8, clt=True, staff_padding=2.5, ), library.breathe(), )
def vc(m): accumulator( "vc", baca.clef("bass"), ) accumulator( ("vc", (1, 5)), baca.hairpin( "niente o< mp -- !", pieces=lambda _: baca.select.mgroups(_, [3, 2 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.flat_glissando( "Ab2", hide_middle_stems=True, ), ) accumulator( ("vc", 6), baca.chunk( baca.beam(), baca.note_head_style_harmonic(selector=lambda _: baca.select.pleaves(_)), baca.pitches("C#4 F4 G2 B3 D3"), baca.glissando(), ), baca.hairpin( "p <", bookend=False, selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(rf"- \tweak staff-padding {6 + 6.5}"), ), library.transition_bcps( staff_padding=6, ), ) accumulator( ("vc", (7, 8)), baca.hairpin( "mp -- !", selector=lambda _: baca.select.rleaves(_), ), baca.markup( r"\baca-string-iv-markup", abjad.Tweak(r"- \tweak padding 1.5"), direction=abjad.DOWN, ), baca.bow_speed_spanner( "flaut. -> ord.", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, bookend=-1, selector=lambda _: baca.select.leaves(_), ), ) accumulator( ("vc", (7, 31)), baca.note_head_style_harmonic(selector=lambda _: baca.select.pleaves(_)), baca.suite( baca.untie(lambda _: abjad.select.leaf(_, 1)), baca.pitch( "Ab2", selector=lambda _: baca.select.pleaf(_, 0), ), baca.finger_pressure_transition(), ), library.clouded_pane_spanner("clouded pane -|", 8), ) accumulator( ("vc", (8, 31)), baca.flat_glissando( "Gb2", hide_middle_stems=True, ), ) accumulator( ("vc", (9, 16)), baca.hairpin( "(mp) < ff", selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("vc", (9, 27)), baca.text_spanner( "no overpressure -> molto overpressure =|" " (molto) -> no overpressure.", abjad.Tweak(r"- \tweak staff-padding 5.5"), pieces=lambda _: baca.select.mgroups(_, [8, 6, 5 + 1]), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("vc", (23, 31)), baca.dynamic_text_self_alignment_x( -1, selector=lambda _: baca.select.pleaf(_, 0), ), baca.hairpin( "(ff) > ppp -- !", abjad.Tweak(r"- \tweak to-barline ##t"), pieces=lambda _: baca.select.mgroups(_, [5, 4 + 1]), selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("vc", (38, 46)), baca.hairpin( "ppp -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.flat_glissando( "Gb2", hide_middle_stems=True, selector=lambda _: baca.select.rleaves(_), stop_pitch="Db2", ), ) accumulator( ("vc", (47, 51)), baca.hairpin( "(ppp) < p -- !", abjad.Tweak(r"- \tweak to-barline ##t"), pieces=lambda _: baca.select.mgroups(_, [3, 2 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.half_clt_spanner( abjad.Tweak(r"- \tweak staff-padding 10.5"), ), baca.tuplet_bracket_down(), library.bcps( -4, clt=True, staff_padding=3, ), baca.flat_glissando("Db2"), ) accumulator( ("vc", [52, 55]), baca.hairpin( "o< f -- !", pieces=lambda _: baca.select.lparts(_, [1, 2]), selector=lambda _: baca.select.rleaves(_), match=0, ), baca.hairpin( "f -- ! >o !", match=1, pieces=lambda _: baca.select.lparts(_, [1, 2]), selector=lambda _: baca.select.rleaves(_), ), baca.pitch("B1"), library.clouded_pane_spanner("clouded pane (pane / urtext) -|", 8), ) accumulator( (["vc", "vcr"], 56), baca.tacet(selector=lambda _: baca.select.mmrests(_)), )
('cl', (1, 40)), baca.make_repeat_tied_notes(), ) maker( 'pf', baca.clef('treble'), baca.make_repeat_tied_notes(), ) maker( 'perc', baca.chunk( baca.bar_extent_persistent( (-2, 2), tag=baca.const.NOT_PARTS, ), baca.staff_lines(5), ), baca.clef('treble'), baca.make_repeat_tied_notes(), ) maker( ('vn', (1, 40)), krummzeit.closing_pizzicati( counts=[2, 4, 4, 8, 4, 4, 2, 1, 1, 8, 8, 8], extra_counts_per_division=[2, 2, 1, 2, 4, 6], split_divisions_by_counts=[6, 18], ) )
def vc(m): accumulator( ("vc", (1, 10)), baca.chunk( baca.dots_transparent(), baca.stem_transparent(selector=lambda _: baca.select.pleaves(_)), ), library.clouded_pane_spanner("clouded pane -|", 8), ) accumulator( ("vc", (1, 22)), baca.flat_glissando("Bb1"), ) accumulator( ("vc", (6, 8)), baca.hairpin( "(fff) > p", selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("vc", (11, 12)), baca.half_clt_spanner( abjad.Tweak(rf"- \tweak staff-padding {3 + 6}"), ), library.cello_cell_bcps(staff_padding=3, ), ) accumulator( ("vc", (13, 22)), baca.new( baca.dots_transparent(), baca.stem_transparent(), selector=lambda _: baca.select.leaves(_)[:-1], ), ) accumulator( ("vc", [(13, 22), (37, 38)]), library.clouded_pane_spanner("clouded pane -|", 8), ) accumulator( ("vc", (17, 22)), baca.hairpin( "(p) >o", bookend=False, selector=lambda _: baca.select.rleaves(_), ), ) accumulator( ("vc", (23, 28)), baca.accent(selector=lambda _: baca.select.pheads(_), ), baca.hairpin( "f < ff >", pieces=lambda _: abjad.select.partition_by_counts( baca.plts(_)[:-1], [2], cyclic=True), ), baca.scp_spanner( "O -> P ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( ("vc", [(23, 28), (30, 35)]), baca.flat_glissando("<B2 Gqs3>"), baca.new( baca.markup( r"\stirrings-still-twenty-four-et-markup", abjad.Tweak(r"- \tweak padding 1.5"), ), match=0, ), library.urtext_spanner("urtext (field) -|", 8), ) accumulator( ("vc", 29), baca.hairpin( "mp -- !", abjad.Tweak(r"- \tweak to-barline ##t"), selector=lambda _: baca.select.rleaves(_), ), baca.markup( r"\baca-string-iii-markup", abjad.Tweak(r"- \tweak padding 1.5"), direction=abjad.DOWN, ), baca.pitch("G2"), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( ("vc", (30, 35)), baca.accent(selector=lambda _: baca.select.pheads(_), ), baca.hairpin( "ff < fff >", pieces=lambda _: abjad.select.partition_by_counts( baca.plts(_)[:-1], [2], cyclic=True), ), baca.scp_spanner( "O -> P ->", abjad.Tweak(r"- \tweak staff-padding 5.5"), autodetect_right_padding=False, pieces=lambda _: baca.select.plts(_)[:-1], ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), ) accumulator( ("vc", (37, 38)), baca.flat_glissando("B1"), baca.hairpin( "p -- ! >o niente", pieces=lambda _: baca.select.cmgroups(_, ), selector=lambda _: baca.select.rleaves(_), ), baca.tasto_spanner(abjad.Tweak(r"- \tweak staff-padding 3"), ), baca.text_spanner( "slow bow -> stopped", abjad.Tweak(r"- \tweak bound-details.right.padding 11"), abjad.Tweak(r"- \tweak staff-padding 5.5"), selector=lambda _: baca.select.rleaves(_), ), )
'Global_Skips', baca.metronome_mark(baca.Accelerando(), selector=baca.leaf(8 - 1)), baca.metronome_mark('72/108', selector=baca.leaf(25 - 1)), baca.metronome_mark('72', selector=baca.leaf(27 - 1)), baca.metronome_mark('4.=4', selector=baca.leaf(27 - 1)), baca.metronome_mark(baca.Accelerando(), selector=baca.leaf(27 - 1)), baca.metronome_mark('108', selector=baca.leaf(35 - 1)), baca.rehearsal_mark('D'), ) maker( ('perc', (1, 3)), baca.chunk( baca.bar_extent_persistent( (0, 2), after=True, tag=baca.const.NOT_PARTS, ), baca.staff_lines(1), ), baca.markup('tam-tam', boxed=True), krummzeit.incise_attacks(), ) maker( [ ('vn', (1, 13)), ('va', (1, 7)), ('vc', (1, 13)), ], krummzeit.right_remainder_quarters(), )
) maker( ('vc', (1, 51)), baca.tuplet_bracket_staff_padding(3), ) maker( ('vc', 8), baca.suite( baca.untie_to( selector=baca.pleaf(-1), ), baca.chunk( baca.repeat_tie_to(), baca.repeat_tie_extra_offset((-1.5, 0)), selector=baca.pleaf(-1), ), ), ) maker( ('vc', 20), baca.repeat_tie_to(), ) maker( ('vc', 48), baca.repeat_tie_to(), )
commands( ["rh", "lh"], baca.staccato(selector=_select_short_notes), baca.tenuto(selector=_select_long_notes), baca.tuplet_bracket_shorten_pair( (0, 0.6), selector=lambda _: abjad.select.tuplet(abjad.select.top(_), -1), ), ) commands( "lh", baca.chunk( baca.mark(r"\hijinks-colophon-markup"), baca.rehearsal_mark_down(), baca.rehearsal_mark_extra_offset((-7, -7)), baca.rehearsal_mark_padding(0), baca.rehearsal_mark_self_alignment_x(abjad.RIGHT), selector=lambda _: abjad.select.leaf(_, -1), ), ) if __name__ == "__main__": defaults = baca.score_interpretation_defaults() del defaults["append_anchor_skip"] metadata, persist, score, timing = baca.build.interpret_section( score, commands, **defaults, always_make_global_rests=True, deactivate=( baca.tags.EXPLICIT_SHORT_INSTRUMENT_NAME_ALERT,
# vcr maker( ('vcr', 2), baca.mmrest_transparent(), ) # rh maker( 'rh', baca.chunk( baca.bar_extent_persistent((-4, 4)), baca.literal([ r'\once \override RHStaff.StaffSymbol.line-positions =' " #'(8.2 8 7.8 -5.8 -6 -6.2 -8 -10 -12 -14 -16 -17.8 -18 -18.2)", r"\morleyDashedStaffSymbolLines #'(" " #f #f #f #f #f #f #t #t #t #t #t #f #f #f)", ]), baca.staff_lines(14), ), baca.literal(r'\override DynamicLineSpanner.staff-padding = 7'), baca.markup( r'\huitzil-ascending-fingerboard-markup', abjad.tweak(-1).self_alignment_X, abjad.tweak(4.5).staff_padding, literal=True, ), baca.markup( r'\huitzil-directly-above-end-of-fingerboard-markup', abjad.tweak(-1).self_alignment_X, abjad.tweak(1).staff_padding,
# vcr maker( ('vcr', 1), baca.mmrest_transparent(), ) # rh maker( 'rh', baca.alternate_bow_strokes(), baca.chunk( baca.bar_extent_persistent((-4, 4)), baca.literal([ r'\once \override RHStaff.StaffSymbol.line-positions =' " #'(8.2 8 7.8 -5.8 -6 -6.2)" ]), baca.staff_lines(7), ), baca.dynamic( 'mp-sempre', abjad.tweak(-0.9).self_alignment_X, ), baca.literal(r'\override DynamicLineSpanner.staff-padding = 2.5'), baca.literal(r'\override Score.BarNumber.transparent = ##t'), baca.markup( r'\huitzil-directly-on-bridge-markup', abjad.tweak(3).staff_padding, literal=True, ), baca.staff_position(8),
extra_counts=[4, 0, 2, 4, 6], ), ) maker( ('cl', (69, 75)), krummzeit.white_rhythm([(3, 8)]), ) maker( ('vn', (72, 75)), baca.chunk( baca.bar_extent((-2, 2)), baca.bar_extent_persistent( (-2, 0), after=True, tag=baca.const.NOT_PARTS, ), baca.staff_lines(1), ), baca.clef('percussion'), baca.dynamic('mf'), baca.instrument(krummzeit.instruments['Percussion']), baca.make_repeat_tied_notes(), baca.markup( krummzeit.markup.stonecircle_scrape_at_moderate_speed(), boxed=True, ), baca.staff_position(0), )
baca.span_bar_transparent(), selector=baca.leaves(), ), baca.time_signature_stencil_false(), ) # rh maker( 'rh', baca.only_segment( baca.chunk( baca.literal(r'\override DynamicLineSpanner.staff-padding = 7'), baca.literal([ r'\stopStaff', r'\once \override RHStaff.StaffSymbol.line-positions =' " #'(8.2 8 7.8 6 4 2 0 -2 -4 -5.8 -6 -6.2)", r'\startStaff', ]), ), ), baca.stem_tremolo( selector=baca.pleaves(), ), baca.text_script_parent_alignment_x(0), baca.text_script_self_alignment_x(0), baca.text_script_staff_padding(4), ) maker( ('rh', 1),
"pf1", ): commands( (voice, 1), baca.tag( abjad.Tag("+TABLOID_SCORE"), baca.literal(r"\magnifyStaff #10/7"), ), ) commands( ("perc4", -1), baca.chunk( baca.mark(r"\animales-colophon-markup"), baca.rehearsal_mark_down(), baca.rehearsal_mark_padding(6), baca.rehearsal_mark_self_alignment_x(abjad.Right), selector=baca.selectors.rleaf(-1), ), ) if __name__ == "__main__": metadata, persist, score, timing = baca.build.interpret_segment( score, commands, **baca.score_interpretation_defaults(), all_music_in_part_containers=True, always_make_global_rests=True, error_on_not_yet_pitched=True, final_segment=True, transpose_score=True,