baca.selectors.leaf(0), ), evans.attach( "Voice 3", c, baca.selectors.leaf(59), ), evans.attach( "Voice 4", abjad.LilyPondLiteral(r"\key d \major"), baca.selectors.leaf(0), ), evans.detach( "Voice 3", abjad.Markup( r"""\markup \musicglyph #"scripts.ushortfermata" """, direction=abjad.Up, ), baca.selectors.leaf(60), ), evans.attach( "Global Context", evans.metric_modulation( metronome_mark=((1, 4), 80), left_note=(abjad.Tuplet(multiplier=(4, 5), components=[abjad.Note("c'8")])), right_note=(abjad.Note("c'16")), modulated_beat=(abjad.Note("c'4")), ), baca.selectors.leaf(0), ), ]
from chalk_line.materials.pitch.segment_01.clef_handlers import clef_handlers from chalk_line.materials.score_structure.instruments import instruments as insts from chalk_line.materials.score_structure.score_structure import score from chalk_line.materials.score_structure.segment_01.time_signatures import ( time_signatures, ) from chalk_line.materials.timespans.segment_01.convert_timespans import ( handler_commands, rhythm_commands, ) commands = [ evans.detach( "Voice 1", abjad.Dynamic("mf"), baca.pleaf(16), ), evans.detach( "Voice 1", abjad.Dynamic("f"), baca.pleaf(20), ), evans.detach( "Voice 1", abjad.Dynamic("p"), baca.pleaf(24), ), evans.detach( "Voice 1", abjad.Dynamic("mf"),
staff_padding=0.5, right_padding=1, forget=False, ) bis_handler(measure_30_trem[:]) abjad.attach( abjad.LilyPondLiteral( [r"\once", r"\override Stem.stencil = ##f"], format_slot="before" ), baca.select(measure_30_trem).leaves()[1], ) commands = [ evans.detach( "Voice 1", abjad.Tie(), baca.selectors.leaf(26), ), evans.attach( "Voice 1", abjad.Dynamic("pp"), baca.selectors.leaf(26), ), evans.replace( "Voice 1", measure_30_trem, lambda _: abjad.Selection(_).tuplets().get([3]), ), ] maker = evans.SegmentMaker(
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(
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)),
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,
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(),
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,
"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"),
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,
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(),