示例#1
0
 attachment_handlers=[
     evans.PitchHandler(
         [_ + 24 for _ in [6.5, 8, 9.5, 5]],
         forget=False,
     ),
     evans.ArticulationHandler(
         [
             "staccato",
             "tenuto",
             "accent",
             "staccato",
             "staccato",
             "staccato",
             "staccato",
             "tenuto",
             "staccato",
             "staccato",
             "staccato",
             "staccato",
             "staccato",
             "tenuto",
             "staccato",
             "staccato",
         ],
         forget=False,
     ),
     evans.DynamicHandler(
         dynamic_list=["p", "mp"],
         hold_first_boolean_vector=[1, 0],
         hold_first_forget=False,
         hold_last_boolean_vector=[0, 1],
示例#2
0
articulation_handler_one = evans.ArticulationHandler(
    articulation_list=[
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "tenuto",
        "default",
        "default",
        "default",
        "accent",
        "default",
        "default",
        "default",
        "default",
        "default",
        "tenuto",
        "accent",
        "default",
        "tenuto",
        "default",
        "default",
        "default",
        "default",
        "default",
        "default",
        "tremolo",
        "tremolo",
        "tremolo",
        "tremolo",
    ],
    forget=False,
    name="articulation_handler_one",
)
示例#3
0
import evans

articulation_handler_two = evans.ArticulationHandler(
    articulation_list=[
        "tenuto",
        "default",
        "default",
        "tenuto",
        "accent",
        "default",
        "default",
        "default",
        "default",
    ],
    forget=False,
    name="articulation_handler_two",
)

articulation_handler_three = evans.ArticulationHandler(
    articulation_list=["accent", "default", "default", "default", "default"],
    forget=False,
    name="articulation_handler_three",
)
示例#4
0
    abjad.iterpitches.respell_with_sharps(selections)


def make_percussion_staff(selections):
    first_leaf = abjad.select(selections).leaf(0)
    last_leaf = abjad.select(selections).leaf(-1)
    abjad.attach(start_percussion_staff, first_leaf)
    abjad.attach(abjad.Clef("percussion"), first_leaf)
    abjad.attach(cancel_percussion_staff, last_leaf)


def make_gliss(selections):
    abjad.glissando(selections[:])


trem_handler = evans.ArticulationHandler(["tremolo"], forget=True)
trem_speed_handler = evans.TextSpanHandler(
    span_one_positions=[
        """ "slow (accel.)" """,
        """ "mod. (accel.)" """,
        """ "fast (rit.)" """,
        """ "mod. (rit.)" """,
    ],
    span_one_style="dashed-line",
    span_one_padding=1,
    attach_span_one_to="leaves",
    forget=False,
)

rain_dynamics = evans.CyclicList(["p", "mf", "f", "mp"], forget=False)