Skip to main content

pysoundmonitor

Pure-Python player, reader and detector for Soundmonitor (64'er / Chris Hulsbeck) C64 SID tunes (HVSC tracker #6).

Consumes .sid files (PSID/RSID containers) and bare .prg images through the shared pysidtracker base: the Soundmonitor player is relocatable, so it is located by a relocation-invariant hardware-register fingerprint and packed/relocating builds are detected by running the tune's init in a 6502 emulator — container headers are not trusted. SoundMonitorPlayer reproduces the replay byte-exact (validated against the sidtrace oracle) by running the playroutine as a pysidtracker.playspec spec (specs/soundmonitor.play) on the memory the tune's own init leaves.

Install

pip install pysoundmonitor

Usage

import pysoundmonitor as psm

song = psm.read("tune.sid")            # path; or psm.parse(raw_bytes)
print(song.cia_latch, len(song.sections), len(song.instruments))
for section in song.sections:
    print(section.cadence, section.tempo, section.pattern_length)

# Byte-exact playback (a playspec SpecPlayer over the tune's post-init memory):
player = psm.SoundMonitorPlayer(open("tune.sid", "rb").read())
grid = player.render_grid(250)         # 25-reg, forward-filled per-frame grid
writes = list(player.register_writes(250))   # pysidtracker RegWrite log
player.render_wav("tune.wav", 250)     # emulated SID (pylibresidfp)

# Relocation-tolerant detection (untrustworthy header):
det = psm.SoundMonitorSidParser().detect("tune.sid")
print(det.kind)                        # DIRECT / RELOCATED / PACKED / UNKNOWN

Development

pip install -e ".[dev]"
pysid-tune-fetch --tests tests     # pre-cache the suite's HVSC tunes (never committed)
pytest                             # offline synthetic fixtures + HVSC corpus
pytest -m oracle -n auto           # byte-exact vs the sidtrace Docker oracle

Test tunes are HVSC copyright works: fetched and cached on demand (gitignored), never committed. The oracle job needs Docker (anarkiwi/sidtrace) and renders each covered tune with SoundMonitorPlayer, asserting a frame-exact match — see docs/format.md.

See docs/format.md for the container, detection, song-data model and song grammar, and its HVSC oracle survey section for the whole-song comparison over every HVSC Soundmonitor tune.

License

Apache 2.0 — see LICENSE.

Metadata

Release files for pysoundmonitor 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysoundmonitor 0.10.1
File Size Uploaded Provenance Actions
pysoundmonitor-0.10.1.tar.gz 52.4 kB With provenance Details for pysoundmonitor-0.10.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysoundmonitor 0.10.1
File Interpreter ABI Platform Actions
pysoundmonitor-0.10.1-py3-none-any.whl Python 3 none any Details for pysoundmonitor-0.10.1-py3-none-any.whl

Total release size: 92.1 kB

Release files / pysoundmonitor-0.10.1.tar.gz

Download URL pysoundmonitor-0.10.1.tar.gz
Size 52.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2280c2fb3eb4ded233e35e5fefa62e0833c0dcc53277a2a915fbdd1d468adf23
BLAKE2b-256 checksum
How to use checksums
6166f618e21594b3403602b0fd6c1f03b612e445ffdcc882df1612d586edced6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / pysoundmonitor-0.10.1-py3-none-any.whl

Download URL pysoundmonitor-0.10.1-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
389b4d1ec9d14ffe2c261a596e0ec0fec641f26149a806f068436de00e01955c
BLAKE2b-256 checksum
How to use checksums
b83e8a5138e1afc9845efd38bb730f8d477b3ba3ab4f800a2b503daac52eb272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for pysoundmonitor 0.10.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pysoundmonitor-0.10.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page