freedoom/lumps/genmidi/mkgenmidi
Mike Swanson 8835afef5f Copyright date bump and apply SPDX tags.
The tags are shorthand for the license of each file and avoid
copying the full license text into each one (and avoids having
to manually update the dates in each one...).
2017-02-15 16:41:53 -08:00

14 lines
285 B
Python
Executable file

#!/usr/bin/env python
# SPDX-License-Identifier: BSD-3-Clause
import genmidi
import sys
if len(sys.argv) != 2:
print >> sys.stderr, "Usage: %s <filename>" % sys.argv[0]
sys.exit(-1)
from config import INSTRUMENTS, PERCUSSION
genmidi.write(sys.argv[1], INSTRUMENTS + PERCUSSION)