コード例 #1
0
            print('Your song in HTML is located at:', html_path)

    if RenderModes.SVG in ENABLED_MODES:
        svg_path0 = os.path.join(SONG_DIR_OUT, song_title + '.svg')
        filenum, svg_path = mysong.write_svg(svg_path0, CSS_MODE, CSS_PATH)

        if svg_path != '':
            print('--------------------------------------------------')
            print('Your song in SVG is located in:', SONG_DIR_OUT)
            print('Your song has been split into ' + str(filenum + 1) + ' files '
                                                                        'between ' + os.path.split(svg_path0)[
                      1] + ' and ' + os.path.split(svg_path)[1])

    if RenderModes.PNG in ENABLED_MODES:
        png_path0 = os.path.join(SONG_DIR_OUT, song_title + '.png')
        filenum, png_path = mysong.write_png(png_path0)

        if png_path != '':
            print('--------------------------------------------------')
            print('Your song in PNG is located in:', SONG_DIR_OUT)
            print('Your song has been split into ' + str(filenum + 1) + ' files '
                                                                        'between ' + os.path.split(png_path0)[
                      1] + ' and ' + os.path.split(png_path)[1])

    if RenderModes.MIDI in ENABLED_MODES:
        midi_path = os.path.join(SONG_DIR_OUT, song_title + '.mid')
        midi_path = mysong.write_midi(midi_path)
        if midi_path != '':
            print('--------------------------------------------------')
            print('Your song in MIDI is located at:', midi_path)