Pure-Python reader and player for DMC (Demo Music Creator) SID tunes
Project description
pydmcsid
Pure-Python reader and player for DMC (Demo Music Creator) SID tunes — the
C64 player by Brian/Graffity ("-PLAYER (C) BRIAN/GRAFFITY!").
A DMC .sid is the player binary plus the per-tune song data resident in the same
image. pydmcsid loads the image, locates the per-tune table bases from the player
code operands (no baked addresses — a differently-sized tune relocates its tables),
and runs a faithful integer transcription of the 6502 play routine, exposing the
per-frame SID register writes.
Usage
import pydmcsid
song = pydmcsid.read("tune.sid")
for w in pydmcsid.iter_register_writes(song, max_frames=50 * 60):
print(w.clock, w.reg, w.val) # absolute CPU cycle, $D4xx reg offset, value
iter_register_writes follows the shared py* register-log convention
(pygoattracker / pymusicassembler): one RegWrite(clock, reg, val) per SID
write, frames cycles_per_frame apart. The DMC player emits one tight write burst
per VBI play call.
What it models
Tempo divider, per-voice orderlist walk (transpose / loop / stop), pattern walk
(note / instrument-select / duration / effect / gate), stride-11 instrument records
driving PW init + a 16-bit PW sweep, the $FF-arp wavetable, triangle vibrato,
glide, the pitch-slide effect and a 6-step filter sweep, the hard-restart window,
and the final per-voice frequency compose. Transcribed from the DMC disassembly.
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydmcsid-0.1.0.tar.gz.
File metadata
- Download URL: pydmcsid-0.1.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d34c9024a1fb53f8991e59218ed02c13b43c7dd4a03da7ca2e58e7de428f3b
|
|
| MD5 |
11c3972872c9129a648e1af042a2a859
|
|
| BLAKE2b-256 |
b17ba59b953b56daa2e1ae01368bdcba5a11098ecb0b9db8bbdb9482bec7cdcd
|
Provenance
The following attestation bundles were made for pydmcsid-0.1.0.tar.gz:
Publisher:
release.yml on anarkiwi/pydmcsid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydmcsid-0.1.0.tar.gz -
Subject digest:
b3d34c9024a1fb53f8991e59218ed02c13b43c7dd4a03da7ca2e58e7de428f3b - Sigstore transparency entry: 1965166401
- Sigstore integration time:
-
Permalink:
anarkiwi/pydmcsid@f6f29ca15cfb9ef2c17a1598aa493b7952dc8a40 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/anarkiwi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f6f29ca15cfb9ef2c17a1598aa493b7952dc8a40 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pydmcsid-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydmcsid-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db93ebaf60aba0177ad9706075c11f420e5e04a93b1a2ce8afb9cf399704ec7a
|
|
| MD5 |
902ddb743d4a409700f19a2a4716a06f
|
|
| BLAKE2b-256 |
d5dcf52910e07f9402a289142d0d375e0fd03f9b0bedcc0bf67019e006a7a853
|
Provenance
The following attestation bundles were made for pydmcsid-0.1.0-py3-none-any.whl:
Publisher:
release.yml on anarkiwi/pydmcsid
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydmcsid-0.1.0-py3-none-any.whl -
Subject digest:
db93ebaf60aba0177ad9706075c11f420e5e04a93b1a2ce8afb9cf399704ec7a - Sigstore transparency entry: 1965166608
- Sigstore integration time:
-
Permalink:
anarkiwi/pydmcsid@f6f29ca15cfb9ef2c17a1598aa493b7952dc8a40 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/anarkiwi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f6f29ca15cfb9ef2c17a1598aa493b7952dc8a40 -
Trigger Event:
release
-
Statement type: