{"version":"1.0","type":"rich","title":"Python script to reconstitute music from a PICO-8 cartridge","description":"This script reconstructs music tracks from a PICO-8 cartridge by parsing the cartridge’s `__music__` section to identify enabled sound patterns, then mixing the corresponding exported WAV files into complete songs. It reads 64 sound files using the `wave` module, unpacks their 16-bit samples with `struct.unpack`, sums the active tracks per frame, and applies a 61-sample crossfade to prevent looping pops. The code uses `argparse` for command-line arguments and writes the final mixed tracks as new WAV files via `wave.open` and `writeframes`.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-250d5e39daeeecb8578f2907375a636f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}