#!/usr/bin/env python3

import argparse

from reader import MusicXMLReader, MusicXMLParseError
from writer import Jianpu99Writer, WriterError

def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file', help="input file in MusicXML format")
    return parser.parse_args()


if __name__ == "__main__":
    args = parseArguments()

    reader = MusicXMLReader(args.input_file)
    writer = Jianpu99Writer()

    try:
        print(writer.generate(reader))
    except WriterError as e:
        print("error: %s" % str(e))

a516f52cd2c2365b19b93a7243325d6b2423809e
<mask token>

<mask token>


def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file', help='input file in MusicXML format')
    return parser.parse_args()


<mask token>

<mask token>


def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file', help='input file in MusicXML format')
    return parser.parse_args()


if __name__ == '__main__':
    args = parseArguments()
    reader = MusicXMLReader(args.input_file)
    writer = Jianpu99Writer()
    try:
        print(writer.generate(reader))
    except WriterError as e:
        print('error: %s' % str(e))

import argparse
from reader import MusicXMLReader, MusicXMLParseError
from writer import Jianpu99Writer, WriterError


def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file', help='input file in MusicXML format')
    return parser.parse_args()


if __name__ == '__main__':
    args = parseArguments()
    reader = MusicXMLReader(args.input_file)
    writer = Jianpu99Writer()
    try:
        print(writer.generate(reader))
    except WriterError as e:
        print('error: %s' % str(e))

#!/usr/bin/env python3

import argparse

from reader import MusicXMLReader, MusicXMLParseError
from writer import Jianpu99Writer, WriterError

def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument('input_file', help="input file in MusicXML format")
    return parser.parse_args()


if __name__ == "__main__":
    args = parseArguments()

    reader = MusicXMLReader(args.input_file)
    writer = Jianpu99Writer()

    try:
        print(writer.generate(reader))
    except WriterError as e:
        print("error: %s" % str(e))
