Skip to content

Instantly share code, notes, and snippets.

View Kidpaddleetcie's full-sized avatar

KidpaddleetcieGlin Kidpaddleetcie

View GitHub Profile
@w4kfu
w4kfu / adp_converter.py
Last active January 17, 2024 09:47
Stupid Invaders ADP to WAV
import struct
import wave
import argparse
amplitude_lookuptable = [
0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007,
0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x0010,
0x0011, 0x0013, 0x0015, 0x0017, 0x0019, 0x001C, 0x001F, 0x0022,
0x0025, 0x0029, 0x002D, 0x0032, 0x0037, 0x003C, 0x0042, 0x0049,
0x0050, 0x0058, 0x0061, 0x006B, 0x0076, 0x0082, 0x008F, 0x009D,