Пример #1
0
def v1_va_vc(cache):
    accumulator(
        (["v1", "va", "vc"], (3, 4)),
        baca.hairpin(
            "pp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.new(
            baca.flat_glissando("<F#4 Dqf5>"),
            baca.markup(r"\stirrings-still-seven-plus-nine-of-e-markup"),
            baca.tasto_spanner(
                abjad.Tweak(r"- \tweak staff-padding 5.5"),
            ),
            match=0,
        ),
        baca.new(
            baca.flat_glissando("<B2 Aqs3>"),
            baca.markup(
                r"\stirrings-still-eleven-plus-three-of-e-markup",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            baca.tasto_spanner(
                abjad.Tweak(r"- \tweak staff-padding 5.5"),
            ),
            match=1,
        ),
        baca.new(
            baca.flat_glissando("E2"),
            match=2,
        ),
        baca.tuplet_bracket_down(),
        library.clouded_pane_spanner("clouded pane (beacon) -|", 8),
    )
Пример #2
0
def va(m):
    accumulator(
        ("va", (1, 7)),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide-poss",
        ),
        baca.flat_glissando("Bqf3"),
        baca.hairpin(
            "mp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            measures=(1, 3),
            selector=lambda _: baca.select.rleak(baca.select.ltleaves(_)),
        ),
        baca.markup(
            r"\baca-seven-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
    accumulator(
        ("va", (10, 11)),
        baca.flat_glissando(
            "<Eqs4 Gtqs4>",
            hide_middle_stems=True,
            right_broken=True,
        ),
        baca.markup(
            r"\stirrings-still-twenty-four-et-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
Пример #3
0
def v1(m):
    accumulator(
        ("v1", 5),
        baca.dynamic("mp"),
        baca.markup(
            r"\stirrings-still-twelve-et-conflicts-with-viola-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.pitch("<F4 A4>"),
        library.urtext_spanner("urtext (ds) -|", 8),
    )
    accumulator(
        ("v1", [(12, 23), (30, 59)]),
        baca.pitch("Bqf5"),
    )
    accumulator(
        ("v1", (24, 27)),
        baca.flat_glissando("Bqf5"),
    )
    accumulator(
        ("v1", (28, 29)),
        baca.flat_glissando("<F#4 Dqf5>"),
        baca.hairpin(
            "pp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\stirrings-still-seven-plus-nine-of-e-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.tasto_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ),
        library.clouded_pane_spanner("clouded pane (beacon) -|", 8),
    )
    accumulator(
        ("v1", (36, 59)),
        baca.suite(
            baca.new(
                baca.tie(lambda _: baca.select.lleaf(_, 0)),
                measures=56,
            ),
            baca.articulations([
                abjad.Articulation("baca-damp"),
                abjad.Articulation("baca-double-diamond"),
                abjad.Articulation("baca-damp"),
                None,
            ], ),
            baca.new(
                baca.note_head_style_harmonic(
                    selector=lambda _: baca.select.pleaves(_)),
                map=lambda _: abjad.select.get(baca.select.plts(_), [3], 4),
            ),
        ),
    )
    accumulator(
        ("v1", (71, 76)),
        baca.tuplet_bracket_down(),
        baca.tuplet_bracket_staff_padding(1.25),
    )
Пример #4
0
def va(m):
    accumulator(
        ("va", 5),
        baca.dynamic("mp"),
        baca.markup(
            r"\stirrings-still-nine-plus-seven-of-b-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.pitch("<Aqf3 C#4>"),
        library.clouded_pane_spanner("clouded (partial: stopped) -|", 8),
    )
    accumulator(
        ("va", [(12, 23), (30, 59)]),
        baca.pitch("Bqf3"),
    )
    accumulator(
        ("va", (24, 27)),
        baca.flat_glissando("Bqf3"),
    )
    accumulator(
        ("va", (28, 29)),
        baca.flat_glissando("<B2 Aqs3>"),
        baca.hairpin(
            "pp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\stirrings-still-eleven-plus-three-of-e-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.tasto_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ),
        library.clouded_pane_spanner("clouded pane (beacon) -|", 8),
    )
    accumulator(
        ("va", (36, 59)),
        baca.suite(
            baca.new(
                baca.tie(lambda _: baca.select.lleaf(_, 0)),
                measures=56,
            ),
            baca.articulations([
                abjad.Articulation("baca-damp"),
                abjad.Articulation("baca-double-diamond"),
                abjad.Articulation("baca-double-diamond"),
                abjad.Articulation("baca-damp"),
                None,
            ], ),
            baca.new(
                baca.note_head_style_harmonic(
                    selector=lambda _: baca.select.pleaves(_)),
                map=lambda _: abjad.select.get(baca.select.plts(_), [4], 5),
            ),
        ),
    )
    accumulator(
        ("va", (71, 76)),
        baca.tuplet_bracket_staff_padding(0.5),
    )
Пример #5
0
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, ),
    )
Пример #6
0
def va(m):
    accumulator(
        ("va", (1, 6)),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="granulation",
        ),
        baca.flat_glissando("G3"),
        baca.hairpin(
            '"mf" -- !',
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
    accumulator(
        ("va", 7),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
        ),
        baca.flat_glissando("Bqf3"),
        baca.hairpin(
            "mf >o niente",
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\baca-seven-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
Пример #7
0
def v1(m):
    accumulator(
        ("v1", (1, 7)),
        baca.beam(),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
        ),
        baca.flat_glissando(
            "Aqs4",
            left_broken=True,
        ),
    )
    accumulator(
        ("v1", (10, 11)),
        baca.flat_glissando(
            "<F4 A4>",
            hide_middle_stems=True,
            right_broken=True,
        ),
        baca.markup(
            r"\stirrings-still-twelve-et-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
Пример #8
0
def v2(m):
    accumulator(
        ("v2", [1, 3, 7, 9, 11, 14]),
        baca.dynamic("mp"),
        baca.new(
            baca.markup(
                r"\stirrings-still-twelve-et-conflicts-with-viola-markup",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            match=0,
        ),
        baca.pitch("<E4 G#4>"),
        baca.tasto_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
        library.urtext_spanner("urtext (double stop) -|", 8),
    )
    accumulator(
        ("v2", (12, 13)),
        baca.alternate_bow_strokes(),
        baca.damp_spanner(
            abjad.Tweak(r"- \tweak staff-padding 8"),
        ),
        baca.hairpin(
            "mp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.half_clt_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
        baca.pitch("F5"),
    )
Пример #9
0
def v2(m):
    accumulator(
        "v2",
        baca.dls_staff_padding(6),
        baca.note_head_style_harmonic(
            selector=lambda _: baca.select.pleaves(_)),
        baca.tuplet_bracket_down(),
    )
    accumulator(
        ("v2", [1, (3, 4), (6, 8), (10, 15)]),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 3"),
            qualifier="wide",
        ),
        baca.dynamic_text_self_alignment_x(
            0.75,
            selector=lambda _: baca.select.pleaf(_, -1),
        ),
        baca.flat_glissando("F4"),
        baca.hairpin(
            "ppp < p >",
            pieces=lambda _: baca.select.cmgroups(_, ),
        ),
        baca.new(
            baca.markup(
                r"\baca-string-iv-markup",
                direction=abjad.DOWN,
            ),
            match=0,
        ),
    )
Пример #10
0
def va_stage_2(m):
    accumulator(
        ("va", [65, (67, 89)]),
        baca.flat_glissando("<B2 Aqs3>"),
        baca.markup(
            r"\stirrings-still-eleven-plus-three-of-e-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
    accumulator(
        ("va", (94, 96)),
        baca.flat_glissando("A3"),
        baca.markup(
            r"\baca-five-f-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
Пример #11
0
def va(m):
    accumulator(
        "va",
        baca.clef("alto"),
    )
    accumulator(
        ("va", (1, 5)),
        baca.flat_glissando(
            "Ab3",
            hide_middle_stems=True,
        ),
    )
    accumulator(
        ("va", (1, 6)),
        baca.hairpin(
            "niente o< mp -- !",
            pieces=lambda _: baca.select.mgroups(_, [3, 3 + 1]),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
    accumulator(
        ("va", 6),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="very-wide",
        ),
        baca.markup(
            r"\baca-seven-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.pitch("Bqf3"),
    )
    accumulator(
        ("va", (7, 14)),
        baca.hairpin(
            "p -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
    accumulator(
        ("va", (15, 16)),
        baca.flat_glissando("B3"),
    )
    accumulator(
        ("va", [(30, 31), (38, 40), (42, 45)]),
        baca.flat_glissando("B4"),
    )
    accumulator(
        ("va", (52, 55)),
        baca.tasto_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
    )
    accumulator(
        (["va", "var"], 56),
        baca.tacet(selector=lambda _: baca.select.mmrests(_)),
    )
Пример #12
0
def v1(m):
    accumulator(
        ("v1", (1, 5)),
        baca.flat_glissando(
            "Gb4",
            hide_middle_stems=True,
        ),
    )
    accumulator(
        ("v1", (1, 6)),
        baca.hairpin(
            "niente o< mp -- !",
            pieces=lambda _: baca.select.mgroups(_, [3, 3 + 1]),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
    accumulator(
        ("v1", 6),
        baca.beam(),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
        ),
        baca.markup(
            r"\baca-thirteen-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.flat_glissando("Aqs4"),
    )
    accumulator(
        ("v1", (7, 14)),
        baca.hairpin(
            "p -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
    accumulator(
        ("v1", (15, 16)),
        baca.flat_glissando("Bb4"),
    )
    accumulator(
        ("v1", [(30, 31), (38, 40), (42, 45)]),
        baca.flat_glissando(
            "Db5",
            stop_pitch="B4",
        ),
    )
    accumulator(
        ("v1", (52, 55)),
        baca.tasto_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
    )
Пример #13
0
def vns(cache):
    accumulator(
        (["v1", "v2"], 56),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
            # TODO: allow spanner to run to end of section
            # selector=lambda _: baca.select.rleaves(_),
            selector=lambda _: baca.select.leaves(_),
        ),
        baca.hairpin(
            "mp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleak(baca.select.ltleaves(_)),
        ),
        baca.new(
            baca.beam(),
            baca.markup(
                r"\baca-thirteen-d-flat",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            baca.flat_glissando(
                "Aqs4",
                right_broken=True,
            ),
            match=0,
        ),
        baca.new(
            baca.markup(
                r"\baca-nine-d-flat",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            baca.flat_glissando(
                "Eb4",
                right_broken=True,
            ),
            match=1,
        ),
    )
Пример #14
0
def v2_stage_2(m):
    accumulator(
        ("v2", [65, (67, 89)]),
        baca.flat_glissando("<Cqs4 Ab4>"),
        baca.markup(
            r"\stirrings-still-five-plus-thirteen-of-e-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
    accumulator(
        ("v2", [(90, 92), (94, 96)]),
        baca.suite(
            baca.new(
                baca.markup(
                    r"\stirrings-still-nine-plus-eleven-of-f-markup",
                    abjad.Tweak(r"- \tweak padding 1.5"),
                ),
                baca.untie(lambda _: baca.select.pleaf(_, 0), ),
                match=0,
            ),
            baca.flat_glissando("<Bqf3 G4>", allow_repitch=True),
        ),
    )
Пример #15
0
def v1_stage_2(m):
    accumulator(
        ("v1", [65, (67, 89)]),
        baca.flat_glissando("<F#4 Dqf5>"),
        baca.markup(
            r"\stirrings-still-seven-plus-nine-of-e-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
    )
    accumulator(
        ("v1", [(90, 92), (94, 96)]),
        baca.suite(
            baca.new(
                baca.markup(
                    r"\stirrings-still-three-plus-seven-of-f-markup",
                    abjad.Tweak(r"- \tweak padding 1.5"),
                ),
                baca.untie(lambda _: baca.select.pleaf(_, 0), ),
                match=0,
            ),
            baca.flat_glissando("<Etqf4 C5>", allow_repitch=True),
        ),
    )
Пример #16
0
def tremolo_suite():
    return baca.suite(
        baca.accent(selector=baca.selectors.pleaves()),
        baca.dynamic("ff-ancora"),
        baca.hairpin(
            "ff > pp",
            selector=baca.selectors.pleaves((2, -2)),
        ),
        baca.only_parts(
            baca.markup(r"\animales-ext-ponticello-like-acid-markup"), ),
        baca.text_spanner(
            "ext. pont. => tasto",
            selector=baca.selectors.pleaves((2, -2)),
        ),
        baca.stem_tremolo(selector=baca.selectors.pleaves()),
    )
Пример #17
0
def v1(m):
    accumulator(
        ("v1", [1, 3, 7, 9, 11, 14]),
        baca.dynamic("mp"),
        baca.new(
            baca.markup(
                r"\stirrings-still-twelve-et-conflicts-with-viola-markup",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            match=0,
        ),
        baca.pitch("<F4 A4>"),
        baca.tasto_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
        library.urtext_spanner("urtext (double stop) -|", 8),
    )
Пример #18
0
def v2(m):
    accumulator(
        ("v2", 5),
        baca.dynamic("mp"),
        baca.markup(
            r"\stirrings-still-twelve-et-conflicts-with-viola-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.pitch("<E4 G#4>"),
        library.urtext_spanner("urtext (ds) -|", 8),
    )
    accumulator(
        ("v2", [(12, 23), (30, 59)]),
        baca.pitch("Bb4"),
    )
    accumulator(
        ("v2", (24, 27)),
        baca.flat_glissando("Bb4"),
    )
    accumulator(
        ("v2", (28, 29)),
        baca.alternate_bow_strokes(),
        baca.damp_spanner(abjad.Tweak(r"- \tweak staff-padding 8"), ),
        baca.hairpin(
            "mp -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.half_clt_spanner(abjad.Tweak(r"- \tweak staff-padding 5.5"), ),
        baca.pitch("F5"),
    )
    accumulator(
        ("v2", (36, 59)),
        baca.suite(
            baca.new(
                baca.tie(lambda _: baca.select.lleaf(_, 0)),
                measures=56,
            ),
            baca.articulations([
                abjad.Articulation("baca-damp"),
                abjad.Articulation("baca-damp"),
                abjad.Articulation("baca-double-diamond"),
            ], ),
        ),
    )
Пример #19
0
def attach_grand_pause_fermatas(maker, score, *, measure=-1):
    assert isinstance(maker, baca.CommandAccumulator)
    for voice in abjad.iterate.components(score, abjad.Voice):
        markup = abjad.Markup(r'\markup \musicglyph #"scripts.ufermata"')
        markup_command = baca.markup(
            markup,
            selector=baca.selectors.leaf(0),
        )
        string = r"\once \override Score.MultiMeasureRest.transparent = ##t"
        literal_1 = baca.literal(string)
        string = r"\once \override Score.TimeSignature.stencil = ##f"
        literal_2 = baca.literal(string)
        maker(
            (voice.name, measure),
            baca.only_parts(markup_command),
            baca.only_parts(literal_1),
            baca.only_parts(literal_2),
        )
Пример #20
0
def v1(m):
    accumulator(
        ("v1", (1, 6)),
        baca.pitch("D5"),
    )
    accumulator(
        ("v1", (7, 18)),
        baca.pitch("Dqs5"),
    )
    accumulator(
        ("v1", (19, 30)),
        baca.pitch("Eb5"),
    )
    accumulator(
        ("v1", 57),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide-poss",
        ),
        baca.flat_glissando("Bb4"),
        baca.markup(
            r"\baca-string-iv-markup",
            abjad.Tweak(r"- \tweak padding 1.5"),
            direction=abjad.DOWN,
        ),
        baca.new(
            baca.dynamic_text_self_alignment_x(
                1,
                selector=lambda _: baca.select.pleaf(_, -1),
            ),
            baca.hairpin("pp < mp"),
        ),
        baca.note_head_style_harmonic(
            selector=lambda _: baca.select.pleaves(_)),
    )
    accumulator(
        ("v1", (86, 92)),
        baca.scp_spanner(
            "T -> P -> T -> P =|",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            pieces=lambda _: baca.select.lparts(_, [1, 2, 1, 4 + 1]),
            selector=lambda _: baca.select.rleaves(_),
        ),
    )
Пример #21
0
def vns_va(cache):
    accumulator(
        ["v1", "v2", "va"],
        baca.tuplet_bracket_down(),
    )
    accumulator(
        (["v1", "v2", "va"], (5, 6)),
        baca.dynamic_text_self_alignment_x(
            -0.75,
            selector=lambda _: abjad.select.leaf(_, 0),
        ),
        baca.hairpin(
            "appena-udibile -- !",
            abjad.Tweak(r"- \tweak to-barline ##t"),
            abjad.Tweak(r"- \tweak self-alignment-X -0.75"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.new(
            baca.flat_glissando(
                "<F4 A4>",
                hide_middle_stems=True,
            ),
            match=0,
        ),
        baca.new(
            baca.flat_glissando(
                "<E4 G#4>",
                hide_middle_stems=True,
            ),
            match=1,
        ),
        baca.new(
            baca.flat_glissando(
                "<Eqs4 Gtqs4>",
                hide_middle_stems=True,
            ),
            baca.markup(
                r"\stirrings-still-twenty-four-et-markup",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            match=2,
        ),
        library.urtext_spanner("urtext (ds field) -|", 8),
    )
Пример #22
0
def va(m):
    accumulator(
        ("va", [1, 3, 7, 9, 11, 14]),
        baca.dynamic("mp"),
        baca.new(
            baca.markup(
                r"\stirrings-still-nine-plus-seven-of-b-markup",
                abjad.Tweak(r"- \tweak padding 1.5"),
            ),
            match=0,
        ),
        baca.pitch("<Aqf3 C#4>"),
        baca.tasto_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
        ),
        library.clouded_pane_spanner("clouded pane (partial) -|", 8),
    )
    accumulator(
        ("va", 19),
        baca.clef("treble"),
    )
Пример #23
0
def v2(m):
    accumulator(
        ("v2", (1, 8)),
        baca.flat_glissando(
            "<G4 Dqs5>",
            hide_middle_stems=True,
        ),
        baca.hairpin(
            "pp < f > pp < f > pp < f >o niente",
            pieces=lambda _: baca.select.mgroups(_, [2, 1, 2, 1, 1, 2]),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\baca-seven-plus-five-e-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        library.clouded_pane_spanner(
            "clouded pane (doublestop partials) -|",
            8,
        ),
    )
Пример #24
0
def tutti(cache):
    accumulator(
        ["v1", "v2", "va", "vc"],
        baca.dls_staff_padding(6),
    )
    accumulator(
        (["v1", "v2", "va", "vc"], 11),
        baca.markup(
            r"\stirrings-still-third-time-no-breath-markup",
            abjad.Tweak(r"- \tweak staff-padding 3"),
        ),
    )
    accumulator(
        (["v1", "v2", "va", "vc"], 13),
        baca.new(
            library.breathe(),
            match=[0, 1, 2],
        ),
        baca.new(
            baca.breathe(),
            match=3,
        ),
    )
Пример #25
0
# percussion

commands(
    [
        ("perc1", (3, 6)),
        ("perc2", (3, 6)),
    ],
    baca.dynamic("p"),
    baca.make_repeat_tied_notes(),
    baca.staff_position(0),
    baca.stem_tremolo(selector=baca.selectors.pleaves()),
)

commands(
    ("perc1", (3, 6)),
    baca.markup(r"\animales-triangle-small-beater-markup"),
)

commands(
    ("perc2", (3, 6)),
    baca.markup(r"\animales-suspended-cymbal-markup"),
)

commands(
    "perc1",
    library.margin_markup("Perc. 1 (tri.)"),
    library.parts("Percussion", 1),
)

commands(
    "perc2",
Пример #26
0
def battuti(
        maker,
        counts,
        *,
        first=False,
        omit_contrabasses=False,
        range_=(1, -1),
):
    section_to_members = {
        "First.Violin": 18,
        "Second.Violin": 18,
        "Viola": 18,
        "Cello": 14,
        "Contrabass": 6,
    }

    section_to_abbreviation = {
        "First.Violin": "Vni. I",
        "Second.Violin": "Vni. II",
        "Viola": "Vle.",
        "Cello": "Vc.",
        "Contrabass": "Cb.",
    }

    def upper_voice():
        return baca.suite(baca.not_parts(baca.voice_one()),
                          baca.staff_position(1))

    def lower_voice():
        return baca.suite(baca.not_parts(baca.voice_two()),
                          baca.staff_position(-1))

    duration = sum([_.duration for _ in maker.time_signatures])
    assert isinstance(duration, abjad.Duration), repr(duration)
    wrap = duration.with_denominator(16).numerator
    for section, members in section_to_members.items():
        if omit_contrabasses and section == "Contrabass":
            continue
        for member in range(1, members + 1):
            commands = []
            voice = f"{section}.Voice.{member}"
            maker(voice, parts(section, member))
            rhythm = clb_rhythm(section, member, counts, wrap)
            commands.append(rhythm)
            if member % 2 == 0:
                polyphony = lower_voice()
            else:
                polyphony = upper_voice()
            if first:
                markup = abjad.Markup(
                    r"\animales-col-legno-battuti-explanation")
                command: baca.CommandTyping
                command = baca.markup(
                    markup,
                    selector=baca.selectors.leaf(0),
                )
                command = baca.only_parts(command)
                commands.append(command)
                command = baca.staff_lines(1)
                commands.append(command)
                command = baca.clef("percussion")
                commands.append(command)
            if first and member % 2 == 1:
                abbreviation = section_to_abbreviation[section]
                key = f"{abbreviation} ({member}-{member+1})"
                margin_markup_ = margin_markup(key)
                commands.append(margin_markup_)
            commands.append(polyphony)
            maker((voice, range_), *commands)
Пример #27
0
    baca.finger_pressure_transition(
        selector=lambda _: baca.select.lleak(baca.select.leaves(_)[:1]), ),
)

commands(
    ("vc", (12, 13)),
    baca.accent(selector=lambda _: abjad.select.get(baca.select.leaves(
        _), [0, 2, 3, 5, 6, 8, 9, 11, 12, 14, 15, 17]), ),
    baca.hairpin(
        "pppp -- pppp >o niente",
        abjad.Tweak(r"- \tweak to-barline ##t"),
        pieces=lambda _: baca.select.lparts(_, [14, 8]),
        selector=lambda _: baca.select.rleaves(_),
    ),
    baca.markup(
        r"\naehte-degrees-of-ponticello-markup",
        abjad.Tweak(r"- \tweak staff-padding 8"),
    ),
    baca.new(
        baca.note_head_x_extent_zero(),
        baca.note_head_transparent(),
        selector=lambda _: baca.select.leaves(_)[1:],
    ),
    baca.suite(
        baca.glissando(
            (abjad.Tweak(r"- \tweak bound-details.right.padding 2.75"), -1),
            allow_repeats=True,
            zero_padding=True,
        ),
        baca.interpolate_pitches("D2", "D2"),
        selector=lambda _: baca.select.rleaves(_),
    ),
Пример #28
0
            ),
        ),
    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.make_monads('1/8  1/8  1/8  1/8'),
    baca.markup(
        r'\baca-ffz-markup',
        direction=abjad.Down,
        literal=True,
        selector=baca.leaves(),
        ),
    baca.staff_positions(
        [-6, -4, -2, 0],
        allow_repeats=True,
        ),
    )

maker(
    ('rh', 2),
    baca.make_monads('1/2'),
    baca.markup(
        r'\baca-ffz-markup',
        direction=abjad.Down,
        literal=True,
Пример #29
0
    )

maker(
    'Global_Rests',
    baca.global_fermata('short', selector=baca.leaf(2 - 1)),
    baca.global_fermata('short', selector=baca.leaf(4 - 1)),
    baca.global_fermata('short', selector=baca.leaf(6 - 1)),
    baca.global_fermata('short', selector=baca.leaf(8 - 1)),
    baca.global_fermata('long', selector=baca.leaf(13 - 1)),
    )

maker(
    ('perc', (1, 9)),
    baca.dynamic('ppp-ancora'),
    baca.make_repeat_tied_notes(),
    baca.markup('snare drum', boxed=True),
    baca.staff_position(0),
    baca.stem_tremolo(selector=baca.pleaves()),
    )

maker(
    ('pf', [1, 3, 5]),
    krummzeit.silver_points(
        [(2, 3)],
        tuplet_ratios=[(1, -1, 1, 3), (1, -1, 1, 2, 2)],
        ),
    )

maker(
    ('vn', [5, 7, 9]),
    krummzeit.silver_points(
Пример #30
0
    #    'mp -- !',
    #    abjad.tweak(True).to_barline,
    #    selector=baca.leaves().rleak(),
    #    ),
    # FUTURE: replace this once LilyPond fixes DynamicLineSpanner bug:
    baca.chunk(
        baca.dynamic('mp'),
        baca.hairpin(
            'mp -- !',
            abjad.tweak(True).to_barline,
            selector=baca.leaves()[1:].rleak(),
            ),
        ),
    baca.markup(
        r'\baca-mfz-markup',
        direction=abjad.Down,
        literal=True,
        selector=baca.leaves(),
        ),
    )

maker(
    ('rh', 2),
    baca.make_monads('1/4  1/8  1/6'),
    baca.staff_positions(
        [6, 6, 4],
        allow_repeats=True,
        ),
    )

maker(
    ('rh', 3),
Пример #31
0
def va(m):
    accumulator(
        ("va", (1, 2)),
        baca.half_clt_spanner(
            abjad.Tweak(rf"- \tweak staff-padding {4 + 6.5}"), ),
        library.bcps(
            -2,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("va", (1, 2)),
        library.multistage_leaf_glissando(
            [("D4", 6), ("A3", None)],
            "B3",
        ),
    )
    accumulator(
        ("va", (3, 4)),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 8"),
            qualifier="wide-poss",
        ),
        baca.text_spanner(
            r"\baca-diamond-markup -> \baca-black-diamond-markup => ord. ||",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=True,
            bookend=False,
            pieces=library.rleaves_partition_by_ratio((1, 1, 1)),
        ),
        baca.flat_glissando("Bqf3"),
    )
    accumulator(
        ("va", (5, 11)),
        baca.dynamic(
            '"mf"',
            abjad.Tweak(r"- \tweak X-extent #'(0 . 0)"),
            abjad.Tweak(r"- \tweak extra-offset #'(-3 . 0)"),
        ),
        library.style_tailpiece_material(
            abjad.Tweak(r"- \tweak bound-details.right.Y 0"),
            abjad.Tweak(r"- \tweak bound-details.right.padding 1.5"),
        ),
    )
    accumulator(
        ("va", [(12, 13), (16, 17)]),
        baca.half_clt_spanner(
            abjad.Tweak(rf"- \tweak staff-padding {4 + 6.5}"), ),
        library.bcps(
            -3,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("va", (12, 17)),
        baca.hairpin(
            "p < mp",
            selector=lambda _: baca.select.rleaves(_),
        ),
        library.multistage_leaf_glissando(
            [("B3", 2), ("A3", 4), ("C4", 4), ("Ab3", 7), ("B3", None)],
            "G#3",
            rleak_final_stage=True,
        ),
    )
    accumulator(
        ("va", (14, 15)),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
    )
    accumulator(
        ("va", (18, 20)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.breathe(),
        baca.markup(
            r"\baca-five-e",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
        baca.flat_glissando("G#3"),
    )
    accumulator(
        ("va", 21),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="tight",
        ),
        baca.dynamic_text_self_alignment_x(
            -0.75,
            selector=lambda _: baca.select.pleaf(_, 0),
        ),
        baca.hairpin(
            '"ff" -- !',
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\baca-seven-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.flat_glissando("Bqf3"),
    )
    accumulator(
        (["va", "var"], 22),
        baca.tacet(selector=lambda _: baca.select.mmrests(_)),
    )
    accumulator(
        ("va", 23),
        baca.breathe(),
        baca.dynamic_text_self_alignment_x(
            -0.75,
            selector=lambda _: baca.select.pleaf(_, 0),
        ),
        baca.hairpin('"ff" > mf'),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
        ),
        baca.flat_glissando("Bqf3"),
    )
    accumulator(
        ("va", (24, 31)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.breathe(),
        baca.dynamic("p"),
        baca.markup(
            r"\baca-five-e-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
        baca.scp_spanner(
            "T -> P ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
        baca.flat_glissando("G3"),
    )
    accumulator(
        ("va", (32, 37)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
        baca.text_spanner(
            "trem. ord. -> larg. =| trem. larg. -> larghiss. =|"
            " trem. larghiss. -> no trem.",
            abjad.Tweak(r"- \tweak bound-details.right.padding 1.5"),
            abjad.Tweak(r"- \tweak staff-padding 8"),
            bookend=False,
            final_piece_spanner=False,
            lilypond_id=1,
            pieces=lambda _: baca.select.cmgroups(_, [1, 1, 2, 1, 1, 1]),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.scp_spanner(
            "T -> P ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
    )
    accumulator(
        ("va", (32, 53)),
        baca.markup(
            r"\baca-five-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.flat_glissando("F3"),
    )
    accumulator(
        ("va", (38, 42)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.text_spanner(
            r"\baca-null-markup || \baca-damp-markup =|",
            abjad.Tweak(r"- \tweak staff-padding 8"),
            autodetect_right_padding=True,
            bookend=False,
            final_piece_spanner=False,
            lilypond_id=1,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
        baca.scp_spanner(
            "T1 -> T3 -> T2 -> T3 ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
    )
    accumulator(
        ("va", (43, 45)),
        baca.hairpin(
            '"mf" -- !',
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.half_clt_spanner(
            abjad.Tweak(rf"- \tweak staff-padding {4 + 6.5}"), ),
        library.bcps(
            -2,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("va", (46, 53)),
        baca.damp_spanner(
            abjad.Tweak(r"- \tweak staff-padding 8"),
            # TODO: allow spanner to extend to phantom measure
            selector=lambda _: baca.select.leaves(_),
        ),
        baca.hairpin("p >o niente"),
        baca.scp_spanner(
            "T poss. =|",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            # TODO: allow spanner to extend to phantom measure
            selector=lambda _: baca.select.leaves(_),
        ),
    )
Пример #32
0
maker(
    'Global_Skips',
    baca.metronome_mark(
        '78',
        selector=baca.leaf(1 - 1),
        ),
    )

# vc

maker(
    ('vc', 1),
    baca.markup(
        r'\huitzil-phrasing-dynamics-see-preface-markup',
        abjad.tweak(9).staff_padding,
        direction=abjad.Down,
        literal=True,
        ),
    baca.rhythm(music_),
    )

maker(
    ('vc', (1, 51)),
    baca.tuplet_bracket_staff_padding(3),
    )

maker(
    ('vc', 8),
    baca.suite(
        baca.untie_to(
            selector=baca.pleaf(-1),
Пример #33
0
    krummzeit.polyphony(
        durations=[(4, 16), (3, 16), (4, 16), (2, 16)],
        rotation=-1,
        fuse=(1, 8),
        denominators=[8, 8, 16, 16, 16, 16],
        extra_counts=[0, 4, 3, 1],
        initial_eighth_notes=True,
        ties=[0, 1, 1, 0, 0, 1],
        ),
    )

maker(
    ('cl', (5, 7)),
    baca.instrument(krummzeit.instruments['ClarinetInEFlat']),
    baca.markup(
        krummzeit.e_flat_clarinet_markup(),
        boxed=True,
        ),
    krummzeit.margin_markup('Cl. (Eb)'),
    )

maker(
    ('cl', [(5, 11), (16, 36)]),
    krummzeit.polyphony(
        durations=[(3, 8), (4, 8), (2, 8), (4, 8)],
        rotation=-1,
        fuse=(1, 8),
        denominators=[4, 4, 4, 8],
        extra_counts=[3, 1, 0, 4],
        ties=[0, 1, 0, 1, 1, 0],
        ),
    )
Пример #34
0
maker(
    ('pf', (1, 6)),
    krummzeit.opening_triplets(),
    )

maker(
    ('perc', (5, 6)),
    baca.chunk(
        baca.bar_extent_persistent(
            (-2, 2),
            tag=baca.const.NOT_PARTS,
            ),
        baca.staff_lines(5),
        ),
    baca.clef('treble'),
    baca.markup('crotale', boxed=True),
    baca.pitch('D5'),
    krummzeit.left_remainder_quarters(dmask=abjad.index([0])),
    )

maker(
    [
        ('ob', (4, 7)),
        ('cl', (4, 5)),
        ],
    baca.make_repeat_tied_notes(),
    )

maker(
    ('cl', 4),
    baca.instrument(krummzeit.instruments['ClarinetInEFlat']),
Пример #35
0
maker(
    baca.timeline([
        ('vn', (1, 40)),
        ('va', (1, 40)),
        ]),
    baca.pitches(
        pcs,
        selector=baca.plts(exclude=abjad.const.HIDDEN),
        ),
    )

maker(
    (['vn', 'va'], (1, 40)),
    baca.dynamic('ff'),
    baca.dls_staff_padding(5),
    baca.markup('pizz.'),
    baca.staccatissimo(
        selector=baca.pheads(exclude=abjad.const.HIDDEN),
        ),
    baca.tuplet_bracket_staff_padding(2),
    krummzeit.displacement(),
    krummzeit.register_narrow(6),
    )

maker(
    ('vc', (1, 24)),
    baca.pitches('D4 D4 D4 D4 D4 D4 D2'),
    )

maker(
    ('vc', (25, 48)),
Пример #36
0
        dmask=abjad.index([2, 3], 7),
        ),
    )

maker(
    ('cl', (4, 5)),
    baca.dynamic('ppp'),
    baca.make_repeat_tied_notes(),
    baca.pitch('B1'),
    )

maker(
    ('pf', 4),
    baca.dynamic('fff'),
    baca.markup(
        krummzeit.markup.catch_resonance(),
        ),
    krummzeit.clusters('tenor'),
    krummzeit.single_cluster_piano_rhythm(),
    )

maker(
    ('pf', 7),
    baca.clef('treble'),
    baca.dynamic('fff-poss'),
    baca.make_repeat_tied_notes(),
    baca.pitch('C#5'),
    baca.stem_tremolo(selector=baca.pleaves()),
    )

maker(
Пример #37
0
        baca.bar_line_transparent(),
        baca.span_bar_transparent(),
        selector=baca.leaves(),
        ),
    baca.pitch(
        'A1',
        selector=baca.leaves().rleak()[-1],
        ),
    baca.time_signature_stencil_false(),
    )

maker(
    ('vc', 1),
    baca.markup(
        baca.markups.string_number(3),
        abjad.tweak(2.5).padding,
        direction=abjad.Down,
        ),
    baca.pitch('A2'),
    baca.rhythm("{ c'1 * 1/4 }"),
    )

maker(
    ('vc', (14, 24)),
    baca.rhythm("{ c'1 * 19/8 }"),
    baca.suite(
        baca.pitch('A2'),
        baca.repeat_tie_to(),
        ),
    )
Пример #38
0
    baca.hairpin("mp < mf"),
    baca.make_repeat_tied_notes(),
    baca.edition("solo (cl. 2)", "solo"),
    baca.pitch("Db5"),
)

# harp

commands(
    "hp1",
    library.parts("Harp"),
    library.harp_exchange_rhythm(2, silence_first=True),
    baca.dynamic("mf"),
    baca.laissez_vibrer(selector=baca.selectors.ptails()),
    baca.edition(
        baca.markup(r"\animales-lh-damped-pdlt-markup"),
        baca.markup(r"\animales-lh-damped-pdlt-explanation-markup"),
    ),
    baca.pitch("D5"),
    baca.stopped(selector=baca.selectors.pheads()),
)

# piano

commands(
    "pf1",
    library.parts("Piano"),
    library.harp_exchange_rhythm(3, silence_first=True),
    baca.dynamic("mf"),
    baca.laissez_vibrer(selector=baca.selectors.ptails()),
    baca.markup(r"\animales-mute-with-lh-inside-piano-dull-thud-markup"),
Пример #39
0
            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, 10)),
    baca.markup(
        r'\baca-mpz-markup',
        direction=abjad.Down,
        literal=True,
        ),
    baca.hairpin(
        'mp > pp <',
        abjad.tweak(True).to_barline,
        final_hairpin=False,
        pieces=baca.clparts([1]),
        ),
    )

maker(
    ('rh', (1, 12)),
    baca.make_monads('1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2 3/2'),
    baca.repeat_tie_to(
        selector=baca.pleaves()[1:],
Пример #40
0
accumulator = mraz.MusicAccumulator(mraz.ScoreTemplate())
collection_maker = mraz.CollectionMaker()
collections_2 = collection_maker.make_segment_2_collections()
collections_4 = collection_maker.make_segment_4_collections()
collections_5 = collection_maker.make_segment_5_collections()
collections_6 = collection_maker.make_segment_6_collections()
collections_7 = collection_maker.make_segment_7_collections()
collections_8 = collection_maker.make_segment_8_collections()

##################################### [_] #####################################

accumulator(
    'rh_v1',
    collections_4['stage 5']['rh'][2],
    baca.allow_octaves(),
    baca.markup('(ottava brackets always govern all voices on staff)'),
    baca.register(36),
    baca.tenuto(selector=baca.pheads()),
    counts=[16],
    figure_name='b.1.1',
    hide_time_signature=True,
    )

accumulator(
    'rh_v2',
    collections_4['stage 5']['lh'][:4],
    baca.anchor_to_figure('b.1.1'),
    baca.dls_staff_padding(8),
    baca.hairpin('f < ff'),
    baca.ottava(),
    baca.register(10, 36),
Пример #41
0
    baca.metronome_mark(baca.Accelerando(), selector=baca.leaf(11 - 1)),
    baca.metronome_mark('144', selector=baca.leaf(19 - 1)),
    baca.rehearsal_mark('F'),
    )

maker(
    (['va', 'vc'], (2, 6)),
    krummzeit.rest_delimited_repeated_duration_notes((1, 4), 32),
    )

maker(
    ('perc', 1),
    baca.clef('percussion'),
    baca.markup(
        'snare drum',
        boxed=True,
        selector=baca.leaf(0),
        ),
    )

maker(
    ('perc', [(2, 3), (5, 9), 13, 16]),
    baca.make_repeat_tied_notes(),
    baca.staff_position(0),
    )

maker(
    ('perc', (19, 22)),
    baca.make_repeated_duration_notes(
        [(1, 2)],
        do_not_rewrite_meter=True,
Пример #42
0
def v2(m):
    accumulator(
        ("v2", (1, 2)),
        baca.half_clt_spanner(
            abjad.Tweak(rf"- \tweak staff-padding {4 + 6.5}"), ),
        library.bcps(
            -1,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("v2", (1, 2)),
        library.multistage_leaf_glissando(
            [("C#5", 4), ("E5", 2), ("D5", None)],
            "Eb5",
        ),
    )
    accumulator(
        ("v2", (3, 4)),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 8"),
            qualifier="wide-poss",
        ),
        baca.text_spanner(
            r"\baca-diamond-markup -> \baca-black-diamond-markup => ord. ||",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=True,
            bookend=False,
            pieces=library.rleaves_partition_by_ratio((1, 1, 1)),
        ),
        baca.flat_glissando("Bb4"),
    )
    accumulator(
        ("v2", (5, 8)),
        library.bcps(
            -1,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("v2", [(5, 9), 13, (15, 16)]),
        baca.half_clt_spanner(
            abjad.Tweak(rf"- \tweak staff-padding {4 + 6.5}"), ),
    )
    accumulator(
        ("v2", (5, 16)),
        library.multistage_leaf_glissando(
            [
                ("Eb5", 4),
                ("F5", 9),
                ("B4", 5),
                ("Db5", 5),
                ("C5", 5),
                ("E5", 5),
                ("D5", None),
            ],
            "F#5",
            rleak_final_stage=True,
        ),
    )
    accumulator(
        ("v2", [9, 13, (15, 16)]),
        library.bcps(
            -3,
            clt=True,
            staff_padding=4,
        ),
    )
    accumulator(
        ("v2", [10, (11, 12), 14, 17]),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
    )
    accumulator(
        ("v2", (17, 20)),
        baca.markup(
            r"\baca-nine-e",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.flat_glissando("F#5"),
    )
    accumulator(
        ("v2", (18, 20)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.breathe(),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
    )
    accumulator(
        ("v2", 21),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="tight",
        ),
        baca.dynamic_text_self_alignment_x(
            -0.75,
            selector=lambda _: baca.select.pleaf(_, 0),
        ),
        baca.hairpin(
            '"ff" -- !',
            abjad.Tweak(r"- \tweak to-barline ##t"),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.markup(
            r"\baca-nine-d-flat",
            abjad.Tweak(r"- \tweak padding 1.5"),
        ),
        baca.flat_glissando("Eb4"),
    )
    accumulator(
        (["v2", "v2r"], 22),
        baca.tacet(selector=lambda _: baca.select.mmrests(_)),
    )
    accumulator(
        ("v2", 23),
        baca.breathe(),
        baca.dynamic_text_self_alignment_x(
            -0.75,
            selector=lambda _: baca.select.pleaf(_, 0),
        ),
        baca.hairpin('"ff" > mf'),
        baca.circle_bow_spanner(
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            qualifier="wide",
        ),
        baca.flat_glissando("Eb4"),
    )
    accumulator(
        ("v2", (24, 31)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.breathe(),
        baca.dynamic("p"),
        baca.markup(
            r"\baca-nine-e-flat",
            abjad.Tweak(r"- \tweak padding 0.5"),
        ),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
        baca.scp_spanner(
            "T -> P ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
        baca.flat_glissando("F5"),
    )
    accumulator(
        ("v2", (32, 37)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.stem_tremolo(selector=lambda _: baca.select.pleaves(_), ),
        baca.text_spanner(
            "trem. ord. -> larg. =| trem. larg. -> larghiss. =|"
            " trem. larghiss. -> no trem.",
            abjad.Tweak(r"- \tweak bound-details.right.padding 1.5"),
            abjad.Tweak(r"- \tweak staff-padding 8"),
            bookend=False,
            final_piece_spanner=False,
            lilypond_id=1,
            pieces=lambda _: baca.select.cmgroups(_, [1, 2, 1, 1, 1, 1]),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.scp_spanner(
            "T -> P ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
    )
    accumulator(
        ("v2", (32, 53)),
        baca.markup(
            r"\baca-nine-d-flat",
            abjad.Tweak(r"- \tweak padding 0.5"),
        ),
        baca.flat_glissando("Eb5"),
    )
    accumulator(
        ("v2", (38, 45)),
        baca.accent(selector=lambda _: baca.select.pheads(_), ),
        baca.hairpin(
            "p > pp",
            measures=(41, 42),
            selector=lambda _: baca.select.rleaves(_),
        ),
        baca.hairpin(
            "pp <",
            bookend=False,
            measures=45,
        ),
        baca.text_spanner(
            r"\baca-null-markup || \baca-damp-markup =| \baca-null-markup ||",
            abjad.Tweak(r"- \tweak staff-padding 8"),
            bookend=False,
            final_piece_spanner=False,
            lilypond_id=1,
            pieces=lambda _: baca.select.plts(_),
        ),
        baca.scp_spanner(
            "T1 -> T3 -> T2 -> T3 ->",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            autodetect_right_padding=False,
            pieces=lambda _: baca.select.plts(_)[:-1],
        ),
    )
    accumulator(
        ("v2", (46, 53)),
        baca.hairpin("p >o niente"),
        baca.damp_spanner(
            abjad.Tweak(r"- \tweak staff-padding 8"),
            # TODO: allow spanner to extend to phantom measure
            selector=lambda _: baca.select.leaves(_),
        ),
        baca.scp_spanner(
            "T poss. =|",
            abjad.Tweak(r"- \tweak staff-padding 5.5"),
            # TODO: allow spanner to extend to phantom measure
            selector=lambda _: baca.select.leaves(_),
        ),
    )
Пример #43
0
    )

maker(
    ('rh', 1),
    baca.make_monads('1/4  1/8  1/8'),
    baca.staff_positions(
        [6, 6, 4],
        allow_repeats=True,
        ),
    )

maker(
    ('rh', (1, 3)),
    baca.markup(
        r'\baca-mfz-markup',
        direction=abjad.Down,
        literal=True,
        selector=baca.leaves(),
        ),
    )

maker(
    ('rh', 2),
    baca.make_monads('1/4  1/8  1/6'),
    baca.staff_positions(
        [6, 6, 4],
        allow_repeats=True,
        ),
    )

maker(
    ('rh', 3),
Пример #44
0
        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),
    baca.tuplet_bracket_down(),
    )

maker(
    ('rh', (1, 4)),
    baca.rest_position(0),
    baca.rhythm("{ c'4 r2 c'4 r2 c'4 r2 c'4 r2 }"),
    )

maker(
    ('rh', (5, 8)),
    baca.rhythm(
Пример #45
0
            ),
        ),
    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.make_monads('1/8  1/8  1/8  1/8'),
    baca.markup(
        r'\baca-ffz-markup',
        direction=abjad.Down,
        literal=True,
        selector=baca.leaves(),
        ),
    baca.staff_positions(
        [-6, -4, -2, 0],
        allow_repeats=True,
        ),
    )

maker(
    ('rh', 2),
    baca.make_monads('1/2'),
    baca.markup(
        r'\baca-ffz-markup',
        direction=abjad.Down,
        literal=True,
Пример #46
0
    )

maker(
    ('cl', (1, 10)),
    baca.instrument(krummzeit.instruments['ClarinetInEFlat']),
    baca.make_repeated_duration_notes([(16, 4)]),
    )

maker(
    (['pf', 'vn', 'va', 'vc'], (9, 10)),
    krummzeit.incise_chain_b(),
    )

maker(
    ('perc', [(1, 14), (28, 34)]),
    baca.markup('suspended cymbal', boxed=True),
    baca.staff_position(0),
    krummzeit.sponge_rhythm(),
    )

maker(
    ('perc', 28),
    baca.chunk(
        baca.bar_extent_persistent(
            (0, 2),
            after=True,
            tag=baca.const.NOT_PARTS,
            ),
        baca.staff_lines(1),
        ),
    )
Пример #47
0
maker(
    ('perc', (21, 27)),
    baca.chunk(
        baca.bar_extent((-2, 2)),
        baca.bar_extent_persistent(
            (0, 2),
            after=True,
            tag=baca.const.NOT_PARTS,
            ),
        baca.staff_lines(1),
        ),
    baca.clef('percussion'),
    baca.dynamic('f'),
    baca.instrument(krummzeit.instruments['Percussion']),
    baca.markup(
        krummzeit.markup.scraped_slate(),
        ),
    baca.staff_position(0),
    )

maker(
    ('perc', (21, 25)),
    baca.make_repeat_tied_notes(),
    )

maker(
    ('va', 6),
    krummzeit.single_division_tuplets([(2, 1)]),
    )

maker(
Пример #48
0
    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(
    ('perc', (6, 16)),
    baca.markup('sponges', boxed=True),
Пример #49
0
    krummzeit.margin_markup('Pf.'),
    krummzeit.piano_harmonics(
        [(2, 1), (2, 1), (1, 1, 1)],
        dmask=abjad.index([5, 6], 7),
        tie_across_divisions=[0, 1],
        ),
    )

maker(
    ('perc', (1, 7)),
    baca.make_repeated_duration_notes(
        [(1, 2)],
        dmask=abjad.index([-1]),
        do_not_rewrite_meter=True,
        ),
    baca.markup('tam-tam', boxed=True),
    baca.staff_position(0),
    )

maker(
    ('vn', (5, 12)),
    krummzeit.polyphony(
        durations=[(3, 8), (4, 8), (2, 8), (4, 8)],
        rotation=-1,
        fuse=(1, 8),
        denominators=[8, 8, 4, 4, 8, 8],
        extra_counts=[3, 1, 0, 4],
        ties=[0, 1, 0, 1, 1, 0],
        ),
    )