def loop( items: baca.typing.Sequence, intervals: baca.typing.Sequence, selector=baca.selectors.plts(exclude=baca.const.HIDDEN), ) -> baca.PitchCommand: loop = Loop(items=items, intervals=intervals) return baca.pitches(loop, selector=selector)
def vc(m): accumulator( "vc", baca.hairpin( 'p < "f" -- "f" >o niente', # TODO: extend hairpin to phantom measure # following two lines should remain # pieces=lambda _: baca.select.mgroups(_, [5, 4, 2 + 1]), # selector=lambda _: baca.select.rleaves(_), # temporary: pieces=lambda _: baca.select.mgroups(_, [5, 4, 1 + 1]), selector=lambda _: baca.select.leaves(_), ), baca.half_clt_spanner( abjad.Tweak(rf"- \tweak staff-padding {6 + 6.5}"), # TODO: extend spanner to phantom measure selector=lambda _: baca.select.leaves(_), ), baca.markup( r"\baca-string-iii-markup", abjad.Tweak(r"- \tweak padding 1.5"), direction=abjad.DOWN, ), baca.note_head_style_harmonic( selector=lambda _: baca.select.pleaves(_)), ) accumulator( ("vc", (1, 6)), baca.beam(), baca.suite( baca.pitches("G2 B3 D3 C#4 F4"), baca.glissando(selector=lambda _: baca.select.rleaves(_), ), ), library.transition_bcps( final_spanner=True, staff_padding=6, ), ) accumulator( ("vc", (7, 11)), baca.clef("treble"), baca.flat_glissando("A5"), baca.markup( r"\stirrings-still-ninth-partial-markup", abjad.Tweak(r"- \tweak padding 1.5"), direction=abjad.DOWN, ), library.cello_cell_bcps(staff_padding=6, ), )
maker( ('perc', (1, 5)), baca.dynamic('pp-ancora'), ) pcs = baca.PitchClassSegment(krummzeit.violet_pitch_classes.get_payload()) pcs = pcs.rotate(-241).retrograde().transpose(7) maker( baca.timeline([ ('vn', (1, 13)), ('va', (1, 7)), ('vc', (1, 13)), ]), baca.pitches( pcs, selector=baca.plts(exclude=abjad.const.HIDDEN), ) ) maker( ('vn', (1, 13)), baca.dynamic('"mp"'), baca.glissando(), krummzeit.register_narrow(4), baca.markup( krummzeit.markup.on_bridge_slow(), ), ) maker( ('va', (1, 7)),
'ppp < ff', selector=baca.tleaves(), ), baca.pitch('B1'), ) maker( ('vc', (1, 9)), baca.dls_staff_padding(6), baca.hairpin('ff < fff'), baca.new( baca.glissando(), map=baca.runs(), ), baca.markup('subito ordinario'), baca.pitches('A1 B~1 C2 D+2 E+2 F2 Gb2 A~2 B2'), ) maker( ('va', (1, 9)), baca.pitches('Bb2 C~3 D3 E+3 F+3 G3'), ) maker( ('va', (1, 7)), baca.new( baca.glissando(), map=baca.runs(), ), baca.dls_staff_padding(6), baca.hairpin('ff < fff'),
music = baca.make_mmrests(commands.get(14), head=voice.name) voice.extend(music) # reapply commands( "vc", baca.reapply_persistent_indicators(), ) # vc commands( ("vc", 1), baca.suite( baca.pitches("F5 G3 A4 B2 C4 D2", ), baca.glissando(), ), baca.hairpin( "ppp < p > pp < mp > p < mf >", bookend=False, pieces=lambda _: baca.select.lparts(_, [1, 1, 1, 1, 1, 1]), ), baca.note_head_style_harmonic(), baca.tuplet_bracket_staff_padding(2), ) commands( ("vc", 2), baca.finger_pressure_transition(), baca.hairpin("mp <| fff", ),
def v2(m): accumulator( ("v2", (1, 2)), baca.markup( r"\baca-eleven-f-markup", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("Bqf3"), ) accumulator( ("v2", (6, 23)), baca.damp_spanner( abjad.Tweak(r"- \tweak staff-padding 8"), map=lambda _: abjad.select.get( abjad.select.partition_by_counts( baca.plts(_), [4, 1, 3, 1, 2, 1, 99], cyclic=True), [0], 2, ), ), 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("Bqf3"), map=lambda _: abjad.select.get(baca.select.plts(_), [1], 2), ), baca.pitch("Bqf3", allow_repitch=True), ) accumulator( ("v2", (24, 31)), library.multistage_leaf_glissando( [("Bqf3", 3), ("Eb4", 6), ("Db4", None)], "G4", rleak_final_stage=True, ), ) accumulator( ("v2", (32, 33)), baca.flat_glissando("G4"), ) accumulator( ("v2", (35, 40)), baca.hairpin( 'p < "mf"', bookend=False, pieces=lambda _: baca.select.mgroups(_, [4, 2]), ), baca.suite( library.bcps( -7, clt=True, staff_padding=4.5, ), baca.untie(lambda _: baca.select.leaves(_)), ), baca.tuplet_bracket_down(), library.multistage_leaf_glissando( [("G4", 7), ("G4", 12), ("A4", None)], "A4", ), ) accumulator( ("v2", (42, 53)), 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("Gb4"), ) accumulator( ("v2", (54, 61)), baca.breathe(), baca.hairpin( 'fff -- "fff" >o !', pieces=lambda _: baca.select.mgroups(_, [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( -7, clt=True, staff_padding=2.5, ), baca.flat_glissando("Dqf5"), ) accumulator( ("v2", (63, 77)), 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(), baca.tuplet_bracket_staff_padding(1), library.bcps( 0, clt=True, selector=measure_starts_plus_rest, staff_padding=4.5, ), ) accumulator( ("v2", (78, 80)), baca.hairpin( "o< mf -- !", abjad.Tweak(r"- \tweak to-barline ##t"), pieces=lambda _: baca.select.mgroups(_, [2, 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(_, [2, 1 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), library.flight_spanner("flight -|", 8), ) accumulator( ("v2", [(78, 80), (82, 85), (87, 88), (109, 110), (112, 119)]), baca.flat_glissando("<E5 Aqs5>"), ) accumulator( ("v2", (89, 100)), 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, 100), ), 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("Gb4"), ) accumulator( ("v2", (101, 108)), baca.breathe(), baca.hairpin( 'fff -- "fff" >o !', pieces=lambda _: baca.select.mgroups(_, [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( -7, clt=True, staff_padding=2.5, ), baca.flat_glissando("Dqf5"), )
bookend=False, selector=lambda _: baca.rleak(abjad.select.leaves(_)[-1:], count=2), ), baca.tuplet_bracket_staff_padding(1), ) commands( ("vc", 3), baca.hairpin( "ppppp <| f", selector=lambda _: baca.select.leaves(_)[1:-1], ), baca.note_head_style_harmonic( selector=lambda _: baca.select.leaves(_)[1:-2], ), baca.suite( baca.pitches("Eb4 G4 A3 G4 F4 G4 A3 G4 D4 D4"), baca.new( baca.repeat_tie(lambda _: baca.select.pleaf(_, 0), ), baca.repeat_tie_extra_offset((-1.5, 0)), selector=lambda _: abjad.select.leaf(_, 0), ), baca.new( baca.repeat_tie(lambda _: baca.select.pleaf(_, 0), ), selector=lambda _: abjad.select.leaf(_, -1), ), baca.glissando(selector=lambda _: baca.select.leaves(_)[1:-2], ), baca.finger_pressure_transition( selector=lambda _: baca.select.leaves(_)[:2], ), baca.finger_pressure_transition( selector=lambda _: baca.select.leaves(_)[-3:-1], ), ),
baca.markup( krummzeit.markup.stonecircle_scrape_at_moderate_speed(), boxed=True, ), baca.staff_position(0), ) maker( baca.timeline([ ('pf', (1, 11)), ('vn', (1, 11)), ('cl', (1, 11)), ]), baca.pitches( krummzeit.indigo_pitch_classes.get_payload(), allow_repeats=True, selector=baca.plts(exclude=abjad.const.HIDDEN), ) ) pcs = baca.PitchClassSegment(krummzeit.indigo_pitch_classes.get_payload()) pcs = pcs.transpose(1) maker( baca.timeline([ ('pf', (12, 22)), ('vn', (12, 22)), ('cl', (12, 22)), ]), baca.pitches( pcs, selector=baca.plts(exclude=abjad.const.HIDDEN),
), ), baca.hairpin( "o< f >", bookend=False, pieces=lambda _: baca.select.lparts(_, [1, 5]), ), baca.literal( r"\once \override Glissando.bound-details.right.end-on-accidental = ##f", selector=lambda _: abjad.select.leaf(_, -1), ), baca.note_head_transparent( selector=lambda _: baca.select.leaves(_)[-3:], ), baca.note_head_x_extent_zero( selector=lambda _: baca.select.leaves(_)[-3:], ), baca.suite( baca.pitches("F#3 B2 G3 A2"), baca.glissando( selector=lambda _: baca.select.leaves(_)[-4:], zero_padding=True, ), baca.glissando( abjad.Tweak(r"- \tweak bound-details.left.padding 0"), selector=lambda _: baca.select.rleak(baca.select.leaves(_)[-1:]), ), ), baca.text_spanner( "RH vib. =|", abjad.Tweak(r"- \tweak bound-details.right.padding -2"), abjad.Tweak(r"- \tweak staff-padding 10.5"), bookend=False, lilypond_id=1,
) maker( ('vn', (36, 42)), krummzeit.fused_expanse([(3, 2), (1, 1), (2, 1)]), ) pcs = baca.PitchClassSegment(krummzeit.violet_pitch_classes.get_payload()) pcs = pcs.rotate(-121).retrograde().transpose(3).invert() pcs_ = baca.sequence(pcs) pcs_ = pcs_.repeat_by([1, 1, 1, 1, 4, 1, 1, 1, 4, 4], cyclic=True) maker( ('ob', (1, 35)), baca.pitches( pcs_, allow_repeats=True, selector=baca.plts(exclude=abjad.const.HIDDEN), ), ) maker( ('ob', (1, 35)), baca.dynamic('ff'), baca.new( baca.trill_spanner(), map=baca.plts( exclude=abjad.const.HIDDEN).filter_preprolated('>=', (1, 4)), ), krummzeit.color_fingerings(), krummzeit.displacement(), krummzeit.register_wide(5),
maker( ('perc', (5, 6)), baca.dynamic('ff-sempre'), baca.accent(selector=baca.pheads()), ) pcs = baca.PitchClassSegment(krummzeit.violet_pitch_classes.get_payload()) pcs = pcs.rotate(-241).retrograde().transpose(8).invert() maker( baca.timeline([ ('vn', (3, 5)), ('va', (3, 5)), ('vc', (3, 5)), ]), baca.pitches(pcs), ) maker( (['vn', 'va', 'vc'], (3, 5)), baca.dynamic('ppp'), baca.new( baca.glissando(), map=baca.runs(), ), baca.note_head_style_harmonic(), ) maker( ('vn', (3, 5)), baca.suite(
# brass library.assign_brass_sforzando_parts(commands, omit_tuba=True) # horns commands( ("hn1", 1), library.downbeat_attack(), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.force_accidental()), baca.not_parts(baca.note_column_shift(1.7)), baca.not_parts(baca.voice_one()), baca.only_parts(baca.dynamic("sfz")), baca.pitches("A3 B3", ignore_incomplete=True, persist="seconds"), ) commands( ("hn3", 1), library.downbeat_attack(), baca.dynamic("sfz"), baca.not_parts(baca.voice_two()), baca.pitches("Ab3 Bb3", ignore_incomplete=True, persist="seconds"), ) commands( ("hn2", 1), library.downbeat_attack(), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.voice_one()),
music = baca.make_mmrests(commands.get(14), head=voice.name) voice.extend(music) # reapply commands( "vc", baca.reapply_persistent_indicators(), ) # vc commands( ("vc", 1), baca.suite( baca.pitches("D2 <Db2 A2> D2"), baca.glissando(), ), baca.hairpin( "ppp > pppp < ppp", pieces=lambda _: baca.select.lparts(_, [1, 2]), ), baca.note_head_style_harmonic_black(), baca.stem_tremolo(selector=lambda _: baca.select.leaves(_), ), baca.text_spanner( "I / II larg. =|", abjad.Tweak(r"- \tweak staff-padding 3"), bookend=False, selector=lambda _: baca.select.leaves(_)[-2:], ), )
# vc maker( '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.pitches('A1 Bb1'), baca.repeat_tie_to(), 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', ]),
# vc maker( '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.pitches('B1 C2'), baca.repeat_tie_to(), 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', ]),
library.attach_grand_pause_fermatas(commands, score, measure=3) library.attach_grand_pause_fermatas(commands, score, measure=8) # brass library.assign_brass_sforzando_parts(commands, omit_tuba=True) # horns commands( ("hn1", 1), library.downbeat_attack(), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.voice_one()), baca.only_parts(baca.dynamic("sfz")), baca.pitches("G3 A3", ignore_incomplete=True, persist="seconds"), ) commands( ("hn3", 1), library.downbeat_attack(), baca.dynamic("sfz"), baca.not_parts(baca.voice_two()), baca.pitches("Gb3 Ab3", ignore_incomplete=True, persist="seconds"), ) commands( ("hn2", 1), library.downbeat_attack(), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.voice_one()),
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(_)), )
(['vn', 'va', 'vc'], (1, 2)), baca.dynamic('fff'), baca.stem_tremolo( selector=baca.pleaves(exclude=abjad.const.HIDDEN), ), ) pcs = krummzeit.violet_pitch_classes.get_payload() pcs = baca.PitchClassSegment(pcs).rotate(-301).retrograde().transpose(10) maker( baca.timeline([ ('vn', (4, 8)), ('va', (4, 8)), ('vc', (4, 8)), ]), baca.pitches(pcs) ) maker( (['vn', 'va', 'vc'], (4, 8)), baca.new( baca.glissando(), map=baca.runs(), ), baca.hairpin( 'pp < ff', selector=baca.tleaves(), ), baca.markup('molto flautando'), baca.note_head_style_harmonic(), baca.repeat_tie_repeat_pitches(),
commands( ("vc", 4), baca.breathe(), baca.hairpin( "o< pp > ppp < f", pieces=lambda _: baca.select.lparts(_, [6, 6, 2]), selector=lambda _: baca.select.leaves(_), ), baca.note_head_extra_offset((-1.25, 0)), baca.note_head_transparent( selector=lambda _: baca.select.pleaves(_)[1:-1], ), baca.note_head_x_extent_zero( selector=lambda _: baca.select.pleaves(_)[:-1], ), baca.suite( baca.pitches("F2 A2 G2 B2 A2 C3 B2 D3 C3 E3 D3 F3 E2", ), baca.glissando( selector=lambda _: baca.select.leaves(_), zero_padding=True, ), ), baca.text_spanner( "RH vibr. strettiss. -> RH NV", abjad.Tweak(r"- \tweak bound-details.right.padding 7.25"), abjad.Tweak(r"- \tweak staff-padding 8"), lilypond_id=1, selector=lambda _: baca.select.leaves(_)[-2:], ), baca.text_spanner( "no scr. -> scr. poss.", abjad.Tweak(r"- \tweak bound-details.right.padding 8.25"),
commands( "vc", baca.reapply_persistent_indicators(), ) # vc commands( ("vc", 1), baca.hairpin( r"p > ppp <", pieces=lambda _: baca.select.lparts(_, [1, 1, 1, 1, 2]), ), baca.suite( baca.pitches("Eb2 B3 F2 A3 G2 F#3"), baca.glissando(), ), baca.text_spanner( r"\baca-circle-very-wide-markup =|", abjad.Tweak(r"- \tweak staff-padding 8"), bookend=False, lilypond_id=1, selector=lambda _: baca.select.leaves(_)[:5], ), baca.text_spanner( "spz. =|", abjad.Tweak(r"- \tweak staff-padding 8"), bookend=False, lilypond_id=1, selector=lambda _: baca.select.leaves(_)[4:6],
def va(m): accumulator( ("va", (1, 2)), baca.markup( r"\baca-five-f-markup", abjad.Tweak(r"- \tweak padding 1.5"), ), baca.flat_glissando("A3"), ) accumulator( ("va", (6, 23)), baca.damp_spanner( abjad.Tweak(r"- \tweak staff-padding 5.5"), map=lambda _: abjad.select.get( abjad.select.partition_by_counts( baca.plts(_), [4, 1, 3, 1, 2, 1, 99], cyclic=True), [0], 2, ), ), 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 3"), ), baca.flat_glissando("A3"), map=lambda _: abjad.select.get(baca.select.plts(_), [1], 2), ), baca.pitch("A3", allow_repitch=True), ) accumulator( ("va", (24, 31)), library.multistage_leaf_glissando( [("A3", 7), ("F4", 6), ("D4", None)], "Gb4", rleak_final_stage=True, ), ) accumulator( ("va", (32, 33)), baca.flat_glissando("Gb4"), ) accumulator( ("va", (35, 40)), baca.suite( 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.plts(_)[:-1], [1], 2), ), baca.new( baca.hairpin( "pp --", bookend=False, ), baca.xfb_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ), map=lambda _: baca.select.plts(_)[-1:], ), baca.dynamic( "!", selector=lambda _: baca.select.pleaf(_, -1), ), baca.flat_glissando("Gb4"), ), ) accumulator( ("va", (63, 76)), baca.clef("treble"), 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( ("va", (77, 80)), baca.hairpin( "o< mf -- !", abjad.Tweak(r"- \tweak to-barline ##t"), pieces=lambda _: baca.select.mgroups(_, [3, 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(_, [3, 1 + 1]), selector=lambda _: baca.select.rleaves(_), ), baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ), library.flight_spanner("flight -|", 8), ) accumulator( ("va", [(77, 80), (82, 85), (87, 88), (109, 110), (112, 119)]), baca.flat_glissando("<D5 Fqs5>"), ) accumulator( ("va", (87, 96)), baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ), baca.new( baca.clef("alto"), measures=89, ), )
music = library.make_piano_material("lh", library.circuit()) voice.extend(music) # vn commands( "vn", baca.instrument(commands.instruments["Violin"]), baca.instrument_name(r"\hijinks-violin-markup"), baca.clef("treble"), library.short_instrument_name("Vn."), baca.markup( r"\hijinks-pp-sempre-al-fino-markup", direction=abjad.DOWN, ), baca.pitches(library.violin_pitches()), baca.staccato(selector=_select_short_notes), baca.tenuto(selector=_select_long_notes), baca.beam_positions(-4), ) # rh commands( "rh", baca.instrument(commands.instruments["Piano"]), baca.instrument_name(r"\hijinks-piano-markup", context="PianoStaff"), library.short_instrument_name("Pf.", context="PianoStaff"), baca.clef("treble"), baca.markup( r"\hijinks-pp-sempre-al-fino-markup",
maker( ('cl', (16, 19)), baca.dynamic('ppp'), baca.pitch('B1'), ) pcs = baca.PitchClassSegment(krummzeit.indigo_pitch_classes.get_payload()) pcs = pcs.transpose(2) maker( baca.timeline([ ('pf', (4, 16)), ('ob', (1, 12)), ('cl', (1, 12)), ]), baca.pitches( pcs, selector=baca.plts(exclude=abjad.const.HIDDEN), ), ) maker( ('pf', (4, 16)), krummzeit.displacement(), ) maker( (['ob', 'cl'], (1, 12)), krummzeit.displacement(), ) maker( ('pf', (4, 9)),
commands( ("vc", 1), baca.instrument(commands.instruments["Cello"]), baca.instrument_name(r"\naehte-cello-markup"), baca.clef("bass"), baca.suite( baca.new( baca.repeat_tie( lambda _: baca.select.pleaf(_, 0), ), baca.repeat_tie_extra_offset((-1.5, 0)), selector=lambda _: abjad.select.leaf(_, -1), ), baca.pitches( "<G3 D4>" " <A3 E4>" " <C3 G3>" " <E3 B3>" " <D3 A3>" " <E4 B4>" " Eb4" ), baca.glissando( selector=lambda _: baca.select.leaves(_), zero_padding=True, ), ), baca.dls_staff_padding(7), baca.hairpin( "pp <| mf", ), baca.text_spanner( r"\baca-damp-markup =|", abjad.Tweak(r"- \tweak staff-padding 13"), bookend=False, lilypond_id=2,
maker( '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([
baca.new( baca.hairpin( "mp < ff", remove_length_1_spanner_start=True, ), map=baca.selectors.runs((1, None)), ), ) commands( "hn1", library.brass_manifest_rhythm(1), library.parts("Horn", 1), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.voice_one()), baca.pitches("A3 B3", persist="seconds"), crescendi, ) commands( "hn3", library.brass_manifest_rhythm(3), library.parts("Horn", 3), baca.not_parts(baca.voice_two()), baca.pitches("Ab3 Bb3", persist="seconds"), crescendi, ) commands( "hn2", library.brass_manifest_rhythm(2),
# vc commands( ("vc", 1), baca.hairpin( "o< pp > ppp < f", pieces=lambda _: baca.select.lparts(_, [6, 6, 2]), selector=lambda _: baca.select.rleaves(_), ), baca.note_head_extra_offset((-1.25, 0)), baca.note_head_transparent( selector=lambda _: baca.select.pleaves(_)[1:-1], ), baca.note_head_x_extent_zero( selector=lambda _: baca.select.pleaves(_)[:-1], ), baca.suite( baca.pitches("F2 A2 G2 B2 A2 C3 B2 D3 C3 E3 D3 F3 E2", ), baca.glissando( selector=lambda _: baca.select.leaves(_), zero_padding=True, ), ), baca.text_spanner( "RH vibr. strettiss. -> RH NV", abjad.Tweak(r"- \tweak staff-padding 8"), lilypond_id=1, selector=lambda _: baca.select.rleak(baca.select.leaves(_)[-1:]), ), baca.tuplet_bracket_padding(1.75), ) commands(
baca.hairpin( "mp < ff", selector=baca.selectors.run(2), ), ) # horns commands( "hn1", library.brass_manifest_rhythm(1), library.parts("Horn", 1), baca.not_parts(baca.dynamic_up()), baca.not_parts(baca.voice_one()), baca.pitches("G3 A3", persist="seconds"), crescendi(), ) commands( "hn3", library.brass_manifest_rhythm(3), library.parts("Horn", 3), baca.not_parts(baca.voice_two()), baca.pitches("Gb3 Ab3", persist="seconds"), crescendi(), ) commands( "hn2", library.brass_manifest_rhythm(2),