LEFT | RIGHT |
1 #!@TARGET_PYTHON@ | 1 #!@TARGET_PYTHON@ |
2 # | 2 # |
3 # midi2ly.py -- LilyPond midi import script | 3 # midi2ly.py -- LilyPond midi import script |
4 | 4 |
5 # This file is part of LilyPond, the GNU music typesetter. | 5 # This file is part of LilyPond, the GNU music typesetter. |
6 # | 6 # |
7 # Copyright (C) 1998--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> | 7 # Copyright (C) 1998--2020 Han-Wen Nienhuys <hanwen@xs4all.nl> |
8 # Jan Nieuwenhuizen <janneke@gnu.org> | 8 # Jan Nieuwenhuizen <janneke@gnu.org> |
9 # | 9 # |
10 # LilyPond is free software: you can redistribute it and/or modify | 10 # LilyPond is free software: you can redistribute it and/or modify |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 o = global_options.output | 1202 o = global_options.output |
1203 (outdir, outbase) = os.path.split (o) | 1203 (outdir, outbase) = os.path.split (o) |
1204 | 1204 |
1205 if outdir and outdir != '.' and not os.path.exists (outdir): | 1205 if outdir and outdir != '.' and not os.path.exists (outdir): |
1206 os.mkdir (outdir, 0o777) | 1206 os.mkdir (outdir, 0o777) |
1207 | 1207 |
1208 convert_midi (f, o) | 1208 convert_midi (f, o) |
1209 | 1209 |
1210 if __name__ == '__main__': | 1210 if __name__ == '__main__': |
1211 main () | 1211 main () |
LEFT | RIGHT |