Godley / MuseParse

Repository for a python music parser. This works with MusicXML as the input format which forms a tree of objects in memory representing the piece. This can be optionally outputted to lilypond which produces a PDF, or perused for your own uses.
MIT License
7 stars 2 forks source link

Platform independence #34

Open Godley opened 8 years ago

Godley commented 8 years ago

In some cases commands and lines of code differ. I would suggest we should probably abstract away from just using an if statement and have a separate class which manages: a. the OS b. the lines of code to use in each instance

I would imagine this would work as a class for each OS, which has a method for each area which differs per platform. The program would request the class for the appropriate OS and use that instead of switching between multiple endings of sys.platform.