예제 #1
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            seg_5_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(460, 3)),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            abjad.LilyPondLiteral(r"\break", format_slot="before"),
            baca.selectors.leaf(2),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup st.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup st.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup st.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup st.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            crescendo_markup,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            crescendo_markup,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            crescendo_markup,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            crescendo_markup,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(-2, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(-2, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(-2, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(-2, pitched=True),
        ),
        evans.call(
            "Voice 1",
            _add_tremolos,
            lambda _: abjad.Selection(_).leaves(),
        ),
        evans.call(
            "Voice 2",
            _add_tremolos,
            lambda _: abjad.Selection(_).leaves(),
        ),
        evans.call(
            "Voice 3",
            _add_tremolos,
            lambda _: abjad.Selection(_).leaves(),
        ),
        evans.call(
            "Voice 4",
            _add_tremolos,
            lambda _: abjad.Selection(_).leaves(),
        ),
        evans.call(
            "Voice 1",
            _attach_marks,
            lambda _: abjad.Selection(_).logical_ties(),
        ),
        evans.call(
            "Voice 2",
            _attach_marks,
            lambda _: abjad.Selection(_).logical_ties(),
        ),
        evans.call(
            "Voice 3",
            _attach_marks,
            lambda _: abjad.Selection(_).logical_ties(),
        ),
        evans.call(
            "Voice 4",
            _attach_marks,
            lambda _: abjad.Selection(_).logical_ties(),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.StartHairpin("<"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopHairpin(),
            baca.selectors.leaf(-1, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.StartHairpin("<"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopHairpin(),
            baca.selectors.leaf(-1, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.StartHairpin("<"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopHairpin(),
            baca.selectors.leaf(-1, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.StartHairpin("<"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopHairpin(),
            baca.selectors.leaf(-1, pitched=True),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_05",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 76),
    rehearsal_mark="",
    page_break_counts=[90],
)
예제 #2
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[r'"Flute"'],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        commands,
    ],
    tuplet_bracket_noteheads=True,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/chalk_line/chalk_line/build/first_stylesheet.ily",
    ],
    segment_name="segment_01",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 87),
    rehearsal_mark="Calligraphy",
    page_break_counts=[90],
)
예제 #3
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_03,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_03,
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 1",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            rain_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 1",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 2",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 3",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 4",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 5",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 6",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 7",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 8",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 9",
            make_percussion_staff,
            abjad.select().run(0),
        ),
        evans.attach(
            "Voice 1",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 1",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 2",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 3",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 4",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 5",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 6",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 7",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 8",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.call(
            "Voice 9",
            apply_rain_tremolo,
            abjad.select().runs(),
        ),
        evans.attach(
            "Global Context",
            mark_45,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_d,
            baca.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=signatures_03,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="03",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 45),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #4
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            seg_7_global_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(460, 3)),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Tuplet(multiplier=(2, 3),
                                         components=[abjad.Note("c'4")])),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Voice 1",
            evans.DynamicHandler(
                [
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                ],
                forget=False,
                hold_last_boolean_vector=[1],
                with_constante_hairpins=False,
            ),
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 2",
            evans.DynamicHandler(
                [
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                ],
                forget=False,
                hold_last_boolean_vector=[1],
                with_constante_hairpins=False,
            ),
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 3",
            evans.DynamicHandler(
                [
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                    "p",
                    "mf",
                    "pp",
                    "f",
                    "mp",
                    "p",
                    "mf",
                    "pp",
                ],
                forget=False,
                hold_last_boolean_vector=[1],
                with_constante_hairpins=False,
            ),
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 4",
            evans.DynamicHandler(
                [
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "p",
                    "mf",
                    "f",
                    "mp",
                    "pp",
                ],
                forget=False,
                hold_last_boolean_vector=[1],
                with_constante_hairpins=False,
            ),
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 1",
            add_markups,
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 2",
            add_markups,
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 3",
            add_markups,
            lambda _: abjad.Selection(_).runs(),
        ),
        evans.call(
            "Voice 4",
            add_markups,
            lambda _: abjad.Selection(_).runs(),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_07",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 51),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #5
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps "Yellow Light in Fog" """,
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            abjad.LilyPondLiteral(
                r"\bacaStopTextSpanMM",
                format_slot="after",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            abjad.LilyPondLiteral(r"\break", format_slot="before"),
            baca.selectors.leaf(30),
        ),
        evans.attach("Global Context", mark_60, baca.selectors.leaf(0)),
        evans.attach("Global Context", mark_120, baca.selectors.leaf(3)),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 120),
            baca.selectors.leaf(3),
        ),
        evans.attach("Global Context", mark_60, baca.selectors.leaf(5)),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 60),
            baca.selectors.leaf(5),
        ),
        evans.attach("Global Context", mark_120, baca.selectors.leaf(8)),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 120),
            baca.selectors.leaf(8),
        ),
        evans.attach("Global Context", mark_60, baca.selectors.leaf(10)),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 60),
            baca.selectors.leaf(10),
        ),
        evans.attach("Global Context", mark_108, baca.selectors.leaf(13)),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 108),
            baca.selectors.leaf(13),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler(["7/1"], forget=False, as_ratios=True),
            lambda _: abjad.Selection(_).logical_tie(32),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler(["5/1"], forget=False, as_ratios=True),
            lambda _: abjad.Selection(_).logical_tie(33),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler(["3/1"], forget=False, as_ratios=True),
            lambda _: abjad.Selection(_).logical_tie(34),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler(["1/1"], forget=False, as_ratios=True),
            lambda _: abjad.Selection(_).logical_tie(35),
        ),
        evans.call(
            "Voice 1",
            attach_clicks,
            lambda _: abjad.Selection(_)
            .leaves()
            .get([-29, -27, -26, -23, -20, -17, -13, -11, -8, -7]),
        ),
        evans.call(
            "Voice 2",
            attach_clicks,
            lambda _: abjad.Selection(_)
            .leaves()
            .get([-29, -27, -26, -23, -20, -17, -13, -11, -8, -7]),
        ),
        evans.call(
            "Voice 3",
            attach_clicks,
            lambda _: abjad.Selection(_)
            .leaves()
            .get([-29, -27, -26, -23, -20, -17, -13, -11, -8, -7]),
        ),
        evans.call(
            "Voice 4",
            attach_clicks,
            lambda _: abjad.Selection(_)
            .leaves()
            .get([-29, -27, -26, -23, -20, -17, -13, -11, -8, -7]),
        ),
        evans.call(
            "Voice 1",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([0, 1, 2, 3, 4, 5, 6]),
        ),
        evans.call(
            "Voice 1",
            attach_material,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get([13, 14, 15, 16, 17, 18, 19]),
        ),
        evans.call(
            "Voice 1",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([26, 27, 28, 29, 30, 31]),
        ),
        evans.call(
            "Voice 1",
            evans.GlissandoHandler(
                glissando_style="hide_middle_note_heads",
                boolean_vector=[1],
                forget=False,
                apply_to="runs",
            ),
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    13,
                    14,
                    15,
                    16,
                    17,
                    18,
                    19,
                    26,
                    27,
                    28,
                    29,
                    30,
                    31,
                ]
            ),
        ),
        evans.call(
            "Voice 2",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([0, 1, 2, 3, 4, 5]),
        ),
        evans.call(
            "Voice 2",
            attach_material,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get([12, 13, 14, 15, 16, 17, 18, 19, 20]),
        ),
        evans.call(
            "Voice 2",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([27, 28, 29, 30, 31, 32]),
        ),
        evans.call(
            "Voice 2",
            evans.GlissandoHandler(
                glissando_style="hide_middle_note_heads",
                boolean_vector=[1],
                forget=False,
                apply_to="runs",
            ),
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    12,
                    13,
                    14,
                    15,
                    16,
                    17,
                    18,
                    19,
                    20,
                    27,
                    28,
                    29,
                    30,
                    31,
                    32,
                ]
            ),
        ),
        evans.call(
            "Voice 3",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([0, 1, 2, 3, 4, 5, 6]),
        ),
        evans.call(
            "Voice 3",
            attach_material,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get([13, 14, 15, 16, 17, 18, 19]),
        ),
        evans.call(
            "Voice 3",
            attach_material,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get([26, 27, 28, 29, 30, 31, 32, 33]),
        ),
        evans.call(
            "Voice 3",
            evans.GlissandoHandler(
                glissando_style="hide_middle_note_heads",
                boolean_vector=[1],
                forget=False,
                apply_to="runs",
            ),
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    13,
                    14,
                    15,
                    16,
                    17,
                    18,
                    19,
                    26,
                    27,
                    28,
                    29,
                    30,
                    31,
                    32,
                    33,
                ]
            ),
        ),
        evans.call(
            "Voice 4",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([0, 1, 2, 3, 4, 5, 6, 7]),
        ),
        evans.call(
            "Voice 4",
            attach_material,
            lambda _: abjad.Selection(_).logical_ties().get([14, 15, 16, 17, 18, 19]),
        ),
        evans.call(
            "Voice 4",
            attach_material,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get([26, 27, 28, 29, 30, 31, 32, 33, 34]),
        ),
        evans.call(
            "Voice 4",
            evans.GlissandoHandler(
                glissando_style="hide_middle_note_heads",
                boolean_vector=[1],
                forget=False,
                apply_to="runs",
            ),
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    0,
                    1,
                    2,
                    3,
                    4,
                    5,
                    6,
                    7,
                    14,
                    15,
                    16,
                    17,
                    18,
                    19,
                    26,
                    27,
                    28,
                    29,
                    30,
                    31,
                    32,
                    33,
                    34,
                ]
            ),
        ),
        evans.call("Voice 1", clef_handlers[0], lambda _: abjad.Selection(_)),
        evans.call("Voice 2", clef_handlers[1], lambda _: abjad.Selection(_)),
        evans.call("Voice 3", clef_handlers[2], lambda _: abjad.Selection(_)),
        evans.call("Voice 4", clef_handlers[3], lambda _: abjad.Selection(_)),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([7]).leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([20]).leaf(0),
        ),
        evans.call(
            "Voice 1",
            grace_handler,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    20,
                    21,
                    22,
                    23,
                    24,
                    25,
                ]
            ),
        ),
        evans.call(
            "Staff 1",
            evans.PitchHandler(
                [
                    30,
                    32,
                    29.5,
                    31,
                    31.5,
                    33,
                    30,
                    29,
                    32.5,
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.call(
            "Staff 1",
            head_handler,
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([6]).leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([21]).leaf(0),
        ),
        evans.call(
            "Voice 2",
            grace_handler,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    21,
                    22,
                    23,
                    24,
                    25,
                    26,
                ]
            ),
        ),
        evans.call(
            "Staff 2",
            evans.PitchHandler(
                [
                    21.5,
                    23,
                    20,
                    19,
                    22.5,
                    20,
                    22,
                    19.5,
                    21,
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.call(
            "Staff 2",
            head_handler,
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([7]).leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([20]).leaf(0),
        ),
        evans.call(
            "Voice 3",
            grace_handler,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    20,
                    21,
                    22,
                    23,
                    24,
                    25,
                ]
            ),
        ),
        evans.call(
            "Staff 3",
            evans.PitchHandler(
                [
                    11.5,
                    13,
                    10,
                    9,
                    12.5,
                    11,
                    10,
                    12,
                    9.5,
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.call(
            "Staff 3",
            head_handler,
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([8]).leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { sp.(quasi noise) }", direction=abjad.Up),
            lambda _: abjad.Selection(_).logical_ties().get([20]).leaf(0),
        ),
        evans.call(
            "Voice 4",
            grace_handler,
            lambda _: abjad.Selection(_)
            .logical_ties()
            .get(
                [
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    20,
                    21,
                    22,
                    23,
                    24,
                    25,
                ]
            ),
        ),
        evans.call(
            "Staff 4",
            evans.PitchHandler(
                [
                    2,
                    -1.5,
                    1,
                    1.5,
                    3,
                    0,
                    -1,
                    2.5,
                    0,
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
        evans.call(
            "Staff 4",
            head_handler,
            lambda _: abjad.Selection(_).logical_ties(grace=True),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_20",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 60),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #6
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            chorale_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(460, 9)),
                left_note=(abjad.Note("c'4")),
                right_note=(abjad.Note("c'8.")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach("Voice 1", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 2", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 3", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 4", bar_literal, baca.selectors.leaf(0)),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("p"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                r"\once \override Staff.Clef.X-extent = ##f \once \override Staff.Clef.extra-offset = #'(-2.25 . 0)",
                format_slot="absolute_before",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Articulation("snappizzicato"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { slow bow }", direction=abjad.Up),
            baca.selectors.leaf(2),
        ),
        evans.attach(
            "Voice 4",
            abjad.StemTremolo(32),
            baca.selectors.leaf(2),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(2),
        ),
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                r"^ \markup { clt. \raise #0.75 \baca-circle-very-wide-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { \raise #0.75 \baca-circle-very-wide-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { clt. \raise #0.75 \baca-circle-wide-poss-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(2),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ½clt.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_08",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline=":|.",
    tempo=((1, 4), 38),
    rehearsal_mark=r"x4",
    page_break_counts=[90],
    fermata="scripts.ufermata",
)
예제 #7
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_05,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_05,
        evans.call(
            "Voice 9",
            transpose_contrabass,
            abjad.select().runs(),
        ),
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 5",
            abjad.Dynamic("mp"),
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 7",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            clef_whitespace,
            baca.leaf(39, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            clef_whitespace,
            baca.leaf(43, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            abjad.StopTextSpan(),
            baca.leaf(0),
        ),
        evans.call("Voice 1", apply_scratch,
                   abjad.select().runs().get([0, 1, 2])),
        evans.call("Voice 2", apply_scratch,
                   abjad.select().runs().get([0, 1, 2])),
        evans.call("Voice 3", apply_scratch,
                   abjad.select().runs().get([0, 1, 2])),
        evans.call("Voice 4", apply_scratch,
                   abjad.select().runs().get([0, 1, 2])),
        evans.call("Voice 7", apply_scratch,
                   abjad.select().runs().get([1, 3, 5])),
        evans.attach(
            "Voice 7",
            normale_markup,
            abjad.select().run(1).leaf(0),
        ),
        evans.attach(
            "Voice 7",
            normale_markup_tall,
            abjad.select().run(3).leaf(0),
        ),
        evans.attach(
            "Voice 7",
            normale_markup,
            abjad.select().run(5).leaf(0),
        ),
        evans.call(
            "Voice 7",
            apply_spectrum_tremolo,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 7",
            apply_spectrum_tremolo,
            abjad.select().run(2),
        ),
        evans.call(
            "Voice 7",
            apply_spectrum_tremolo,
            abjad.select().run(4),
        ),
        evans.call(
            "Voice 7",
            apply_spectrum_tremolo,
            abjad.select().run(6).leaves().get([0, 1, 2, 3, 4]),
        ),
        evans.detach(
            "Voice 7",
            abjad.StartHairpin(">"),
            abjad.select().run(0).leaf(-1),
        ),
        evans.detach(
            "Voice 7",
            abjad.StartHairpin("<"),
            abjad.select().run(2).leaf(-1),
        ),
        evans.call("Voice 8", apply_scratch,
                   abjad.select().runs().get([1, 3])),
        evans.attach(
            "Voice 8",
            normale_markup,
            abjad.select().run(1).leaf(0),
        ),
        evans.attach(
            "Voice 8",
            normale_markup_tall,
            abjad.select().run(3).leaf(0),
        ),
        evans.call(
            "Voice 8",
            apply_spectrum_tremolo,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 8",
            apply_spectrum_tremolo,
            abjad.select().run(2),
        ),
        evans.detach(
            "Voice 8",
            abjad.StartHairpin(">"),
            abjad.select().run(0).leaf(-2),
        ),
        evans.call(
            "Voice 8",
            apply_spectrum_tremolo,
            abjad.select().run(4).leaves().get([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]),
        ),
        evans.call(
            "Voice 9",
            apply_scratch,
            abjad.select().runs().get([1, 3]),
        ),
        evans.attach(
            "Voice 9",
            normale_markup,
            abjad.select().run(1).leaf(0),
        ),
        evans.attach(
            "Voice 9",
            normale_markup_tall,
            abjad.select().run(3).leaf(0),
        ),
        evans.call(
            "Voice 9",
            apply_spectrum_tremolo,
            abjad.select().run(0),
        ),
        evans.call(
            "Voice 9",
            apply_spectrum_tremolo,
            abjad.select().run(2),
        ),
        evans.detach(
            "Voice 9",
            abjad.StartHairpin("<"),
            abjad.select().run(0).leaf(-1),
        ),
        evans.call(
            "Voice 9",
            apply_spectrum_tremolo,
            abjad.select().run(4).leaves().get(
                [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]),
        ),
        evans.attach("Voice 1", abjad.Dynamic("p"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 1", col_legno_markup,
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 1", abjad.StartHairpin("<"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 1", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(31)),
        evans.attach("Voice 2", abjad.Dynamic("pp"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 2", pizz_markup,
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 2", abjad.StartHairpin("<"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 2", abjad.Dynamic("ff"),
                     abjad.select().run(3).leaf(31)),
        evans.attach("Voice 3", abjad.Dynamic("p"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 3", col_legno_markup,
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 3", abjad.StartHairpin("<"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 3", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(31)),
        evans.attach("Voice 4", abjad.Dynamic("pp"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 4", pizz_markup,
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 4", abjad.StartHairpin("<"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 4", abjad.Dynamic("ff"),
                     abjad.select().run(3).leaf(31)),
        evans.attach("Voice 5", abjad.Dynamic("p"),
                     abjad.select().run(-1).leaf(1)),
        evans.attach("Voice 5", col_legno_markup,
                     abjad.select().run(-1).leaf(1)),
        evans.attach("Voice 5", abjad.StartHairpin("<"),
                     abjad.select().run(-1).leaf(1)),
        evans.attach("Voice 5", abjad.Dynamic("f"),
                     abjad.select().run(-1).leaf(32)),
        evans.attach("Voice 6", abjad.Dynamic("pp"),
                     abjad.select().run(0).leaf(0)),
        evans.attach("Voice 6", pizz_markup,
                     abjad.select().run(0).leaf(0)),
        evans.attach("Voice 6", abjad.StartHairpin("<"),
                     abjad.select().run(0).leaf(0)),
        evans.attach("Voice 6", abjad.Dynamic("ff"),
                     abjad.select().run(0).leaf(31)),
        evans.attach("Voice 7", abjad.Dynamic("p"),
                     abjad.select().run(6).leaf(5)),
        evans.attach("Voice 7", col_legno_markup,
                     abjad.select().run(6).leaf(5)),
        evans.attach("Voice 7", abjad.StartHairpin("<"),
                     abjad.select().run(6).leaf(5)),
        evans.attach("Voice 7", abjad.Dynamic("f"),
                     abjad.select().run(6).leaf(36)),
        evans.attach("Voice 8", abjad.Dynamic("p"),
                     abjad.select().run(4).leaf(10)),
        evans.attach("Voice 8", pizz_markup,
                     abjad.select().run(4).leaf(10)),
        evans.attach("Voice 8", abjad.StartHairpin("<"),
                     abjad.select().run(4).leaf(10)),
        evans.attach("Voice 8", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(41)),
        evans.attach("Voice 9", abjad.Dynamic("p"),
                     abjad.select().run(4).leaf(14)),
        evans.attach("Voice 9", col_legno_markup,
                     abjad.select().run(4).leaf(14)),
        evans.attach("Voice 9", abjad.StartHairpin("<"),
                     abjad.select().run(4).leaf(14)),
        evans.attach("Voice 9", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(45)),
        evans.attach(
            "Global Context",
            mark_60,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            met_115,
            baca.leaf(11),
        ),
        evans.attach(
            "Global Context",
            mark_115,
            baca.leaf(11),
        ),
        evans.attach(
            "Global Context",
            met_108,
            baca.leaf(15),
        ),
        evans.attach(
            "Global Context",
            mark_108,
            baca.leaf(15),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_f,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_g,
            baca.leaf(11),
        ),
    ],
    score_template=score,
    time_signatures=signatures_05,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="05",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 60),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #8
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps "Ghosts of Departed Quantities" """,
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            mark_115,
            baca.selectors.leaf(0),
        ),
        evans.call("Voice 1", clef_handlers[0], lambda _: abjad.Selection(_)),
        evans.call("Voice 2", clef_handlers[1], lambda _: abjad.Selection(_)),
        evans.call("Voice 3", clef_handlers[2], lambda _: abjad.Selection(_)),
        evans.call("Voice 4", clef_handlers[3], lambda _: abjad.Selection(_)),
        evans.call(
            "Voice 1",
            crescendi,
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            crescendi,
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            crescendi,
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            crescendi,
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler(
                [
                    ["a'", "b''"],
                    ["a'", "c'''"],
                    ["a'", "cs'''"],
                    ["a'", "ctqs'''"],
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler(
                [
                    ["e'", "g'"],
                    ["e'", "b'"],
                    ["e'", "c''"],
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler(
                [
                    ["fs", "d'"],
                    ["fs", "ds'"],
                    ["fs", "dtqs'"],
                    ["ftqs", "dtqs'"],
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler(
                [
                    ["d,", "a,"],
                    ["d,", "a,"],
                    ["d,", "c"],
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_18",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #9
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_01,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_01,
        evans.call(
            "Voice 9",
            transpose_contrabass,
            abjad.select().runs(),
        ),
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 8",
            clef_whitespace,
            baca.leaf(7),
        ),
        evans.attach(
            "Voice 9",
            clef_whitespace,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            clef_whitespace,
            baca.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            clef_whitespace,
            baca.leaf(16, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mp"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mp"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            abjad.Dynamic("mp"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            abjad.Dynamic("mp"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("mp"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("p"),
            baca.leaf(48, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            quasi_pont_markup,
            baca.leaf(48, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            arco_markup,
            baca.leaf(48, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.leaf(50, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            pizz_markup,
            baca.leaf(50, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("p"),
            baca.leaf(66, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            quasi_pont_markup,
            baca.leaf(66, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            arco_markup,
            baca.leaf(66, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.leaf(82, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            pizz_markup,
            baca.leaf(82, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("p"),
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            quasi_pont_markup,
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            arco_markup,
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.leaf(52, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            pizz_markup,
            baca.leaf(52, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("p"),
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            quasi_pont_markup,
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            arco_markup,
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.leaf(85, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            pizz_markup,
            baca.leaf(85, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("p"),
            baca.leaf(47, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            quasi_pont_markup,
            baca.leaf(47, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            arco_markup,
            baca.leaf(47, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("mf"),
            baca.leaf(51, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            pizz_markup,
            baca.leaf(51, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("p"),
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            quasi_pont_markup,
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            arco_markup,
            baca.leaf(68, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("mf"),
            baca.leaf(84, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            pizz_markup,
            baca.leaf(84, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("p"),
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            quasi_pont_markup,
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            arco_markup,
            baca.leaf(49, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("mf"),
            baca.leaf(54, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            pizz_markup,
            baca.leaf(54, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("p"),
            baca.leaf(69, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            quasi_pont_markup,
            baca.leaf(69, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            arco_markup,
            baca.leaf(69, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("mf"),
            baca.leaf(80, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            pizz_markup,
            baca.leaf(80, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("p"),
            baca.leaf(29, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            quasi_pont_markup,
            baca.leaf(29, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("p"),
            baca.leaf(14, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            quasi_pont_markup,
            baca.leaf(14, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            abjad.Dynamic("p"),
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            quasi_pont_markup,
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            abjad.Dynamic("p"),
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            quasi_pont_markup,
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("p"),
            baca.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            quasi_pont_markup,
            baca.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            normale_markup,
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("sfp"),
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.StartHairpin("<"),
            baca.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("ff"),
            baca.leaf(15, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("p"),
            baca.leaf(16, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            quasi_pont_markup,
            baca.leaf(16, pitched=True),
        ),
        evans.attach(
            "Global Context",
            mark_60,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            met_108,
            baca.leaf(7),
        ),
        evans.attach(
            "Global Context",
            mark_108,
            baca.leaf(7),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_a,
            baca.leaf(10),
        ),
    ],
    score_template=score,
    time_signatures=signatures_01,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="01",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 60),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #10
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=['"Violin I"', '"Violin II"', '"Viola"', '"Violoncello"'],
    abbreviations=['"vn. I"', '"vn. II"', '"va."', '"vc."'],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                r"\once \override Staff.Clef.X-extent = ##f \once \override Staff.Clef.extra-offset = #'(-2.25 . 0)",
                format_slot="absolute_before",
            ),
            baca.selectors.leaf(0),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
    ],
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/hamon_shu/hamon_shu/build/first_stylesheet.ily",
    ],
    segment_name="segment_03",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 60),
    rehearsal_mark="B",
    page_break_counts=[90],
)
예제 #11
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(230, 3)),
                left_note=(abjad.Note("c'4")),
                right_note=(abjad.Note("c'2")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            title_markup,
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Voice 4",
            evans.ClefHandler(
                clef="bass",
                add_extended_clefs=True,
                add_ottavas=True,
            ),
            lambda _: abjad.Selection(_).logical_ties(),
        ),
        evans.detach(
            "Voice 4",
            abjad.Clef("tenorvarC"),
            lambda _: abjad.Selection(_).run(11).leaf(1),
        ),
        evans.detach(
            "Voice 4",
            abjad.Clef("treble"),
            lambda _: abjad.Selection(_).run(11).leaf(5),
        ),
        evans.attach(
            "Voice 4",
            abjad.Clef("treble"),
            lambda _: abjad.Selection(_).run(11).leaf(0),
        ),
        evans.detach(
            "Voice 4",
            abjad.Clef("tenorvarC"),
            lambda _: abjad.Selection(_).run(13).leaf(2),
        ),
        evans.detach(
            "Voice 4",
            abjad.Clef("treble"),
            lambda _: abjad.Selection(_).run(13).leaf(6),
        ),
        evans.attach(
            "Voice 4",
            abjad.Clef("treble"),
            lambda _: abjad.Selection(_).run(13).leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clefs,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_06",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 153),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #12
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(115, 2)),
                left_note=(abjad.Note("c'4")),
                right_note=(abjad.Note("c'2")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
        evans.call(
            "score",
            tap_pitch_handler,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup ½clt.", direction=abjad.Up),
            lambda _: abjad.Selection(_).leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(2, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("p"),
            baca.selectors.leaf(5, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(13, pitched=True),
        ),
        evans.attach("Voice 3", abjad.StopBeam(),
                     baca.selectors.leaf(4, pitched=True)),
        evans.detach("Voice 3", abjad.StopBeam(),
                     baca.selectors.leaf(5, pitched=True)),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_10",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #13
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Quipu""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Voice 1",
            clef_handlers[0],
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            clef_handlers[1],
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            evans.ClefHandler(
                clef="alto",
                add_extended_clefs=True,
                add_ottavas=True,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            evans.ClefHandler(
                allowable_clefs=["bass", "treble"],
                clef="bass",
                clef_shelf=12,
                add_extended_clefs=True,
                add_ottavas=True,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.attach(
            "Voice 4",
            abjad.Clef("bass"),
            baca.selectors.leaf(5, pitched=True),
        ),
        evans.call(
            "Voice 3",
            remove_ottava,
            baca.selectors.leaf(11),
        ),
        evans.call(
            "Voice 3",
            remove_ottava,
            baca.selectors.leaf(12),
        ),
        evans.call(
            "Voice 4",
            remove_ottava,
            baca.selectors.leaf(9),
        ),
        evans.call(
            "Voice 4",
            remove_ottava,
            baca.selectors.leaf(10),
        ),
        evans.call(
            "Voice 4",
            remove_ottava,
            baca.selectors.leaf(11),
        ),
        evans.call(
            "Voice 4",
            remove_ottava,
            baca.selectors.leaf(13),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(
                r"\markup XSB(c.3)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(6, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(
                r"\markup XSB(c.5)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(9, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(
                r"\markup XSB(c.7)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(10, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(
                r"\markup XSB(c.9)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(12, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Articulation("staccato"),
            baca.selectors.leaf(5, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(
                r"\markup XSB(c.3)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(7, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(
                r"\markup XSB(c.5)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(9, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(
                r"\markup XSB(c.7)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(12, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"\markup XSB(c.3)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"\markup XSB(c.5)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(3, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"\markup XSB(c.7)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(11, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"\markup XSB(c.9)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(13, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"\markup { slow bow }",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(15, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"\markup XSB(c.3)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(5, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"\markup XSB(c.4)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(6, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"\markup XSB(c.7)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"\markup XSB(c.9)",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(10, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"\markup { slow bow }",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(12, pitched=True),
        ),
        evans.call(
            "Voice 1",
            gett_handler,
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                2,
                7,
                10,
            ]),
        ),
        evans.call(
            "Voice 2",
            gett_handler,
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                3,
                4,
                6,
                8,
            ]),
        ),
        evans.call(
            "Voice 3",
            gett_handler,
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                2,
                9,
            ]),
        ),
        evans.call(
            "Voice 4",
            gett_handler,
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                0,
                1,
                9,
            ]),
        ),
        evans.attach(
            "Global Context",
            mark_115,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    # clef_handlers=[None],
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_13",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #14
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Anomaly""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            abjad.LilyPondLiteral(r"\break", format_slot="before"),
            baca.selectors.leaf(10),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler([0], apply_all=True,
                               apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler([0], apply_all=True,
                               apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler([-12],
                               apply_all=True,
                               apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler([-24],
                               apply_all=True,
                               apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler(
                microtones.RatioClassSegment([
                    "3/2",
                    "3/2",
                    "24/25",
                    "24/25",
                    "24/25",
                    "24/25",
                    "2/3",
                    "2/3",
                    "3/2",
                    "3/2",
                    "3/2",
                    "3/2",
                    "2/3",
                    "2/3",
                    "3/2",
                    "3/2",
                    "3/2",
                    "3/2",
                    "24/25",
                    "24/25",
                    "24/25",
                    "2/3",
                    "2/3",
                    "3/2",
                    "3/2",
                ]),
                as_ratios=True,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True, ).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                27,
                28,
                29,
                33,
                34,
            ]),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler(
                microtones.RatioClassSegment([
                    "6/5",
                ]),
                as_ratios=True,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True, ).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                25,
                26,
                29,
                30,
            ]),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler(
                microtones.RatioClassSegment([
                    "5/4",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "5/4",
                    "5/4",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "5/4",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "4/5",
                    "5/4",
                    "5/4",
                    "4/5",
                ]),
                as_ratios=True,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True, ).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                28,
                29,
                36,
            ]),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler(
                microtones.RatioClassSegment([
                    "1/1",
                    "1/1",
                    "1/1",
                    "16/25",
                    "16/25",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                    "16/25",
                    "16/25",
                    "1/1",
                    "1/1",
                    "1/1",
                    "1/1",
                ]),
                as_ratios=True,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True, ).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                22,
                23,
                24,
                29,
                30,
                34,
                35,
            ]),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler(
                baca_seq,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                23,
                24,
                25,
                26,
                30,
                31,
                32,
                35,
                36,
                37,
                38,
            ]),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler(
                baca_seq,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                21,
                22,
                23,
                24,
                27,
                28,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
            ]),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler(
                baca_seq,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                22,
                23,
                24,
                25,
                26,
                27,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
            ]),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler(
                baca_seq,
                forget=False,
            ),
            lambda _: abjad.Selection(_).logical_ties(pitched=True).get([
                17,
                18,
                19,
                20,
                21,
                25,
                26,
                27,
                28,
                31,
                32,
                33,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
            ]),
        ),
        evans.call("Voice 1", clef_handlers[0], lambda _: abjad.Selection(_)),
        evans.call("Voice 2", clef_handlers[1], lambda _: abjad.Selection(_)),
        evans.call("Voice 3", clef_handlers[2], lambda _: abjad.Selection(_)),
        evans.call(
            "Voice 4",
            evans.ClefHandler(
                allowable_clefs=["bass", "treble"],
                clef="bass",
                add_extended_clefs=True,
                add_ottavas=True,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.detach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(27, pitched=True),
        ),
        evans.detach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(-9, pitched=True),
        ),
        evans.detach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(30),
        ),
        evans.attach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(32),
        ),
        evans.detach("Voice 4", abjad.StartBeam(), baca.selectors.leaf(35)),
        evans.attach("Voice 4", abjad.StartBeam(), baca.selectors.leaf(36)),
        evans.detach("Voice 4", abjad.StartBeam(), baca.selectors.leaf(48)),
        evans.attach("Voice 4", abjad.StartBeam(), baca.selectors.leaf(50)),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(230, 3)),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.call("Global Context", tempo_handler,
                   baca.selectors.leaves().get([8, 9])),
        evans.call("Global Context", tempo_handler,
                   baca.selectors.leaves().get([11, 12])),
        evans.call("Global Context", tempo_handler,
                   baca.selectors.leaves().get([14, 15])),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { staccati leggiero }", direction=abjad.Up),
            baca.selectors.leaf(25),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { staccati leggiero }", direction=abjad.Up),
            baca.selectors.leaf(22),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { staccati leggiero }", direction=abjad.Up),
            baca.selectors.leaf(24),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { staccati leggiero }", direction=abjad.Up),
            baca.selectors.leaf(18),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_16",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 38),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #15
0
maker = evans.SegmentMaker(
    instruments=magnolia.instruments,
    names=[abjad.Markup.center_column(["Alto", "Saxophone"])],
    # names=['"Alto Saxophone"'],
    commands=[
        magnolia.rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        magnolia.handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            mm_1,
            abjad.select().leaf(12),
        ),
        evans.attach(
            "Global Context",
            mm_2,
            abjad.select().leaf(23),
        ),
        evans.attach(
            "Voice 1",
            invisible_command,
            abjad.select().leaf(-1, pitched=True),
        ),
        evans.replace(
            "Voice 1",
            measure_0_tuplet,
            abjad.select().leaves().get([0]),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(17, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(29, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(54, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(62, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(110, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(121, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(176, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(204, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(223, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(243, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(287, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(294, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(363, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.BreathMark(),
            abjad.select().leaf(415, pitched=True),
        ),
        evans.detach(
            "Voice 1",
            abjad.Dynamic("mf"),
            abjad.select().leaf(13, pitched=True),
        ),
        evans.detach(
            "Voice 1",
            abjad.Dynamic("f"),
            abjad.select().leaf(17, pitched=True),
        ),  # remove?
        evans.detach(
            "Voice 1",
            abjad.Dynamic("p"),
            abjad.select().leaf(21, pitched=True),
        ),
    ],
    score_template=magnolia.score,
    time_signatures=magnolia.time_signatures,
    clef_handlers=magnolia.clef_handlers,
    tuplet_bracket_noteheads=True,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/magnolia/magnolia/build/measured_stylesheet.ily",
    ],
    segment_name="segment_01",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    barline="|.",
    tempo=((1, 4), 72),
    page_break_counts=[90],
    colophon=c,
)
예제 #16
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Plateaus""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler([12], apply_all=True, apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler([0], apply_all=True, apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler([-12], apply_all=True, apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler([-24], apply_all=True, apply_all_spelling="sharp"),
            lambda _: abjad.Selection(_),
        ),
        # evans.attach("Voice 1", bar_literal, baca.selectors.leaf(0)),
        # evans.attach("Voice 2", bar_literal, baca.selectors.leaf(0)),
        # evans.attach("Voice 3", bar_literal, baca.selectors.leaf(0)),
        # evans.attach("Voice 4", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 2", abjad.Dynamic("sfz"), baca.selectors.leaf(0)),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                [
                    r"_ \markup {",
                    r"  \column {",
                    r'       \line {(x1-3 \fontsize #-3 \musicglyph "f")}',
                    r'       \line {(x4-5 \fontsize #-3 \concat {\musicglyph "f" \musicglyph "f"})}',
                    "   }" "}",
                ],
                format_slot="after",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach("Voice 3", abjad.Dynamic("sfz"), baca.selectors.leaf(0)),
        evans.attach(
            "Voice 3",
            abjad.LilyPondLiteral(
                [
                    r"_ \markup {",
                    r"  \column {",
                    r'       \line {(x1-3 \fontsize #-3 \musicglyph "f")}',
                    r'       \line {(x4-5 \fontsize #-3 \concat {\musicglyph "f" \musicglyph "f"})}',
                    "   }" "}",
                ],
                format_slot="after",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach("Voice 4", abjad.Dynamic("sfz"), baca.selectors.leaf(0)),
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                [
                    r"_ \markup {",
                    r"  \column {",
                    r'       \line {(x1-3 \fontsize #-3 \musicglyph "f")}',
                    r'       \line {(x4-5 \fontsize #-3 \concat {\musicglyph "f" \musicglyph "f"})}',
                    "   }" "}",
                ],
                format_slot="after",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            xsb_noise_poco_a_poco,
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopTextSpan(),
            baca.selectors.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            xsb_noise_poco_a_poco_final_noise,
            baca.selectors.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopTextSpan(),
            baca.selectors.leaf(9, pitched=True),
        ),
        evans.attach(
            "Voice 1", abjad.Dynamic("pp"), baca.selectors.leaf(0, pitched=True)
        ),
        evans.attach(
            "Voice 1", abjad.StartHairpin("<"), baca.selectors.leaf(0, pitched=True)
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(
                r"""\markup \box "cresc. a m.196 (ff)" """,
                direction=abjad.Down,
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 1", abjad.StopHairpin(), baca.selectors.leaf(9, pitched=True)
        ),
        evans.attach(
            "Voice 1", abjad.Dynamic("ff"), baca.selectors.leaf(9, pitched=True)
        ),
        evans.attach(
            "Voice 2",
            noise_poco_a_poco,
            baca.selectors.leaf(96),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(),
            baca.selectors.leaf(109),
        ),
        evans.attach(
            "Voice 2",
            noise_poco_a_poco_final_noise,
            baca.selectors.leaf(109),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(),
            baca.selectors.leaf(110),
        ),
        evans.attach(
            "Voice 3",
            noise_poco_a_poco,
            baca.selectors.leaf(95),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopTextSpan(),
            baca.selectors.leaf(107),
        ),
        evans.attach(
            "Voice 3",
            noise_poco_a_poco_final_noise,
            baca.selectors.leaf(107),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopTextSpan(),
            baca.selectors.leaf(108),
        ),
        evans.attach(
            "Voice 4",
            noise_poco_a_poco,
            baca.selectors.leaf(95),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopTextSpan(),
            baca.selectors.leaf(110),
        ),
        evans.attach(
            "Voice 4",
            noise_poco_a_poco_final_noise,
            baca.selectors.leaf(110),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopTextSpan(),
            baca.selectors.leaf(111),
        ),
        evans.attach(
            "Voice 1", abjad.Dynamic("mf"), baca.selectors.leaf(-5, pitched=True)
        ),
        evans.attach(
            "Voice 2", abjad.Dynamic("f"), baca.selectors.leaf(-24, pitched=True)
        ),
        evans.call(
            "Voice 2",
            evans.NoteheadHandler(
                notehead_list=["harmonic-mixed"],
                head_boolean_vector=[1],
                head_vector_forget=False,
                forget=False,
            ),
            lambda _: abjad.Selection(_).run(-1),
        ),
        evans.call(
            "Voice 3",
            evans.NoteheadHandler(
                notehead_list=["harmonic-mixed"],
                head_boolean_vector=[1],
                head_vector_forget=False,
                forget=False,
            ),
            lambda _: abjad.Selection(_).run(-1),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup IV.", direction=abjad.Up),
            baca.selectors.leaf(-24, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup III.", direction=abjad.Up),
            baca.selectors.leaf(-22, pitched=True),
        ),
        evans.attach(
            "Voice 3", abjad.Dynamic("f"), baca.selectors.leaf(-22, pitched=True)
        ),
        evans.attach(
            "Voice 4", abjad.Dynamic("mf"), baca.selectors.leaf(-5, pitched=True)
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(460, 3)),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            norm_noise_poco_a_poco,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-2),
        ),
        evans.attach(
            "Voice 1",
            norm_noise_poco_a_poco_final_noise,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-2),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-1),
        ),
        evans.attach(
            "Voice 2",
            norm_noise_poco_a_poco,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-12),
        ),
        evans.attach(
            "Voice 2",
            norm_noise_poco_a_poco_final_noise,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-12),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-1),
        ),
        evans.attach(
            "Voice 3",
            norm_noise_poco_a_poco,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-7),
        ),
        evans.attach(
            "Voice 3",
            norm_noise_poco_a_poco_final_noise,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-7),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-1),
        ),
        evans.attach(
            "Voice 4",
            norm_noise_poco_a_poco,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-2),
        ),
        evans.attach(
            "Voice 4",
            norm_noise_poco_a_poco_final_noise,
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-2),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopTextSpan(),
            lambda _: abjad.Selection(_).runs().get([-1]).leaf(-1),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(
                r"""\markup "full bows as possible" """,
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(
                r"""\markup "full bows as possible" """,
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(
                r"""\markup "full bows as possible" """,
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_15",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline=":|.",
    tempo=((1, 4), 76),
    rehearsal_mark="x5",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #17
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Nacht/Maska""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), 115),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.call("Voice 1", clef_handlers[0], lambda _: abjad.Selection(_)),
        evans.call("Voice 2", clef_handlers[1], lambda _: abjad.Selection(_)),
        evans.call("Voice 3", clef_handlers[2], lambda _: abjad.Selection(_)),
        evans.call("Voice 4", clef_handlers[3], lambda _: abjad.Selection(_)),
        evans.call(
            "Voice 1",
            evans.PitchHandler(
                [
                    "gtqs",
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 1",
            apply_spanner,
            lambda _: abjad.Selection(_),
        ),
        # evans.attach(
        #     "Voice 1",
        #     abjad.Dynamic("ff"),
        #     baca.selectors.leaf(0),
        # ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 2",
            evans.PitchHandler(
                [
                    "g",
                    "g",
                    "g",
                    ["g", "d'"],
                    "g",
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            apply_spanner,
            lambda _: abjad.Selection(_).runs().get([0, 1, 2, 4]),
        ),
        evans.call(
            "Voice 2",
            evans.BowAngleHandler([-45, 45]),
            lambda _: abjad.Selection(_).run(3),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler(
                [
                    "gqs",
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            apply_spanner,
            lambda _: abjad.Selection(_),
        ),
        # evans.attach(
        #     "Voice 3",
        #     abjad.Dynamic("ff"),
        #     baca.selectors.leaf(0),
        # ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler(
                [
                    "gs,",
                    "gtqs,",
                    "etqf,",
                ],
                forget=False,
            ),
            lambda _: abjad.Selection(_),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0),
        ),
        evans.attach("Voice 4", abjad.StartHairpin(">o"),
                     baca.selectors.leaf(-2, pitched=True)),
        evans.attach("Voice 4", abjad.StopHairpin(), baca.selectors.leaf(-2)),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { molto vibrato }", direction=abjad.Up),
            baca.selectors.leaf(-3, pitched=True),
        ),
        evans.call(
            "Voice 4",
            evans.GlissandoHandler(
                line_style="zigzag",
                boolean_vector=[1],
                forget=False,
                apply_to="runs",
            ),
            baca.selectors.leaves(pitched=True).get([-3, -2, -1]),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_19",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="|.",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
    colophon=c,
    fermata="scripts.uverylongfermata",
)
예제 #18
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([0]).leaf(0),
        ),
        # evans.attach("Voice 1", marks(r=1)[0], lambda _: abjad.Selection(_).runs().get([1]).leaf(0)),
        evans.attach(
            "Voice 1",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([2]).leaf(0),
        ),
        evans.attach(
            "Voice 1",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([4]).leaf(0),
        ),
        evans.attach(
            "Voice 1",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([5]).leaf(0),
        ),
        evans.attach(
            "Voice 2",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([0]).leaf(0),
        ),
        evans.attach(
            "Voice 2",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([1]).leaf(0),
        ),
        evans.attach(
            "Voice 2",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([2]).leaf(0),
        ),
        # evans.attach("Voice 2", marks(r=1)[0], lambda _: abjad.Selection(_).runs().get([7]).leaf(0)),
        evans.attach(
            "Voice 3",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([0]).leaf(0),
        ),
        evans.attach(
            "Voice 3",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([1]).leaf(0),
        ),
        evans.attach(
            "Voice 3",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([2]).leaf(0),
        ),
        evans.attach(
            "Voice 3",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([3]).leaf(0),
        ),
        evans.attach(
            "Voice 4",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([0]).leaf(0),
        ),
        evans.attach(
            "Voice 4",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([1]).leaf(0),
        ),
        evans.attach(
            "Voice 4",
            marks(r=1)[0],
            lambda _: abjad.Selection(_).runs().get([2]).leaf(0),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([1, 2]),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([4, 5, 6]),
        ),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 63),
            baca.selectors.leaf(4),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([8, 9, 10]),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([13, 14]),
        ),
        evans.attach("Voice 2", abjad.StopBeam(),
                     baca.selectors.leaf(18, pitched=True)),
        evans.detach("Voice 2", abjad.StopBeam(),
                     baca.selectors.leaf(19, pitched=True)),
        evans.detach("Voice 3", abjad.StartBeam(),
                     baca.selectors.leaf(11, pitched=True)),
        evans.detach("Voice 3", abjad.StopBeam(), baca.selectors.leaf(21)),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ½clt.", direction=abjad.Up),
            baca.selectors.leaf(1, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup ½clt.", direction=abjad.Up),
            baca.selectors.leaf(15, pitched=True),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_11",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ufermata",
)
예제 #19
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([3, 4]),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([7, 8]),
        ),
        evans.call(
            "Global Context",
            tempo_handler,
            lambda _: abjad.Selection(_).leaves().get([10, 11]),
        ),
        # evans.attach(
        #     "Voice 1",
        #     abjad.LilyPondLiteral(
        #         r"^ \markup { finger percussion }",
        #         format_slot="after",
        #     ),
        #     baca.selectors.leaf(0, pitched=True),
        # ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { clt. \raise #0.75 \baca-circle-fast-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { slow bow }",
                format_slot="after",
            ),
            baca.selectors.leaf(-4, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.LilyPondLiteral(
                r"^ \markup { slow bow }",
                format_slot="after",
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                r"^ \markup { slow bow }",
                format_slot="after",
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ½clt.", direction=abjad.Up),
            baca.selectors.leaf(0, pitched=True),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clefs,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_12",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 83),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #20
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_08,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 1",
            abjad.Tie(),
            abjad.select().leaf(14, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Tie(),
            abjad.select().leaf(48, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Tie(),
            abjad.select().leaf(-3, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Tie(),
            abjad.select().leaf(47, pitched=True),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_08,
        evans.call(
            "Voice 9",
            transpose_contrabass,
            abjad.select().runs(),
        ),
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        # evans.attach(
        #     "Voice 2",
        #     clef_whitespace,
        #     baca.leaf(17, pitched=True),
        # ),
        evans.call(
            "Voice 1",
            make_gliss,
            abjad.select().run(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            pizz_markup,
            baca.leaf(15, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.leaf(15, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            pizz_markup,
            baca.leaf(16, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.leaf(16, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            pizz_markup,
            baca.leaf(18, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("mf"),
            baca.leaf(18, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            pizz_markup,
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("mf"),
            baca.leaf(0, pitched=True),
        ),
        evans.call(
            "Voice 8",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                55,
                56,
                57,
                58,
                59,
                60,
                61,
                62,
                63,
                64,
                65,
                66,
                67,
                68,
                69,
                70,
                71,
                72,
                73,
                74,
                75,
                76,
                77,
                78,
                79,
                80,
                81,
                82,
                83,
                84,
            ]),
        ),
        evans.call("Voice 9", apply_spectrum_tremolo,
                   abjad.select().run(2)),
        evans.call(
            "Voice 1",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 1",
            apply_scratch,
            abjad.select().run(-2),
        ),
        evans.call(
            "Voice 2",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 2",
            apply_scratch,
            abjad.select().run(-2),
        ),
        evans.call(
            "Voice 3",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 3",
            apply_scratch,
            abjad.select().run(-2),
        ),
        evans.call(
            "Voice 4",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 5",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 5",
            apply_scratch,
            abjad.select().run(-2),
        ),
        evans.call(
            "Voice 6",
            apply_scratch,
            abjad.select().run(-1),
        ),
        evans.call(
            "Voice 6",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([-3, -4, -5]),
        ),
        evans.call(
            "Voice 7",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([0, 1, 2]),
        ),
        evans.call(
            "Voice 7",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([3, 4]),
        ),
        evans.attach(
            "Voice 8",
            arco_markup,
            abjad.select().leaf(17),
        ),
        evans.attach(
            "Voice 8",
            pizz_markup,
            abjad.select().leaf(25),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("mf"),
            abjad.select().leaf(25),
        ),
        evans.call(
            "Voice 8",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([16, 17, 18]),
        ),
        evans.call(
            "Voice 8",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([19, 20, 21]),
        ),
        evans.call(
            "Voice 9",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([0, 1, 2]),
        ),
        evans.call(
            "Voice 9",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([3, 4, 5, 6]),
        ),
        evans.attach(
            "Voice 2",
            arco_markup,
            baca.leaf(-7, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            arco_markup,
            baca.leaf(-4, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            arco_markup,
            baca.leaf(-5, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            arco_markup,
            baca.leaf(55, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopTextSpan(command=r"\stopTextSpanOne"),
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(command=r"\stopTextSpanOne"),
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.StopTextSpan(command=r"\stopTextSpanOne"),
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopTextSpan(command=r"\stopTextSpanOne"),
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            mark_108,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            mark_90,
            baca.leaf(1),
        ),
        evans.attach(
            "Global Context",
            met_90,
            baca.leaf(1),
        ),
        evans.attach(
            "Global Context",
            mark_108,
            baca.leaf(3),
        ),
        evans.attach(
            "Global Context",
            met_108,
            baca.leaf(3),
        ),
        evans.attach(
            "Global Context",
            mark_90,
            baca.leaf(5),
        ),
        evans.attach(
            "Global Context",
            met_90,
            baca.leaf(5),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_l,
            baca.leaf(5),
        ),
    ],
    score_template=score,
    time_signatures=signatures_08,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="08",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 108),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #21
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=['"Violin I"', '"Violin II"', '"Viola"', '"Violoncello"'],
    abbreviations=['"vn. I"', '"vn. II"', '"va."', '"vc."'],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
    ],
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/hamon_shu/hamon_shu/build/first_stylesheet.ily",
    ],
    segment_name="segment_01",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 90),
    page_break_counts=[90],
)
예제 #22
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_02,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_02,
        evans.call(
            "Voice 9",
            transpose_contrabass,
            abjad.select().runs(),
        ),
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 6",
            clef_whitespace,
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 7",
            clef_whitespace,
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 8",
            clef_whitespace,
            baca.leaf(0),
        ),
        evans.attach(
            "Voice 9",
            clef_whitespace,
            baca.leaf(0),
        ),
        evans.call(
            "Voice 1",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
            ]),
        ),
        evans.call(
            "Voice 1",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
            ]),
        ),
        evans.attach(
            "Voice 1",
            normale_markup,
            baca.leaf(21, pitched=True),
        ),
        evans.call(
            "Voice 2",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
                52,
                53,
                54,
                55,
                56,
                57,
                58,
                59,
                60,
                61,
                62,
                63,
                64,
                65,
                66,
                67,
                68,
                69,
                70,
                71,
                72,
                73,
                74,
                75,
                76,
                77,
                78,
                79,
            ]),
        ),
        evans.call(
            "Voice 2",
            apply_scratch,
            abjad.select().leaves(pitched=True).get(
                [80, 81, 82, 83, 84, 85, 86]),
        ),
        evans.attach(
            "Voice 2",
            normale_markup,
            baca.leaf(80, pitched=True),
        ),
        evans.call(
            "Voice 3",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
                52,
                53,
                54,
                55,
                56,
                57,
                58,
                59,
                60,
                61,
                62,
                63,
                64,
                65,
                66,
                67,
                68,
                69,
            ]),
        ),
        evans.call(
            "Voice 3",
            apply_scratch,
            abjad.select().leaves(pitched=True).get(
                [70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80]),
        ),
        evans.attach(
            "Voice 3",
            normale_markup,
            baca.leaf(70, pitched=True),
        ),
        evans.call(
            "Voice 4",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
                52,
                53,
                54,
                55,
                56,
                57,
                58,
                59,
                60,
                61,
                62,
                63,
                64,
                65,
                66,
                67,
                68,
                69,
                70,
                71,
                72,
                73,
                74,
                75,
                76,
                77,
                78,
                79,
                80,
                81,
                82,
                83,
                84,
                85,
                86,
                87,
            ]),
        ),
        evans.call(
            "Voice 4",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([88, 89, 90, 91, 92]),
        ),
        evans.attach(
            "Voice 4",
            normale_markup,
            baca.leaf(88, pitched=True),
        ),
        evans.call(
            "Voice 5",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
            ]),
        ),
        evans.call(
            "Voice 5",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
                52,
                53,
                54,
                55,
                56,
                57,
                58,
            ]),
        ),
        evans.attach(
            "Voice 5",
            normale_markup,
            baca.leaf(38, pitched=True),
        ),
        evans.call(
            "Voice 6",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
                51,
                52,
                53,
                54,
                55,
                56,
                57,
                58,
            ]),
        ),
        evans.call(
            "Voice 6",
            apply_scratch,
            abjad.select().leaves(pitched=True).get(
                [59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69]),
        ),
        evans.attach(
            "Voice 6",
            normale_markup,
            baca.leaf(59, pitched=True),
        ),
        evans.call(
            "Voice 7",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
            ]),
        ),
        evans.call(
            "Voice 7",
            apply_scratch,
            abjad.select().leaves(pitched=True).get(
                [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56]),
        ),
        evans.attach(
            "Voice 7",
            normale_markup,
            baca.leaf(45, pitched=True),
        ),
        evans.call(
            "Voice 8",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
                18, 19
            ]),
        ),
        evans.call(
            "Voice 8",
            apply_scratch,
            abjad.select().leaves(pitched=True).get([
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
            ]),
        ),
        evans.attach(
            "Voice 8",
            normale_markup,
            baca.leaf(20, pitched=True),
        ),
        evans.call(
            "Voice 9",
            apply_spectrum_tremolo,
            abjad.select().leaves(pitched=True).get([
                0,
                1,
                2,
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                12,
                13,
                14,
                15,
                16,
                17,
                18,
                19,
                20,
                21,
                22,
                23,
                24,
                25,
                26,
                27,
                28,
                29,
                30,
                31,
                32,
                33,
                34,
                35,
                36,
                37,
                38,
                39,
                40,
                41,
                42,
                43,
                44,
                45,
                46,
                47,
                48,
                49,
                50,
            ]),
        ),
        evans.call(
            "Voice 9",
            apply_scratch,
            abjad.select().leaves(pitched=True).get(
                [51, 52, 53, 54, 55, 56, 57, 58, 59, 60]),
        ),
        evans.attach(
            "Voice 9",
            normale_markup,
            baca.leaf(51, pitched=True),
        ),
        evans.attach(
            "Global Context",
            mark_90,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_b,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_c,
            baca.leaf(9),
        ),
    ],
    score_template=score,
    time_signatures=signatures_02,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="02",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 90),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #23
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=["Violin I", "Violin II", "Viola", "Violoncello"],
    abbreviations=["vn. I", "vn. II", "va.", "vc."],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        commands,
    ],
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    fermata="scripts.uverylongfermata",
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/hamon_shu/hamon_shu/build/first_stylesheet.ily",
    ],
    segment_name="segment_07",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    barline="|.",
    tempo=((1, 4), 40),
    rehearsal_mark="F",
    page_break_counts=[1, 8, 7, 9],
    colophon=c,
)
예제 #24
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Samudra""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), 115),
                left_note=(abjad.Note("c'8.")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            abjad.LilyPondLiteral(
                r"\bacaStopTextSpanMM",
                format_slot="after",
            ),
            baca.selectors.leaf(0),
        ),
        evans.call("Voice 1", clefs[0], lambda _: abjad.Selection(_)),
        evans.call("Voice 2", clefs[1], lambda _: abjad.Selection(_)),
        evans.call("Voice 3", clefs[2], lambda _: abjad.Selection(_)),
        evans.call("Voice 4", clefs[3], lambda _: abjad.Selection(_)),
        evans.call(
            "Global Context", tempo_handler, baca.selectors.leaves().get([2, 3])
        ),
        evans.call(
            "Global Context", tempo_handler, baca.selectors.leaves().get([5, 6])
        ),
        evans.attach(
            "Voice 1",
            abjad.StopBeam(),
            baca.selectors.leaf(9),
        ),
        evans.detach(
            "Voice 1",
            abjad.StopBeam(),
            baca.selectors.leaf(11),
        ),
        evans.detach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(14),
        ),
        evans.attach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(15),
        ),
        evans.attach(
            "Voice 1",
            abjad.StopBeam(),
            baca.selectors.leaf(28),
        ),
        evans.attach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(30),
        ),
        evans.detach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(45),
        ),
        evans.detach(
            "Voice 1",
            abjad.StopBeam(),
            baca.selectors.leaf(46),
        ),
        evans.detach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(52),
        ),
        evans.attach(
            "Voice 1",
            abjad.StartBeam(),
            baca.selectors.leaf(53),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopBeam(),
            baca.selectors.leaf(15),
        ),
        evans.detach(
            "Voice 2",
            abjad.StopBeam(),
            baca.selectors.leaf(16),
        ),
        evans.detach(
            "Voice 2",
            abjad.StartBeam(),
            baca.selectors.leaf(49),
        ),
        evans.attach(
            "Voice 2",
            abjad.StartBeam(),
            baca.selectors.leaf(51),
        ),
        evans.detach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(30),
        ),
        evans.attach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(32),
        ),
        evans.detach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(36),
        ),
        evans.attach(
            "Voice 3",
            abjad.StartBeam(),
            baca.selectors.leaf(37),
        ),
        evans.attach(
            "Voice 4",
            abjad.StopBeam(),
            baca.selectors.leaf(14),
        ),
        evans.detach(
            "Voice 4",
            abjad.StopBeam(),
            baca.selectors.leaf(15),
        ),
        evans.detach(
            "Voice 4",
            abjad.StartBeam(),
            baca.selectors.leaf(17),
        ),
        evans.attach(
            "Voice 4",
            abjad.StartBeam(),
            baca.selectors.leaf(18),
        ),
        evans.detach(
            "Voice 4",
            abjad.StartBeam(),
            baca.selectors.leaf(32),
        ),
        evans.attach(
            "Voice 4",
            abjad.StartBeam(),
            baca.selectors.leaf(34),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_17",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 153),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)
예제 #25
0
maker = evans.SegmentMaker(
    instruments=instruments,
    names=[
        '"Violin I-1"',
        '"Violin I-2"',
        '"Violin II-1"',
        '"Violin II-2"',
        '"Viola-1"',
        '"Viola-2"',
        '"Violoncello-1"',
        '"Violoncello-2"',
        '"Contrabass"',
    ],
    abbreviations=[
        '"vln. I-1"',
        '"vln. I-2"',
        '"vln. II-1"',
        '"vln. II-2"',
        '"vla.-1"',
        '"vla.-2"',
        '"vc.-1"',
        '"vc.-2"',
        '"cb."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands_07,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            abjad.select().components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            abjad.select().components(abjad.Score),
        ),
        "skips",
        handler_commands_07,
        evans.call(
            "Voice 9",
            transpose_contrabass,
            abjad.select().runs(),
        ),
        evans.call(
            "score",
            with_sharps,
            abjad.select().components(abjad.Score),
        ),
        # evans.call(
        #     "vertical",
        #     demo,
        #     evans.return_vertical_moment_ties,
        # ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            abjad.select().components(abjad.Score),
        ),
        evans.attach(
            "Voice 1",
            clef_whitespace,
            baca.leaf(17, pitched=True),
        ),
        evans.call(
            "Voice 1",
            make_percussion_staff,
            abjad.select().leaves(pitched=True).get([17, 18, 19, 20]),
        ),
        evans.call(
            "Voice 1",
            apply_rain_tremolo,
            abjad.select().leaves(pitched=True).get([17, 18, 19, 20]),
        ),
        evans.attach(
            "Voice 1",
            rain_markup,
            baca.leaf(17, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            clef_whitespace,
            baca.leaf(17, pitched=True),
        ),
        evans.call(
            "Voice 2",
            make_percussion_staff,
            abjad.select().leaves(pitched=True).get([17, 18, 19]),
        ),
        evans.call(
            "Voice 2",
            apply_rain_tremolo,
            abjad.select().leaves(pitched=True).get([17, 18, 19]),
        ),
        evans.attach(
            "Voice 2",
            rain_markup,
            baca.leaf(17, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            clef_whitespace,
            baca.leaf(17, pitched=True),
        ),
        evans.call(
            "Voice 3",
            make_percussion_staff,
            abjad.select().leaves(pitched=True).get([17, 18, 19, 20, 21, 22]),
        ),
        evans.call(
            "Voice 3",
            apply_rain_tremolo,
            abjad.select().leaves(pitched=True).get([17, 18, 19, 20, 21, 22]),
        ),
        evans.attach(
            "Voice 3",
            rain_markup,
            baca.leaf(17, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            clef_whitespace,
            baca.leaf(17, pitched=True),
        ),
        evans.call(
            "Voice 4",
            make_percussion_staff,
            abjad.select().leaves(pitched=True).get(
                [17, 18, 19, 20, 21, 22, 23]),
        ),
        evans.call(
            "Voice 4",
            apply_rain_tremolo,
            abjad.select().leaves(pitched=True).get(
                [17, 18, 19, 20, 21, 22, 23]),
        ),
        evans.attach(
            "Voice 4",
            rain_markup,
            baca.leaf(17, pitched=True),
        ),
        evans.call("Voice 1", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4])),
        evans.call("Voice 1", make_gliss,
                   abjad.select().leaves(pitched=True).get([15, 16])),
        evans.call("Voice 2", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4])),
        evans.call("Voice 2", make_gliss,
                   abjad.select().leaves(pitched=True).get([15, 16])),
        evans.call("Voice 3", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4])),
        evans.call("Voice 3", make_gliss,
                   abjad.select().leaves(pitched=True).get([15, 16])),
        evans.call("Voice 4", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4])),
        evans.call("Voice 4", make_gliss,
                   abjad.select().leaves(pitched=True).get([15, 16])),
        evans.call("Voice 5", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4, 5])),
        evans.call(
            "Voice 5",
            make_gliss,
            abjad.select().leaves(pitched=True).get([13, 14, 15, 16, 17]),
        ),
        evans.call("Voice 6", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4, 5])),
        evans.call(
            "Voice 6",
            make_gliss,
            abjad.select().leaves(pitched=True).get([13, 14, 15, 16, 17]),
        ),
        evans.call("Voice 7", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4, 5])),
        evans.call(
            "Voice 7",
            make_gliss,
            abjad.select().leaves(pitched=True).get([13, 14, 15, 16, 17]),
        ),
        evans.call("Voice 8", make_gliss,
                   abjad.select().leaves(pitched=True).get([2, 3, 4, 5])),
        evans.call(
            "Voice 8",
            make_gliss,
            abjad.select().leaves(pitched=True).get([13, 14, 15, 16, 17]),
        ),
        evans.call(
            "Voice 9",
            make_gliss,
            abjad.select().leaves(pitched=True).get(
                [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 5",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 6",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 7",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 8",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 9",
            abjad.Dynamic("f"),
            baca.leaf(0, pitched=True),
        ),
        evans.call("Voice 1", apply_scratch,
                   abjad.select().runs().get([2, 3])),
        evans.attach("Voice 1", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(0)),
        evans.attach("Voice 1", normale_markup,
                     abjad.select().run(4).leaf(0)),
        evans.call("Voice 2", apply_scratch,
                   abjad.select().runs().get([2, 3])),
        evans.attach("Voice 2", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(0)),
        evans.attach("Voice 2", normale_markup,
                     abjad.select().run(4).leaf(0)),
        evans.call("Voice 3", apply_scratch,
                   abjad.select().runs().get([2, 3])),
        evans.attach("Voice 3", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(0)),
        evans.attach("Voice 3", normale_markup,
                     abjad.select().run(4).leaf(0)),
        evans.call("Voice 4", apply_scratch,
                   abjad.select().runs().get([2, 3])),
        evans.attach("Voice 4", abjad.Dynamic("f"),
                     abjad.select().run(4).leaf(0)),
        evans.attach("Voice 4", normale_markup,
                     abjad.select().run(4).leaf(0)),
        evans.call("Voice 5", apply_scratch,
                   abjad.select().runs().get([1, 2])),
        evans.attach("Voice 5", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 5", normale_markup,
                     abjad.select().run(3).leaf(0)),
        evans.call("Voice 6", apply_scratch,
                   abjad.select().runs().get([1, 2])),
        evans.attach("Voice 6", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 6", normale_markup,
                     abjad.select().run(3).leaf(0)),
        evans.call("Voice 7", apply_scratch,
                   abjad.select().runs().get([1, 2])),
        evans.attach("Voice 7", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 7", normale_markup,
                     abjad.select().run(3).leaf(0)),
        evans.call("Voice 8", apply_scratch,
                   abjad.select().runs().get([1, 2])),
        evans.attach("Voice 8", abjad.Dynamic("f"),
                     abjad.select().run(3).leaf(0)),
        evans.attach("Voice 8", normale_markup,
                     abjad.select().run(3).leaf(0)),
        evans.attach(
            "Global Context",
            mark_120,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_i,
            baca.leaf(0),
        ),
        evans.attach(
            "Global Context",
            rehearsal_mark_k,
            baca.leaf(9),
        ),
    ],
    score_template=score,
    time_signatures=signatures_07,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/evansdsg2/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/evansdsg2/Scores/passagenwerk/passagenwerk/build/score_stylesheet.ily",
    ],
    segment_name="07",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=True,
    beam_pattern="meter",
    beam_rests=False,
    barline="||",
    tempo=((1, 4), 120),
    rehearsal_mark="",
    fermata="scripts.ufermata",
    page_break_counts=[90],
)
예제 #26
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            flurry_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Voice 2",
            abjad.StopTextSpan(command=r"\stopTextSpanOne"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), 115),
                left_note=(abjad.Note("c'8.")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("pp"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup sp.", direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("p"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup sp.", direction=abjad.Up),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("pp"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup sp.", direction=abjad.Up),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("pp"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup sp.", direction=abjad.Up),
            baca.selectors.leaf(1),
        ),
        evans.call(
            "Voice 1",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 2",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        # evans.call(
        #     "Voice 3",
        #     _slur_runs,
        #     baca.selectors.leaves(),
        # ),
        evans.call(
            "Voice 4",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.detach("Voice 1", abjad.StartSlur(), baca.selectors.leaf(10)),
        evans.attach("Voice 1", abjad.StartSlur(), baca.selectors.leaf(11)),
        evans.detach("Voice 2", abjad.StartSlur(), baca.selectors.leaf(1)),
        evans.attach("Voice 2", abjad.StartSlur(), baca.selectors.leaf(3)),
        evans.attach("Voice 3", abjad.StartSlur(),
                     baca.selectors.leaf(0, pitched=True)),
        evans.attach("Voice 3", abjad.StopSlur(),
                     baca.selectors.leaf(3, pitched=True)),
        evans.attach("Voice 3", abjad.StartSlur(),
                     baca.selectors.leaf(4, pitched=True)),
        evans.attach("Voice 3", abjad.StopSlur(),
                     baca.selectors.leaf(6, pitched=True)),
        evans.attach("Voice 3", abjad.StartSlur(),
                     baca.selectors.leaf(7, pitched=True)),
        evans.attach("Voice 3", abjad.StopSlur(),
                     baca.selectors.leaf(18, pitched=True)),
        evans.attach("Voice 4", abjad.StopSlur(), baca.selectors.leaf(8)),
        evans.attach("Voice 4", abjad.StartSlur(), baca.selectors.leaf(12)),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(8, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("f"),
            baca.selectors.leaf(16, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("f"),
            baca.selectors.leaf(-13, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(-13, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(-11, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(-4, pitched=True),
        ),
        evans.attach(
            "Voice 1",
            abjad.LilyPondLiteral(
                r"\once \override Staff.TupletBracket.direction = #UP",
                format_slot="after",
            ),
            baca.selectors.leaf(9),
        ),
        evans.attach(
            "Voice 1",
            abjad.LilyPondLiteral(
                r"\once \override Staff.TupletBracket.direction = #UP",
                format_slot="after",
            ),
            baca.selectors.leaf(14),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"\once \override Staff.TupletBracket.direction = #UP",
                format_slot="absolute_before",
            ),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"\once \override Staff.TupletBracket.direction = #UP",
                format_slot="after",
            ),
            baca.selectors.leaf(18),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_02",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 153),
    rehearsal_mark="",
    page_break_counts=[90],
)
예제 #27
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(115, 3)),
                left_note=(abjad.Tuplet(multiplier=((2, 3)),
                                        components=[abjad.Note("c'4")])),
                right_note=(abjad.Note("c'2")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), 115),
                left_note=(abjad.Note("c'2")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Global Context",
            abjad.MetronomeMark((1, 4), 38),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Voice 1",
            abjad.LilyPondLiteral(
                r"^ \markup { ½clt. \raise #0.75 \baca-circle-very-wide-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { clt. \raise #0.75 \baca-circle-very-wide-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.LilyPondLiteral(
                r"^ \markup { clt. \raise #0.75 \baca-circle-slow-markup }",
                format_slot="after",
            ),
            baca.selectors.leaf(2, pitched=True),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_09",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],  # prefer system breaks to page breaks?
    fermata="scripts.uverylongfermata",
)
예제 #28
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            link_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), quicktions.Fraction(920, 9)),
                left_note=(
                    abjad.Tuplet(multiplier=(2, 3), components=[abjad.Note("c'4")])
                ),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach("Voice 1", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 2", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 3", bar_literal, baca.selectors.leaf(0)),
        evans.attach("Voice 4", bar_literal, baca.selectors.leaf(0)),
        evans.call(
            "Voice 1",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 2",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 3",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 4",
            _slur_runs,
            baca.selectors.leaves(),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(0, pitched=True),
        ),
        evans.attach(
            "Voice 2", abjad.StopSlur(), baca.selectors.leaf(-19, pitched=True)
        ),
        evans.attach(
            "Voice 2", abjad.StartSlur(), baca.selectors.leaf(-18, pitched=True)
        ),
        evans.attach(
            "Voice 3", abjad.StopSlur(), baca.selectors.leaf(-4, pitched=True)
        ),
        evans.attach(
            "Voice 3", abjad.StartSlur(), baca.selectors.leaf(-3, pitched=True)
        ),
        evans.attach(
            "Voice 4", abjad.StopSlur(), baca.selectors.leaf(-8, pitched=True)
        ),
        evans.attach(
            "Voice 4", abjad.StartSlur(), baca.selectors.leaf(-7, pitched=True)
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=True,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_04",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline=":|.",
    tempo=((1, 4), 153),
    rehearsal_mark=r"x3",
    page_break_counts=[90],
    fermata="scripts.ufermata",
)
예제 #29
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        handler_commands,
        evans.call(
            "vertical",
            global_pitch_handler,
            evans.return_vertical_moment_ties,
        ),
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "Voice 1",
            _add_tremolos,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 2",
            _add_tremolos,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 3",
            _add_tremolos,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 4",
            _add_tremolos,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 1",
            _call_text_spanner,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 2",
            _call_text_spanner,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 3",
            _call_text_spanner,
            baca.selectors.leaves(),
        ),
        evans.call(
            "Voice 4",
            _call_text_spanner,
            baca.selectors.leaves(),
        ),
        evans.attach(
            "Global Context",
            mark_115,
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("fff"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("fff"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("fff"),
            baca.selectors.leaf(1),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("fff"),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("sfp"),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Voice 1",
            abjad.StartHairpin("<|"),
            baca.selectors.leaf(3),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(6),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("f"),
            baca.selectors.leaf(11),
        ),
        evans.attach(
            "Voice 1",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(17),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("sfp"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 2",
            abjad.StartHairpin("<|"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(8),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(9),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("f"),
            baca.selectors.leaf(14),
        ),
        evans.attach(
            "Voice 2",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(17),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("sfp"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 3",
            abjad.StartHairpin("<|"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(7),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(8),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("f"),
            baca.selectors.leaf(11),
        ),
        evans.attach(
            "Voice 3",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(15),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("sfp"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 4",
            abjad.StartHairpin("<|"),
            baca.selectors.leaf(5),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("ff"),
            baca.selectors.leaf(7),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mp"),
            baca.selectors.leaf(8),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("f"),
            baca.selectors.leaf(13),
        ),
        evans.attach(
            "Voice 4",
            abjad.Dynamic("mf"),
            baca.selectors.leaf(18),
        ),
        evans.attach(
            "Global Context",
            section_title,
            baca.selectors.leaf(0),
        ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=clef_handlers,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_01",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=True,
    mm_rests=False,
    barline="||",
    tempo=((1, 4), 115),
    rehearsal_mark="",
    page_break_counts=[90],
)
예제 #30
0
maker = evans.SegmentMaker(
    instruments=insts,
    names=[
        '"Violin I"',
        '"Violin II"',
        '"Viola"',
        '"Violoncello"',
    ],
    abbreviations=[
        '"vn. I"',
        '"vn. II"',
        '"va."',
        '"vc."',
    ],
    name_staves=True,
    commands=[
        rhythm_commands,
        evans.call(
            "score",
            evans.SegmentMaker.transform_brackets,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.call(
            "score",
            evans.SegmentMaker.rewrite_meter,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        "skips",
        evans.call(
            "score",
            evans.SegmentMaker.beam_score,
            lambda _: abjad.Selection(_).components(abjad.Score),
        ),
        evans.attach(
            "Global Context",
            abjad.Markup(
                r"""\markup \override #'(font-name . "STIXGeneral Bold") \box \caps Fluxes/Phylums""",
                direction=abjad.Up,
            ),
            baca.selectors.leaf(0),
        ),
        evans.call(
            "Voice 1",
            evans.PitchHandler([4], apply_all=True),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            evans.PitchHandler([-3], apply_all=True),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            evans.PitchHandler([-24], apply_all=True),
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 1",
            clef_handlers[0],
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 2",
            clef_handlers[1],
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 3",
            clef_handlers[2],
            lambda _: abjad.Selection(_),
        ),
        evans.call(
            "Voice 4",
            clef_handlers[3],
            lambda _: abjad.Selection(_),
        ),
        evans.attach(
            "Global Context",
            evans.metric_modulation(
                metronome_mark=((1, 4), 115),
                left_note=(abjad.Note("c'8.")),
                right_note=(abjad.Note("c'4")),
                modulated_beat=(abjad.Note("c'4")),
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.LilyPondLiteral(
                r"\once \override Staff.Clef.X-extent = ##f \once \override Staff.Clef.extra-offset = #'(-2.25 . 0)",
                format_slot="absolute_before",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.LilyPondLiteral(
                r"\once \override Staff.Clef.X-extent = ##f \once \override Staff.Clef.extra-offset = #'(-2.25 . 0)",
                format_slot="absolute_before",
            ),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(0),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(17),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(11),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(19),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(18),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(30),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(32),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(46),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(68),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(40),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(40),
        ),
        evans.attach(
            "Voice 3",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(54),
        ),
        evans.attach(
            "Voice 4",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(81),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(52),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup { full bows as possible }",
                         direction=abjad.Up),
            baca.selectors.leaf(67),
        ),
        evans.attach(
            "Voice 1",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(62),
        ),
        evans.attach(
            "Voice 2",
            abjad.Markup(r"\markup ord.", direction=abjad.Up),
            baca.selectors.leaf(77),
        ),
        # evans.attach(
        #     "Global Context",
        #     abjad.LilyPondLiteral(r"\break", format_slot="absolute_before"),
        #     baca.selectors.leaf(-2),
        # ),
    ],
    score_template=score,
    time_signatures=time_signatures,
    clef_handlers=None,
    tuplet_bracket_noteheads=False,
    add_final_grand_pause=False,
    score_includes=[
        "/Users/gregoryevans/abjad/docs/source/_stylesheets/abjad.ily",
        "/Users/gregoryevans/Scores/adumbration/adumbration/build/first_stylesheet.ily",
    ],
    segment_name="segment_14",
    current_directory=pathlib.Path(__file__).resolve().parent,
    cutaway=False,
    beam_pattern="meter",
    beam_rests=False,
    mm_rests=False,
    barline=".|:",
    tempo=((1, 4), 153),
    rehearsal_mark="",
    page_break_counts=[90],
    fermata="scripts.ushortfermata",
)