Example #1
0
    print 'Inserting clef changes ...'
    helpers.insert_clef_changes(score)

    print 'Annotating block timing attributes ...'
    blocks = manifolds.etc.helpers.get_pitch_staff_blocks(score)
    timing_attributes = manifolds.etc.helpers.annotate_block_timing(blocks)

    print 'Recording block member information ...'
    manifolds.etc.helpers.record_block_member_information(blocks)

    print 'Marking up block member information ...'
    manifolds.etc.helpers.mark_up_block_member_information(blocks)

    print 'Applying score layout ...'
    helpers.apply_score_layout(score)

    print 'Applying end-of-block whitespace scorewide ...'
    manifolds.etc.helpers.apply_end_of_block_whitespace_scorewide(score)

    print 'Setting LilyPond bar numbers ...'
    manifolds.etc.helpers.set_lilypond_bar_numbers(blocks)

    print 'Handling I/O ...'
    dir_name = os.path.abspath(os.path.dirname(__file__))
    file_name = os.path.join(dir_name, 'score', 'pitches_by_block')
    template = os.path.join(dir_name, 'score', 'template.ly')
    title = ['Manifolds', 'pitches by block']
    footer = markup.big_centered_page_number(
        r'pitches \hspace #1 by \hspace #1 block')
    io.write_and_show(score, file_name, template, title, footer, write = write)
Example #2
0
    write = baca.tools.check_score_builder_commandline(sys.argv, usage)
    dirname = os.path.abspath(os.path.dirname(__file__))
    template = os.path.join(dirname, 'score', 'template.ly')

    print 'Making meters ...'
    meters = mfk_make_meters()

    print 'Making score ...'
    measures = measuretools.make_spacer_skip_measures(meters)
    staff = stafftools.RhythmicStaff(measures)
    score = Score([staff])

    print 'Fusing measures ...'
    mfk_fuse_measures(staff)

    print 'Fusing measures again ...'
    mfk_fuse_measures(staff)

    print 'Laying out score ...'
    apply_score_layout(score)

    print 'Checking score ...'
    check.assert_wf(score)

    print 'Handling I/O ...'
    name = os.path.join(dirname, 'score', 'doubly_fused_measures')
    title = ['Mannigfaltigkeiten']
    title.append('doubly fused measures')
    io.write_and_show(score, name, template, title, write=write)
    print ''