def VA(voice): voice = score["Viola.Music"] music = library.make_stroke_rhythm( accumulator.get(1, 6), -2, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([0, 1], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(7, 12), -2, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([0], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(13, 18), -2, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([0], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(19, 24), -2, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([0], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(25, 30), -2, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([0], 2)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(31, 36), 0, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([1], 2)), ), ) voice.extend(music) music = baca.make_mmrests(accumulator.get(37, 39), head=voice.name) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(40, 45), 0, ) voice.extend(music) music = baca.make_mmrests(accumulator.get(46)) voice.extend(music) music = library.make_declamation_rhythm(accumulator.get(47)) voice.extend(music) music = baca.make_mmrests(accumulator.get(48), head=voice.name) voice.extend(music) music = baca.make_repeat_tied_notes(accumulator.get(49, 53), do_not_rewrite_meter=True) voice.extend(music) music = baca.make_mmrests(accumulator.get(54), head=voice.name) voice.extend(music) music = library.make_declamation_rhythm(accumulator.get(55)) voice.extend(music) music = baca.make_mmrests(accumulator.get(56), head=voice.name) voice.extend(music) music = baca.make_repeat_tied_notes(accumulator.get(57)) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(58, 63), 0, ) voice.extend(music) music = baca.make_mmrests(accumulator.get(64), head=voice.name) voice.extend(music) music = library.make_urtext_field_rhythm(accumulator.get(65)) voice.extend(music) music = library.make_circle_rhythm( accumulator.get(66), (1, 2), rmakers.force_rest(lambda _: baca.select.lt(_, 0)), remainder=abjad.LEFT, ) voice.extend(music) music = library.make_urtext_field_rhythm(accumulator.get(67)) voice.extend(music) music = library.make_flight_rhythm( accumulator.get(68, 83), "B", -2, ) voice.extend(music) music = library.make_continuous_tremolo_material(accumulator.get(84, 89)) pleaf = baca.select.pleaf(music, 0) baca.repeat_tie_function(pleaf) voice.extend(music) music = baca.make_repeat_tied_notes(accumulator.get(90, 93), do_not_rewrite_meter=True) voice.extend(music) music = library.make_continuous_tremolo_material(accumulator.get(94, 96)) voice.extend(music) music = library.make_desynchronization_rhythm( accumulator.get(97, 98), 4, [2], ) voice.extend(music) music = baca.make_mmrests(accumulator.get(99), head=voice.name) voice.extend(music)
voice = score["Cello.Music"] # 1 music = baca.make_skeleton("{" r" c4 \times 3/4 { c4 c \times 2/3 { c c c } }" " }") voice.extend(music) # 2 music = baca.make_skeleton("{ c1 c4 }") voice.extend(music) # 3 music = baca.make_skeleton("{ c4 c8 }") leaf = abjad.select.leaf(music, -1) baca.repeat_tie_function(leaf) voice.extend(music) # 4 music = baca.make_skeleton("{ c4 c8 }") voice.extend(music) # 5 music = baca.make_skeleton("{ c4 c8 }") voice.extend(music) # 6 music = baca.make_skeleton("{ c2.. c8 }") leaf = abjad.select.leaf(music, -1) baca.repeat_tie_extra_offset_function(leaf, (-1.5, 0)) baca.repeat_tie_function(leaf)
def V2(voice): voice = score["Violin.2.Music"] music = library.make_stroke_rhythm( accumulator.get(1, 6), -1, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([1], 2)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(7, 12), -1, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([1], 2)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(13, 18), -1, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([1], 2)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(19, 24), 0, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([2], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(25, 30), 0, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([2], 3)), ), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(31, 36), 0, rmakers.force_rest(lambda _: baca.select.tuplets(_, ([2], 3)), ), ) voice.extend(music) music = baca.make_mmrests(accumulator.get(37, 39), head=voice.name) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(40, 45), 0, ) voice.extend(music) music = baca.make_mmrests(accumulator.get(46)) voice.extend(music) music = library.make_declamation_rhythm(accumulator.get(47)) voice.extend(music) music = baca.make_mmrests(accumulator.get(48, 54), head=voice.name) voice.extend(music) music = library.make_declamation_rhythm(accumulator.get(55)) voice.extend(music) music = baca.make_mmrests(accumulator.get(56), head=voice.name) voice.extend(music) music = library.make_accelerando( accumulator.get(57), (1, 4), (2, 16), ) voice.extend(music) music = library.make_stroke_rhythm( accumulator.get(58, 63), 0, ) voice.extend(music) music = baca.make_mmrests(accumulator.get(64), head=voice.name) voice.extend(music) music = library.make_urtext_field_rhythm(accumulator.get(65)) voice.extend(music) music = library.make_circle_rhythm( accumulator.get(66), (1, 4), ) voice.extend(music) music = library.make_urtext_field_rhythm(accumulator.get(67)) voice.extend(music) music = library.make_flight_rhythm( accumulator.get(68, 83), "C", -1, ) voice.extend(music) music = library.make_continuous_tremolo_material(accumulator.get(84, 92)) pleaf = baca.select.pleaf(music, 0) baca.repeat_tie_function(pleaf) voice.extend(music) music = baca.make_mmrests(accumulator.get(93), head=voice.name) voice.extend(music) music = library.make_continuous_tremolo_material(accumulator.get(94, 96)) voice.extend(music) music = library.make_desynchronization_rhythm( accumulator.get(97, 98), 4, [0], ) voice.extend(music) music = baca.make_mmrests(accumulator.get(99), head=voice.name) voice.extend(music)