diff --git a/mod2taud.py b/mod2taud.py index f3c8785..930612a 100644 --- a/mod2taud.py +++ b/mod2taud.py @@ -344,7 +344,7 @@ def encode_effect(cmd: int, arg: int, ch: int = 0, row: int = 0) -> tuple: return (TOP_S, 0xE000 | (x << 8), None, None) if sub == 0xF: funk_table = [0, 5, 6, 7, 8, 0xA, 0xB, 0xD, 0x10, 0x13, 0x16, 0x1A, 0x20, 0x2B, 0x40, 0x80] - return (TOP_S, 0xF000 | funk_table[x]), None, None) + return (TOP_S, 0xF000 | funk_table[x], None, None) return (TOP_NONE, 0, None, None) if cmd == 0xF: diff --git a/s3m2taud.py b/s3m2taud.py index efdb20c..ebaa9ec 100644 --- a/s3m2taud.py +++ b/s3m2taud.py @@ -342,7 +342,7 @@ def encode_effect(cmd: int, arg: int, ch: int = 0, row: int = 0, return (TOP_S, 0x8000 | pan8, None, None) if sub == 0xF: funk_table = [0, 5, 6, 7, 8, 0xA, 0xB, 0xD, 0x10, 0x13, 0x16, 0x1A, 0x20, 0x2B, 0x40, 0x80] - return (TOP_S, 0xF000 | funk_table[x]), None, None) + return (TOP_S, 0xF000 | funk_table[x], None, None) # S0/S6/S7/S9/SA: filter, NNA, sound-control, stereo — drop silently. return (TOP_NONE, 0, None, None)