示例#1
0
def upper_voice():
    return baca.suite(
        baca.only_parts(baca.text_spanner_staff_padding(5)),
        baca.not_parts(
            baca.dynamic_text_stencil_false(selector=baca.selectors.leaves())),
        baca.not_parts(baca.hairpin_stencil_false()),
        baca.not_parts(baca.text_spanner_stencil_false()),
        baca.not_parts(baca.voice_one()),
    )
示例#2
0
def assign_brass_sforzando_parts(maker, omit_tuba=False):
    maker("Horn.Voice.1", parts("Horn", 1), baca.not_parts(baca.voice_one()))
    maker("Horn.Voice.3", parts("Horn", 3), baca.not_parts(baca.voice_two()))
    maker("Horn.Voice.2", parts("Horn", 2), baca.not_parts(baca.voice_one()))
    maker("Horn.Voice.4", parts("Horn", 4), baca.not_parts(baca.voice_two()))
    maker(
        "Trumpet.Voice.1",
        parts("Trumpet", 1),
        baca.not_parts(baca.voice_one()),
    )
    maker(
        "Trumpet.Voice.3",
        parts("Trumpet", 3),
        baca.not_parts(baca.voice_two()),
    )
    maker(
        "Trumpet.Voice.2",
        parts("Trumpet", 2),
        baca.not_parts(baca.voice_one()),
    )
    maker(
        "Trumpet.Voice.4",
        parts("Trumpet", 4),
        baca.not_parts(baca.voice_two()),
    )
    maker(
        "Trombone.Voice.1",
        parts("Trombone", 1),
        baca.not_parts(baca.voice_one()),
    )
    maker(
        "Trombone.Voice.3",
        parts("Trombone", 3),
        baca.not_parts(baca.voice_two()),
    )
    maker(
        "Trombone.Voice.2",
        parts("Trombone", 2),
        baca.not_parts(baca.voice_one()),
    )
    maker(
        "Trombone.Voice.4",
        parts("Trombone", 4),
        baca.not_parts(baca.voice_two()),
    )
    if not omit_tuba:
        maker("Tuba.Voice.1", parts("Tuba"))
示例#3
0
commands(
    ("1vn2", (3, 6)),
    library.glissando_rhythm(),
    library.parts("First.Violin", 1),
    baca.hairpin(
        "p < f",
        selector=library.leaves_in_measure(1, rleak=True),
    ),
    baca.hairpin(
        "f > p",
        selector=library.leaves_in_measure(-1, lleak=True),
    ),
    baca.edition("solo (first violin)", "solo"),
    baca.not_parts(baca.dls_up()),
    baca.not_parts(baca.voice_one()),
    baca.only_parts(baca.stop_trill()),
    baca.suite(
        baca.untie(baca.selectors.leaves()),
        library.glissando_positions(reverse=True),
        baca.pitch(
            "C5",
            baca.selectors.pleaf(0),
            allow_repitch=True,
        ),
        baca.pitch(
            "C6",
            baca.selectors.pleaf(-1),
            allow_repitch=True,
        ),
        baca.tie(baca.selectors.ptail(-2)),
示例#4
0
 def upper_voice():
     return baca.suite(baca.not_parts(baca.voice_one()),
                       baca.staff_position(1))