Python 2 is very near end-of-life, and Python3-compatible changes to a few scripts introduced compatibility problems with 2.7 again. It went unnoticed for me since my system symlinks "python" to "python3", but it broke the build on systems where that symlink is still python2. At this point in time, I feel it is worth targetting modern Python and forgetting about 2.7.
14 lines
294 B
Python
Executable File
14 lines
294 B
Python
Executable File
#!/usr/bin/env python3
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
import genmidi
|
|
import sys
|
|
|
|
if len(sys.argv) != 2:
|
|
print("Usage: %s <filename>" % sys.argv[0], file=sys.stderr)
|
|
sys.exit(-1)
|
|
|
|
from config import INSTRUMENTS, PERCUSSION
|
|
|
|
genmidi.write(sys.argv[1], INSTRUMENTS + PERCUSSION)
|