Ejemplo n.º 1
0
def make_parts(
        section="lyrical",
        from_staves=(),
        from_staff_groups=(),
):  # args are instrument staff names

    lib = library.Library()

    if section == "intro":
        intro_all.to_lib(lib)
        title = "Memory Bubbles I."
    elif section == "lyrical":
        lyrical_all.to_lib(lib)
        title = "Memory Bubbles II."
    elif section == "rock":
        rock_all.to_lib(lib)
        title = "Memory Bubbles III."
    elif section == "integrate":
        integrate_all.to_lib(lib)
        title = "Memory Bubbles IV."

    sc = lib[section + "_score"]

    sc.info("Created score")

    for staff_name in from_staves:
        make_part(section, sc, title=title, staff_name=staff_name)

    for staff_group_name in from_staff_groups:
        make_part(section, sc, title=title, staff_group_name=staff_group_name)
Ejemplo n.º 2
0
        # staff.lines.transformed(calliope.Label())

        # TO DO: WHY DOESN'T THIS WORK?????
        if segs := staff.segments:
            main_seg = segs[0]
            for next_seg in list(segs[1:]):
                main_seg.extend(next_seg)
                next_seg.parent.remove(next_seg)
            main_seg.rehearsal_mark_number = 11
            main_seg.compress_full_bar_rests = True
    s.midi_tempo = 96

    return s


def to_lib(lib):
    integrate.to_lib(lib)
    lib.add(tenor_sax_half_counter_score, score1, namespace="integrate1")


if __name__ == '__main__':
    lib = library.Library()
    to_lib(lib)

    calliope.illustrate(
        lib["integrate1_score1"],
        as_midi=True,
        open_midi=True,
        # open_pdf=False,
    )