Commit graph

10 commits

Author SHA1 Message Date
Simon Howard
bf01cc746f genmidi: Disable OPL2 waveform checks.
Pretty much every Sound Blaster-compatible card used an OPL3 chip
(everything since the Sound Blaster 2 in October 1991) so it seems
reasonable to add this as a requirement. Because of the way that the new
waveforms are arranged in OPL3, it's a pretty graceful degradation if
they're used on an OPL2 anyway (see datasheet, page 14).
2023-06-24 01:07:50 -04:00
Simon Howard
276118107b genmidi: Add tune= for setting fine tune field.
The fine tuning field was previously being hard-coded to the value of
128 with no option to change it. DMXGUS in particular makes use of this
field to tune individual instruments, so let's add proper support for
it.
2023-06-24 00:46:52 -04:00
Mike Swanson
6eef9be73a use python3 only for building
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.
2019-09-06 14:43:50 -07:00
Mike Swanson
4701d8f351 Blacken all Python files
Using the black code reformatter, pass it over all our Python files.
This allows for a consistent style across the code base.

Exception: lumps/dmxgus/stats.py, for readability.
2019-09-04 19:36:23 -07:00
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
Simon Howard
3b96d7f1de genmidi: Split off GENMIDI code into separate file.
Split out code for handling the GENMIDI format into a separate genmidi.py
file. Add routine to load the contents of a GENMIDI lump.
2012-01-04 01:20:38 +00:00
Simon Howard
3fb0fdac05 genmidi: Add script to make GENMIDI lump. 2012-01-03 00:03:16 +00:00
Simon Howard
e10f006a71 genmidi: Add option for note offset. 2012-01-03 00:03:16 +00:00
Simon Howard
9071466be9 genmidi: Add copyright headers to Python files. 2012-01-03 00:03:15 +00:00
Simon Howard
a21e76c70c genmidi: Add config file for GENMIDI builder.
Config lists the instrument files to use to build the GENMIDI lump.
Some instruments are not yet provided and are nulled out using a dummy
SBI file that doesn't play anything.
2012-01-03 00:03:15 +00:00