Skip to main content

unitracker-player

The generic player of canonical unitracker documents. It reads a document with the grammar of unitracker-grammar and plays it to the state of the 25 SID registers ($D400-$D418) at the end of each tick. It knows only the document: its instruments, programs, expressions, phrases and timeline, and the note table F(k) at its clock.

Install

pip install "unitracker-player @ git+https://github.com/anarkiwi/unitracker-player"

Use

from unitracker_player import load, play, Player

frames = play(text)               # np.uint8 array (ticks, 25), to the end of an ending song
frames = play(text, ticks=3000)   # a looping song needs ticks
song = load(text)                 # parse and compile once; play(song, ...) reuses it
player = Player(song)
regs = player.step()              # the 25 registers after one tick; None once the song ends

read(text) returns the document as plain dataclasses. A text outside the grammar raises unitracker_grammar.CanonicalError; a document the player refuses raises PlayError.

unitracker-play song.yaml --ticks 3000 --out frames.npz   # array "frames"
unitracker-play song.yaml --out frames.csv                # one row per tick, d400..d418
unitracker-play song.yaml                                 # CSV to stdout

Docs

docs/semantics.md: the meaning of every construct of the grammar as played.

Metadata

Release files for unitracker-player 0.2.0

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

Source distribution (sdist)

Source distribution for unitracker-player 0.2.0
File Size Uploaded Provenance
unitracker_player-0.2.0.tar.gz 33.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unitracker-player 0.2.0
File Interpreter ABI Platform
unitracker_player-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.2 kB

Release files / unitracker_player-0.2.0.tar.gz

Download URL unitracker_player-0.2.0.tar.gz
Size 33.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6dd5736781d4ddafc0c11087ae801eb464a08f4f8e013e5db8cd7264659759f4
BLAKE2b-256 checksum
How to use checksums
ac4b261297a15e860ec76f49eb6376fc8b13b17c948abc61deaa8e4bb9d089b0
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 Oct 22, 2026.

Transparency log

Release files / unitracker_player-0.2.0-py3-none-any.whl

Download URL unitracker_player-0.2.0-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
afc33643c91ad0c510df7466b16add349656fd9437b2c3a99a7721f40db3a203
BLAKE2b-256 checksum
How to use checksums
47e7ce7dc61f734e6ff890b7019eb1a23e72ec470af2680e63e5b8347192beb4
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 Oct 22, 2026.

Transparency log

Security for unitracker-player 0.2.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unitracker_player-0.2.0.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 Oct 22, 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