コード例 #1
0
        bookend=False,
        selector=lambda _: baca.select.leaves(_)[:2],
    ),
    baca.text_spanner(
        r"spz. larg. -> str. =|",
        (abjad.Tweak(r"- \tweak bound-details.right.padding 1"), 0),
        abjad.Tweak(r"- \tweak staff-padding 5.5"),
        bookend=False,
        pieces=lambda _: baca.select.lparts(_, [1, 2]),
        selector=lambda _: baca.select.rleak(baca.select.leaves(_)[-2:]),
    ),
)

commands(
    ("vc", 5),
    baca.finger_pressure_transition(
        selector=lambda _: baca.select.leaves(_)[:2], ),
    baca.hairpin(
        "p <| f",
        selector=lambda _: baca.select.leaves(_)[:2],
    ),
    baca.suite(
        baca.pitches("C#3 C#3 E4 D3 E3", allow_repeats=True),
        baca.new(
            baca.repeat_tie_extra_offset((-1.5, 0)),
            baca.repeat_tie(lambda _: baca.select.pleaf(_, 0), ),
        ),
        baca.new(
            baca.glissando(zero_padding=True, ),
            baca.note_head_style_harmonic(),
            selector=lambda _: baca.select.rleak(baca.select.leaves(_)[1:]),
        ),
コード例 #2
0
ファイル: music.py プロジェクト: trevorbaca/stirrings_still
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(_)),
    )
コード例 #3
0
ファイル: music.py プロジェクト: trevorbaca/naehte
    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", ),
    baca.note_head_style_harmonic(
        selector=lambda _: abjad.select.leaf(_, -1), ),
    baca.pitch("E2"),
    baca.text_spanner(
        "RH vib. molto -> NV",
        abjad.Tweak(r"- \tweak staff-padding 8"),
        lilypond_id=1,
    ),
    baca.text_spanner(
        "no scr. -> scr. poss. -> XFB =|",
        abjad.Tweak(r"- \tweak staff-padding 5.5"),
        bookend=False,
        pieces=lambda _: baca.select.lparts(_, [1, 1, 3]),
        selector=lambda _: baca.rleak(abjad.select.leaves(_), count=3),
コード例 #4
0
ファイル: music.py プロジェクト: trevorbaca/naehte
        baca.glissando(),
    ),
    baca.tuplet_bracket_staff_padding(
        2,
        selector=lambda _: abjad.select.leaf(_, 1),
    ),
    baca.tuplet_bracket_staff_padding(
        2.5,
        selector=lambda _: abjad.select.leaf(_, 3),
    ),
)

commands(
    ("vc", 6),
    baca.breathe(),
    baca.finger_pressure_transition(),
    baca.glissando(
        selector=lambda _: baca.select.lleak(baca.select.leaves(_)[:1]), ),
    baca.hairpin("mp <| fff", ),
    baca.note_head_style_harmonic(
        selector=lambda _: abjad.select.leaf(_, -1), ),
    baca.pitch("E2"),
    baca.text_spanner(
        "RH vib. molto -> NV",
        abjad.Tweak(r"- \tweak staff-padding 8"),
        lilypond_id=1,
    ),
    baca.text_spanner(
        "no scr. -> scr. poss. =|",
        (abjad.Tweak(r"- \tweak bound-details.right.padding 4.25"), 0),
        (abjad.Tweak(r"- \tweak bound-details.left.padding -3.25"), -1),