c64cast 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- c64cast-0.1.0/CHANGELOG.md +151 -0
- c64cast-0.1.0/CODE_OF_CONDUCT.md +132 -0
- c64cast-0.1.0/CONTRIBUTING.md +188 -0
- c64cast-0.1.0/LICENSE +21 -0
- c64cast-0.1.0/MANIFEST.in +14 -0
- c64cast-0.1.0/PKG-INFO +477 -0
- c64cast-0.1.0/README.md +391 -0
- c64cast-0.1.0/RELEASING.md +122 -0
- c64cast-0.1.0/SECURITY.md +64 -0
- c64cast-0.1.0/c64cast/__init__.py +15 -0
- c64cast-0.1.0/c64cast/__main__.py +5 -0
- c64cast-0.1.0/c64cast/_native_io.py +43 -0
- c64cast-0.1.0/c64cast/_pollthread.py +78 -0
- c64cast-0.1.0/c64cast/api.py +1423 -0
- c64cast-0.1.0/c64cast/asid.py +231 -0
- c64cast-0.1.0/c64cast/asid_player.py +789 -0
- c64cast-0.1.0/c64cast/asid_scene.py +742 -0
- c64cast-0.1.0/c64cast/asid_sidmap.py +432 -0
- c64cast-0.1.0/c64cast/audio.py +3114 -0
- c64cast-0.1.0/c64cast/audio_features.py +397 -0
- c64cast-0.1.0/c64cast/audio_marker.py +119 -0
- c64cast-0.1.0/c64cast/audio_source.py +759 -0
- c64cast-0.1.0/c64cast/backend.py +732 -0
- c64cast-0.1.0/c64cast/backgrounds.py +478 -0
- c64cast-0.1.0/c64cast/bitmap_text.py +136 -0
- c64cast-0.1.0/c64cast/c64.py +505 -0
- c64cast-0.1.0/c64cast/camera.py +238 -0
- c64cast-0.1.0/c64cast/cli.py +1917 -0
- c64cast-0.1.0/c64cast/config.py +5613 -0
- c64cast-0.1.0/c64cast/config_serialize.py +303 -0
- c64cast-0.1.0/c64cast/connect.py +203 -0
- c64cast-0.1.0/c64cast/control_plane.py +240 -0
- c64cast-0.1.0/c64cast/dac_calibration.py +1485 -0
- c64cast-0.1.0/c64cast/dac_curves.py +351 -0
- c64cast-0.1.0/c64cast/data/c64cast.schema.json +2594 -0
- c64cast-0.1.0/c64cast/dither.py +360 -0
- c64cast-0.1.0/c64cast/doctor.py +1954 -0
- c64cast-0.1.0/c64cast/dsp.py +497 -0
- c64cast-0.1.0/c64cast/effects.py +428 -0
- c64cast-0.1.0/c64cast/ensemble.py +175 -0
- c64cast-0.1.0/c64cast/examples/audio-reactive-input.toml +54 -0
- c64cast-0.1.0/c64cast/examples/audio-reactive-listen.toml +56 -0
- c64cast-0.1.0/c64cast/examples/c64cast.example.toml +1467 -0
- c64cast-0.1.0/c64cast/examples/color-dither.toml +41 -0
- c64cast-0.1.0/c64cast/examples/color-force-palette.toml +44 -0
- c64cast-0.1.0/c64cast/examples/effect-chain.toml +64 -0
- c64cast-0.1.0/c64cast/examples/effect-reactive.toml +52 -0
- c64cast-0.1.0/c64cast/examples/effect-trails.toml +29 -0
- c64cast-0.1.0/c64cast/examples/ensemble/left.toml +55 -0
- c64cast-0.1.0/c64cast/examples/ensemble/master.toml +33 -0
- c64cast-0.1.0/c64cast/examples/ensemble/middle.toml +44 -0
- c64cast-0.1.0/c64cast/examples/ensemble/right.toml +57 -0
- c64cast-0.1.0/c64cast/examples/hello.toml +49 -0
- c64cast-0.1.0/c64cast/examples/menu.toml +45 -0
- c64cast-0.1.0/c64cast/examples/overlay-big_text.toml +43 -0
- c64cast-0.1.0/c64cast/examples/overlay-callsign.toml +28 -0
- c64cast-0.1.0/c64cast/examples/overlay-clock.toml +30 -0
- c64cast-0.1.0/c64cast/examples/overlay-countdown.toml +31 -0
- c64cast-0.1.0/c64cast/examples/overlay-logo.toml +32 -0
- c64cast-0.1.0/c64cast/examples/overlay-marquee.toml +29 -0
- c64cast-0.1.0/c64cast/examples/overlay-network.toml +30 -0
- c64cast-0.1.0/c64cast/examples/overlay-obs_status.toml +39 -0
- c64cast-0.1.0/c64cast/examples/overlay-rss.toml +30 -0
- c64cast-0.1.0/c64cast/examples/overlay-scrolling_text.toml +35 -0
- c64cast-0.1.0/c64cast/examples/overlay-spectrum_bitmap.toml +54 -0
- c64cast-0.1.0/c64cast/examples/overlay-spectrum_petscii.toml +38 -0
- c64cast-0.1.0/c64cast/examples/overlay-weather.toml +39 -0
- c64cast-0.1.0/c64cast/examples/performance-clips.toml +88 -0
- c64cast-0.1.0/c64cast/examples/scene-asid.toml +74 -0
- c64cast-0.1.0/c64cast/examples/scene-blank.toml +32 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-colored-bursts.toml +26 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-dna.toml +30 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-dotswarm.toml +27 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-drift.toml +25 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-epicycle.toml +30 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-fire.toml +44 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-fireworks.toml +32 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-game-of-life.toml +25 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-halo.toml +28 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-hiphotic.toml +27 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-hopalong.toml +31 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-lissajous.toml +27 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-mandelbrot.toml +34 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-metaballs.toml +28 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-moire2.toml +29 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-petscii.toml +24 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-plasma.toml +30 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-rorschach.toml +30 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-rotozoomer.toml +33 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-sid.toml +45 -0
- c64cast-0.1.0/c64cast/examples/scene-generative-soap.toml +32 -0
- c64cast-0.1.0/c64cast/examples/scene-launcher.toml +53 -0
- c64cast-0.1.0/c64cast/examples/scene-midi.toml +64 -0
- c64cast-0.1.0/c64cast/examples/scene-slideshow.toml +54 -0
- c64cast-0.1.0/c64cast/examples/scene-video-sampler.toml +48 -0
- c64cast-0.1.0/c64cast/examples/scene-video.toml +48 -0
- c64cast-0.1.0/c64cast/examples/scene-waveform.toml +49 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-audio.toml +40 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-hires.toml +23 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-hires_edges.toml +23 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-mcm.toml +26 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-mhires.toml +30 -0
- c64cast-0.1.0/c64cast/examples/scene-webcam-petscii.toml +27 -0
- c64cast-0.1.0/c64cast/examples/scene-wled.toml +37 -0
- c64cast-0.1.0/c64cast/examples/teensyrom-blank.toml +51 -0
- c64cast-0.1.0/c64cast/examples/vision-gesture.toml +48 -0
- c64cast-0.1.0/c64cast/examples/vision-modes.toml +77 -0
- c64cast-0.1.0/c64cast/examples/wled-control.toml +198 -0
- c64cast-0.1.0/c64cast/frame_source.py +63 -0
- c64cast-0.1.0/c64cast/framebuffer.py +267 -0
- c64cast-0.1.0/c64cast/generators.py +1756 -0
- c64cast-0.1.0/c64cast/interstitial.py +190 -0
- c64cast-0.1.0/c64cast/introspect.py +847 -0
- c64cast-0.1.0/c64cast/keyboard.py +293 -0
- c64cast-0.1.0/c64cast/midi_control.py +1149 -0
- c64cast-0.1.0/c64cast/midi_scene.py +991 -0
- c64cast-0.1.0/c64cast/midi_setup.py +471 -0
- c64cast-0.1.0/c64cast/modes.py +3362 -0
- c64cast-0.1.0/c64cast/modulation.py +164 -0
- c64cast-0.1.0/c64cast/music_features.py +246 -0
- c64cast-0.1.0/c64cast/orchestrator.py +213 -0
- c64cast-0.1.0/c64cast/orchestrators/__init__.py +11 -0
- c64cast-0.1.0/c64cast/orchestrators/big_text_span.py +156 -0
- c64cast-0.1.0/c64cast/overlays/__init__.py +300 -0
- c64cast-0.1.0/c64cast/overlays/_spectrum.py +215 -0
- c64cast-0.1.0/c64cast/overlays/big_text.py +766 -0
- c64cast-0.1.0/c64cast/overlays/callsign.py +31 -0
- c64cast-0.1.0/c64cast/overlays/clock.py +40 -0
- c64cast-0.1.0/c64cast/overlays/corner_text.py +122 -0
- c64cast-0.1.0/c64cast/overlays/countdown.py +74 -0
- c64cast-0.1.0/c64cast/overlays/logo.py +157 -0
- c64cast-0.1.0/c64cast/overlays/marquee.py +112 -0
- c64cast-0.1.0/c64cast/overlays/menu.py +366 -0
- c64cast-0.1.0/c64cast/overlays/network.py +127 -0
- c64cast-0.1.0/c64cast/overlays/obs_status.py +148 -0
- c64cast-0.1.0/c64cast/overlays/rss.py +112 -0
- c64cast-0.1.0/c64cast/overlays/scrolling_text.py +169 -0
- c64cast-0.1.0/c64cast/overlays/spectrum_bitmap.py +181 -0
- c64cast-0.1.0/c64cast/overlays/spectrum_petscii.py +124 -0
- c64cast-0.1.0/c64cast/overlays/weather.py +176 -0
- c64cast-0.1.0/c64cast/palette.py +1272 -0
- c64cast-0.1.0/c64cast/paths.py +255 -0
- c64cast-0.1.0/c64cast/perf_console.py +664 -0
- c64cast-0.1.0/c64cast/performance.py +712 -0
- c64cast-0.1.0/c64cast/petscii_styles.py +383 -0
- c64cast-0.1.0/c64cast/playlist.py +1404 -0
- c64cast-0.1.0/c64cast/preview.py +208 -0
- c64cast-0.1.0/c64cast/profiler.py +219 -0
- c64cast-0.1.0/c64cast/py.typed +0 -0
- c64cast-0.1.0/c64cast/quickcast.py +423 -0
- c64cast-0.1.0/c64cast/recording_metadata.py +284 -0
- c64cast-0.1.0/c64cast/rolling_palette.py +146 -0
- c64cast-0.1.0/c64cast/sampler.py +778 -0
- c64cast-0.1.0/c64cast/scenes.py +2262 -0
- c64cast-0.1.0/c64cast/schema.py +219 -0
- c64cast-0.1.0/c64cast/sid_autoconfig.py +267 -0
- c64cast-0.1.0/c64cast/sid_host_emu.py +694 -0
- c64cast-0.1.0/c64cast/sid_hw_config.py +198 -0
- c64cast-0.1.0/c64cast/sid_panning.py +347 -0
- c64cast-0.1.0/c64cast/sid_volume.py +260 -0
- c64cast-0.1.0/c64cast/sidemu.py +301 -0
- c64cast-0.1.0/c64cast/socket_dma.py +329 -0
- c64cast-0.1.0/c64cast/songlengths.py +115 -0
- c64cast-0.1.0/c64cast/teensyrom_api.py +472 -0
- c64cast-0.1.0/c64cast/teensyrom_dma.py +597 -0
- c64cast-0.1.0/c64cast/tempo.py +370 -0
- c64cast-0.1.0/c64cast/text_surface.py +254 -0
- c64cast-0.1.0/c64cast/transport.py +623 -0
- c64cast-0.1.0/c64cast/video.py +1017 -0
- c64cast-0.1.0/c64cast/vision.py +552 -0
- c64cast-0.1.0/c64cast/voice_scope.py +847 -0
- c64cast-0.1.0/c64cast/waveform.py +1671 -0
- c64cast-0.1.0/c64cast/wizard.py +850 -0
- c64cast-0.1.0/c64cast/wled_device.py +1344 -0
- c64cast-0.1.0/c64cast/wled_sink.py +341 -0
- c64cast-0.1.0/c64cast/wled_sync.py +218 -0
- c64cast-0.1.0/c64cast.egg-info/PKG-INFO +477 -0
- c64cast-0.1.0/c64cast.egg-info/SOURCES.txt +279 -0
- c64cast-0.1.0/c64cast.egg-info/dependency_links.txt +1 -0
- c64cast-0.1.0/c64cast.egg-info/entry_points.txt +2 -0
- c64cast-0.1.0/c64cast.egg-info/requires.txt +62 -0
- c64cast-0.1.0/c64cast.egg-info/top_level.txt +1 -0
- c64cast-0.1.0/pyproject.toml +347 -0
- c64cast-0.1.0/setup.cfg +4 -0
- c64cast-0.1.0/tests/test_api.py +954 -0
- c64cast-0.1.0/tests/test_asid.py +229 -0
- c64cast-0.1.0/tests/test_asid_player.py +265 -0
- c64cast-0.1.0/tests/test_asid_scene.py +339 -0
- c64cast-0.1.0/tests/test_asid_sidmap.py +351 -0
- c64cast-0.1.0/tests/test_audio.py +492 -0
- c64cast-0.1.0/tests/test_audio_device_resolve.py +92 -0
- c64cast-0.1.0/tests/test_audio_features.py +405 -0
- c64cast-0.1.0/tests/test_audio_lifecycle.py +1069 -0
- c64cast-0.1.0/tests/test_audio_marker.py +102 -0
- c64cast-0.1.0/tests/test_audio_source_sid.py +405 -0
- c64cast-0.1.0/tests/test_backend.py +412 -0
- c64cast-0.1.0/tests/test_backgrounds.py +165 -0
- c64cast-0.1.0/tests/test_big_text.py +499 -0
- c64cast-0.1.0/tests/test_big_text_span.py +221 -0
- c64cast-0.1.0/tests/test_bitmap_compose.py +471 -0
- c64cast-0.1.0/tests/test_bitmap_overlays.py +222 -0
- c64cast-0.1.0/tests/test_blank_mode.py +124 -0
- c64cast-0.1.0/tests/test_camera.py +106 -0
- c64cast-0.1.0/tests/test_cell_strategy.py +174 -0
- c64cast-0.1.0/tests/test_config.py +1938 -0
- c64cast-0.1.0/tests/test_config_serialize.py +231 -0
- c64cast-0.1.0/tests/test_connect.py +132 -0
- c64cast-0.1.0/tests/test_control_plane.py +282 -0
- c64cast-0.1.0/tests/test_dac_calibration.py +826 -0
- c64cast-0.1.0/tests/test_dac_curves.py +142 -0
- c64cast-0.1.0/tests/test_dither.py +220 -0
- c64cast-0.1.0/tests/test_dither_compose.py +187 -0
- c64cast-0.1.0/tests/test_doctor.py +1339 -0
- c64cast-0.1.0/tests/test_dsp.py +351 -0
- c64cast-0.1.0/tests/test_dsp_wiring.py +184 -0
- c64cast-0.1.0/tests/test_effect_chain.py +428 -0
- c64cast-0.1.0/tests/test_ensemble.py +72 -0
- c64cast-0.1.0/tests/test_ensemble_audio_lock.py +467 -0
- c64cast-0.1.0/tests/test_ensemble_config.py +444 -0
- c64cast-0.1.0/tests/test_ensemble_shutdown.py +114 -0
- c64cast-0.1.0/tests/test_example_toml_drift.py +188 -0
- c64cast-0.1.0/tests/test_examples_cli.py +134 -0
- c64cast-0.1.0/tests/test_fuzzy_suggestions.py +56 -0
- c64cast-0.1.0/tests/test_generative.py +1609 -0
- c64cast-0.1.0/tests/test_guide_build.py +256 -0
- c64cast-0.1.0/tests/test_interstitial.py +145 -0
- c64cast-0.1.0/tests/test_interstitial_names.py +178 -0
- c64cast-0.1.0/tests/test_introspect.py +235 -0
- c64cast-0.1.0/tests/test_keyboard.py +466 -0
- c64cast-0.1.0/tests/test_launcher_scene.py +110 -0
- c64cast-0.1.0/tests/test_live_tune.py +422 -0
- c64cast-0.1.0/tests/test_mcm_mode.py +56 -0
- c64cast-0.1.0/tests/test_menu.py +360 -0
- c64cast-0.1.0/tests/test_midi_control.py +879 -0
- c64cast-0.1.0/tests/test_midi_scene.py +905 -0
- c64cast-0.1.0/tests/test_midi_setup.py +447 -0
- c64cast-0.1.0/tests/test_misc.py +196 -0
- c64cast-0.1.0/tests/test_music_features.py +175 -0
- c64cast-0.1.0/tests/test_orchestrator_base.py +218 -0
- c64cast-0.1.0/tests/test_overlays.py +870 -0
- c64cast-0.1.0/tests/test_packaging_metadata.py +176 -0
- c64cast-0.1.0/tests/test_palette.py +1032 -0
- c64cast-0.1.0/tests/test_paths.py +223 -0
- c64cast-0.1.0/tests/test_perf_console.py +307 -0
- c64cast-0.1.0/tests/test_performance.py +547 -0
- c64cast-0.1.0/tests/test_petscii_styles.py +190 -0
- c64cast-0.1.0/tests/test_playlist.py +1300 -0
- c64cast-0.1.0/tests/test_playlist_broadcast.py +377 -0
- c64cast-0.1.0/tests/test_preview.py +282 -0
- c64cast-0.1.0/tests/test_profiler.py +166 -0
- c64cast-0.1.0/tests/test_quickcast.py +552 -0
- c64cast-0.1.0/tests/test_recording_metadata.py +165 -0
- c64cast-0.1.0/tests/test_release.py +248 -0
- c64cast-0.1.0/tests/test_reu_audio.py +828 -0
- c64cast-0.1.0/tests/test_reu_mic.py +415 -0
- c64cast-0.1.0/tests/test_reu_video.py +1649 -0
- c64cast-0.1.0/tests/test_rolling_palette.py +141 -0
- c64cast-0.1.0/tests/test_sampler.py +621 -0
- c64cast-0.1.0/tests/test_save_settings.py +112 -0
- c64cast-0.1.0/tests/test_scene_fade.py +347 -0
- c64cast-0.1.0/tests/test_scenes_aspect.py +74 -0
- c64cast-0.1.0/tests/test_schema.py +70 -0
- c64cast-0.1.0/tests/test_sid_autoconfig.py +326 -0
- c64cast-0.1.0/tests/test_sid_host_emu.py +536 -0
- c64cast-0.1.0/tests/test_sid_panning.py +578 -0
- c64cast-0.1.0/tests/test_sid_volume.py +222 -0
- c64cast-0.1.0/tests/test_socket_dma.py +360 -0
- c64cast-0.1.0/tests/test_spectrum_bitmap.py +227 -0
- c64cast-0.1.0/tests/test_suggest_palette.py +77 -0
- c64cast-0.1.0/tests/test_target_fps_defaults.py +332 -0
- c64cast-0.1.0/tests/test_teensyrom.py +675 -0
- c64cast-0.1.0/tests/test_tempo.py +355 -0
- c64cast-0.1.0/tests/test_text_surface.py +182 -0
- c64cast-0.1.0/tests/test_transport.py +532 -0
- c64cast-0.1.0/tests/test_video.py +1368 -0
- c64cast-0.1.0/tests/test_vision.py +423 -0
- c64cast-0.1.0/tests/test_waveform.py +2195 -0
- c64cast-0.1.0/tests/test_wizard.py +440 -0
- c64cast-0.1.0/tests/test_wled_device.py +849 -0
- c64cast-0.1.0/tests/test_wled_sink.py +288 -0
- c64cast-0.1.0/tests/test_wled_sync.py +218 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to c64cast are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and c64cast follows
|
|
5
|
+
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) over its *user*
|
|
6
|
+
surface — the CLI flags, the config schema, the `example:` names, and the data
|
|
7
|
+
directory layout. The Python API carries no stability promise while the version
|
|
8
|
+
is `0.x`.
|
|
9
|
+
|
|
10
|
+
Work lands under `## [Unreleased]`; cutting a release renames that section to
|
|
11
|
+
the version and stamps it with the date.
|
|
12
|
+
|
|
13
|
+
## [Unreleased]
|
|
14
|
+
|
|
15
|
+
Nothing yet.
|
|
16
|
+
|
|
17
|
+
## [0.1.0] - 2026-07-30
|
|
18
|
+
|
|
19
|
+
The first public release. c64cast has been in daily use against real hardware
|
|
20
|
+
since June 2026 — this is the point where it becomes installable rather than
|
|
21
|
+
cloneable.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
**Two hardware backends, selected by URI.** `-u u64://HOST` (or `http(s)://`)
|
|
26
|
+
drives an [Ultimate 64](https://ultimate64.com/), Ultimate II+, or Commodore 64
|
|
27
|
+
Ultimate: memory writes go over the Ultimate DMA Service on TCP port 64 with
|
|
28
|
+
REST for the handful of operations that have no DMA equivalent. `-u tr://`
|
|
29
|
+
drives a [TeensyROM+](https://lectronz.com/products/teensyrom) cartridge in an
|
|
30
|
+
original C64 over auto-detected USB serial, an explicit serial device
|
|
31
|
+
(`tr:///dev/cu.usbmodemXYZ`, `tr://COM3`), or raw TCP (`tr://HOST[:PORT]`).
|
|
32
|
+
Per-link knobs ride along as query parameters (`u64://host?dma_port=64`,
|
|
33
|
+
`tr:///dev/…?baud=2000000`). `$C64CAST_URL` is the environment fallback.
|
|
34
|
+
|
|
35
|
+
**Ten scene types**, mixed freely in a TOML playlist with per-scene durations
|
|
36
|
+
and an "UP NEXT" interstitial between them:
|
|
37
|
+
|
|
38
|
+
- **video** — MP4/MKV/etc. with its soundtrack, paced off the audio clock so
|
|
39
|
+
A/V cannot drift. YouTube and other streaming URLs resolve through yt-dlp.
|
|
40
|
+
- **webcam** — live capture quantized to any display mode in real time.
|
|
41
|
+
- **slideshow** — still images from a directory or glob, aspect-fit.
|
|
42
|
+
- **waveform** — plays a `.sid` on the real chip through a small player PRG
|
|
43
|
+
DMA'd into C64 RAM (deliberately not the firmware's own runner, which
|
|
44
|
+
hijacks the HDMI output), with a 3-voice oscilloscope driven by a host-side
|
|
45
|
+
py65 SID emulator. Handles multi-SID tunes up to 8 chips on the U64's
|
|
46
|
+
UltiSIDs, and matches 6581/8580 tunes to the installed chips.
|
|
47
|
+
- **midi** — bridge a live MIDI source into the real SID and scope each voice.
|
|
48
|
+
- **asid** — receive an ASID stream (DeepSID in a browser, SIDFactory II,
|
|
49
|
+
Plogue chipsynth C64) and play it on the real SID with the same scope.
|
|
50
|
+
- **generative** — 20 procedural sources (plasma, tunnel, fire, mandelbrot,
|
|
51
|
+
metaballs, game of life, fireworks, soap, …), optionally music-reactive.
|
|
52
|
+
- **launcher** — hand the machine over to a native `.prg`/`.crt` and reclaim it.
|
|
53
|
+
- **wled** — turn the C64 into a virtual LED matrix fed by a realtime pixel
|
|
54
|
+
stream from LedFx or xLights (DDP or WLED realtime UDP).
|
|
55
|
+
- **blank** — a solid PETSCII canvas as a foundation for overlays.
|
|
56
|
+
|
|
57
|
+
**Six VIC-II display modes** — `petscii`, `mcm`, `hires`, `hires_edges`,
|
|
58
|
+
`mhires`, `blank` — each with its own vectorized quantizer (≈30 fps bitmap,
|
|
59
|
+
50/60 fps character modes over a LAN). The `[color]` pipeline shapes any source
|
|
60
|
+
before quantization: spatial dithering, perceptual color matching, per-cell
|
|
61
|
+
strategy selection, motion smoothing, scene fades, and a forced-palette mode
|
|
62
|
+
that remaps a frame onto a chosen subset of the 16 C64 colors — with a rolling
|
|
63
|
+
palette that re-clusters as the content changes. `--suggest-palette FILE`
|
|
64
|
+
analyzes an image or video and ranks the colors that represent it most
|
|
65
|
+
faithfully.
|
|
66
|
+
|
|
67
|
+
**Audio on the real SID.** By default, video and file audio play through the
|
|
68
|
+
U64's Ultimate Audio FPGA PCM sampler for high fidelity; the lo-fi `$D418` DAC
|
|
69
|
+
path (4-bit, or ≈6–7 bit via Mahoney companding) covers TeensyROM+, mic input,
|
|
70
|
+
and webcam audio everywhere. The sampler's effective clock ships calibrated, so
|
|
71
|
+
audio holds sync against host-paced video over long runs. `--calibrate-dac`
|
|
72
|
+
measures a per-machine DAC response curve through an HDMI capture device.
|
|
73
|
+
|
|
74
|
+
**Thirteen stackable overlays** — `scrolling_text`, `marquee`, `rss`,
|
|
75
|
+
`spectrum_petscii`, `spectrum_bitmap`, `clock`, `weather`, `callsign`,
|
|
76
|
+
`countdown`, `network`, `logo`, `big_text`, `obs_status` — composable onto any
|
|
77
|
+
compatible scene, with `--compat` printing the overlay × display-mode matrix.
|
|
78
|
+
|
|
79
|
+
**Ensemble mode.** One process drives N systems at once as a video wall, with
|
|
80
|
+
cross-system orchestration — a `big_text` message scrolling across every screen
|
|
81
|
+
as one continuous canvas, spans and mirrors — and audio-slot coordination so
|
|
82
|
+
the systems do not fight over the DAC.
|
|
83
|
+
|
|
84
|
+
**Live control surfaces.** The C64's own keyboard (C= pauses, CTRL skips, SHIFT
|
|
85
|
+
cycles the display style), an on-C64 menu for live scene tweaks, webcam hand
|
|
86
|
+
gestures, a FastAPI control plane (`/pause`, `/resume`, `/skip`, `/reload`),
|
|
87
|
+
MIDI CC mapped to any live parameter, and `SIGHUP` to reload the config. The
|
|
88
|
+
DJ/VJ layer adds a tempo/beat grid, a clip-launch grid with LED feedback on
|
|
89
|
+
grid controllers, a layerable chain of 8 pixel effects, snapshot-recall of
|
|
90
|
+
"looks", and a phone/web performance console.
|
|
91
|
+
|
|
92
|
+
**WLED bridge**, in three directions under one `[wled]` section: drive real LED
|
|
93
|
+
matrices *from* the C64's SID with no microphone, present c64cast *as* a virtual
|
|
94
|
+
WLED device that the WLED app and Home Assistant discover and control, and turn
|
|
95
|
+
the C64 *into* a matrix that LedFx/xLights stream pixels to.
|
|
96
|
+
|
|
97
|
+
**Quick playback.** `c64cast clip.mp4 tune.sid pics/ 'https://youtu.be/…'`
|
|
98
|
+
plays media straight from the command line with no config file, mapping each
|
|
99
|
+
argument to the right scene type by extension.
|
|
100
|
+
|
|
101
|
+
**Config authoring and discovery, all offline.** An annotated TOML reference,
|
|
102
|
+
an interactive wizard (`--init`), and a JSON Schema for editor autocomplete —
|
|
103
|
+
plus `--describe`, `--list-scenes`, `--list-overlays`, `--list-modes`,
|
|
104
|
+
`--compat`, and `--print-schema`, all generated from the same field metadata the
|
|
105
|
+
loader itself runs on, so they cannot drift from the code. `--doctor` collects
|
|
106
|
+
every config and environment problem in one pass. Machine-local defaults live in
|
|
107
|
+
`~/.config/c64cast/settings.toml` (written by `--save-settings`) and persisted
|
|
108
|
+
state in `~/.local/share/c64cast/`, both XDG-aware.
|
|
109
|
+
|
|
110
|
+
**Packaged demo configs.** Every feature has a runnable single-scene demo
|
|
111
|
+
shipped inside the wheel: `--config example:NAME` runs one, `--list-examples`
|
|
112
|
+
lists them all, `--print-example NAME` copies one out to edit.
|
|
113
|
+
|
|
114
|
+
**Preview and recording.** An optional local window mirroring what the C64 is
|
|
115
|
+
showing, and recording the same to MP4. Both are cv2-based, so neither needs an
|
|
116
|
+
optional dependency.
|
|
117
|
+
|
|
118
|
+
**Documentation.** A typeset User's Guide (10 chapters), a full config
|
|
119
|
+
reference, symptom-first troubleshooting, an extension guide, and per-module
|
|
120
|
+
architecture notes covering the hardware constraints and the dead ends behind
|
|
121
|
+
each design decision. Every install instruction and every missing-extra hint
|
|
122
|
+
names `uv`; `pipx` is documented once as an equivalent fallback.
|
|
123
|
+
|
|
124
|
+
The guide is attached to every release as a PDF, stamped on its cover with the
|
|
125
|
+
version it documents, so a downloaded copy can always be matched to the install
|
|
126
|
+
it describes. `make guide` renders the same thing from a checkout.
|
|
127
|
+
|
|
128
|
+
A config written by `--init` or `--save-settings` carries a `#:schema`
|
|
129
|
+
directive pinned to its own release, so an editor validates it against the
|
|
130
|
+
schema this version actually accepts rather than whatever is currently on
|
|
131
|
+
`main`.
|
|
132
|
+
|
|
133
|
+
**A leading `~` works in config-file paths.** `file`, `videos_dir`,
|
|
134
|
+
`songlengths_file`, `charset_path`, `model_path`, a `logo` overlay's file, the
|
|
135
|
+
recording path and `log_file` all expand `~/…` when they are used. A TOML file
|
|
136
|
+
has no shell to do it, and `glob`/`os.path` treat `~` as a literal directory
|
|
137
|
+
name, so such a path previously matched nothing. A `Config` still holds the
|
|
138
|
+
string as written, so serialized configs keep the `~` rather than baking in an
|
|
139
|
+
absolute home directory.
|
|
140
|
+
|
|
141
|
+
**Windows is a supported platform.** It always worked — casting to a real
|
|
142
|
+
Commodore from Windows is a routine path for one of the contributors — but the
|
|
143
|
+
published metadata and the User's Guide both called it untested, because CI only
|
|
144
|
+
ever ran on Linux. The test matrix now covers macOS, Linux and Windows across
|
|
145
|
+
Python 3.11–3.14, so the claim is backed on both halves: the matrix for the
|
|
146
|
+
host-side code, real hardware for the pipeline. The one platform difference worth
|
|
147
|
+
knowing is that `SIGHUP` config reload is POSIX-only; `POST /reload` on the
|
|
148
|
+
control plane does the same thing everywhere.
|
|
149
|
+
|
|
150
|
+
[Unreleased]: https://github.com/kfox/c64cast/compare/v0.1.0...HEAD
|
|
151
|
+
[0.1.0]: https://github.com/kfox/c64cast/releases/tag/v0.1.0
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
**c64cast@gmail.com**.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Contributing to c64cast
|
|
2
|
+
|
|
3
|
+
Bug reports, feature ideas, and pull requests are all welcome. This file covers
|
|
4
|
+
the development setup and the conventions the repo follows. If you only want to
|
|
5
|
+
*use* c64cast, the [README](README.md) has what you need — you do not need any
|
|
6
|
+
of this.
|
|
7
|
+
|
|
8
|
+
Security issues go through [SECURITY.md](SECURITY.md), not a public issue.
|
|
9
|
+
Everyone participating is expected to follow the
|
|
10
|
+
[Code of Conduct](CODE_OF_CONDUCT.md).
|
|
11
|
+
|
|
12
|
+
## Development setup
|
|
13
|
+
|
|
14
|
+
c64cast uses the [uv](https://github.com/astral-sh/uv) project workflow.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git clone https://github.com/kfox/c64cast
|
|
18
|
+
cd c64cast
|
|
19
|
+
uv sync --all-extras # creates/updates .venv from uv.lock: every runtime
|
|
20
|
+
# extra + the dev tool group
|
|
21
|
+
pre-commit install # ruff + pyright + tests run before every commit
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then either prefix one-off commands with `uv run`, or let
|
|
25
|
+
[direnv](https://direnv.net/) activate `.venv` for you — `.envrc` is gitignored,
|
|
26
|
+
so write your own with `layout uv` in it (plus `use mise` if you use mise, and
|
|
27
|
+
an `export C64CAST_URL=…` so you can drop `-u` while developing).
|
|
28
|
+
The maintainer's setup is mise + direnv + uv; none of that is
|
|
29
|
+
required, but `uv` itself effectively is — `uv.lock` is the reproducible
|
|
30
|
+
definition of the environment CI runs.
|
|
31
|
+
|
|
32
|
+
> [!IMPORTANT]
|
|
33
|
+
> **Do not use `uv pip install -e .[...]` in this repo.** mise sets
|
|
34
|
+
> `UV_PYTHON` to the bare toolchain interpreter, and `uv pip` honors that over
|
|
35
|
+
> the active `.venv` — so packages land in the mise install while
|
|
36
|
+
> `python -m c64cast` runs from `.venv`. The symptom is a silent
|
|
37
|
+
> "PyAV unavailable" or a missing extra that you just installed.
|
|
38
|
+
> `uv sync` and `uv run` target the project environment and are immune.
|
|
39
|
+
>
|
|
40
|
+
> Note also that `dev` is a PEP 735 dependency *group*, not an extra, so
|
|
41
|
+
> `.[all,dev]` can never resolve it no matter which installer you use. With
|
|
42
|
+
> plain pip: `pip install -e .[all] && pip install --group dev`.
|
|
43
|
+
|
|
44
|
+
If you use VS Code, point the interpreter at `.venv/bin/python` rather than the
|
|
45
|
+
mise interpreter, or editor diagnostics will diverge from what actually runs.
|
|
46
|
+
|
|
47
|
+
`make doctor` is the fast offline self-check for all of the above: it reports the
|
|
48
|
+
c64cast version, flags a wrong interpreter, a hard dependency that will not
|
|
49
|
+
import, and `uv.lock` drift, before any of those cost you a debugging session.
|
|
50
|
+
|
|
51
|
+
## Running from a checkout
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python -m c64cast --config example:hello -u u64://192.168.2.64
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
[`scripts/c64cast.sh`](scripts/c64cast.sh) is an equivalent launcher that `cd`s
|
|
58
|
+
to the repo root and forwards every argument, running through `uv run` when `uv`
|
|
59
|
+
is on `PATH` (so the project `.venv` is always used) and falling back to a bare
|
|
60
|
+
`python` otherwise. Use it from another directory, or from a context where
|
|
61
|
+
direnv has not activated `.venv` — cron, systemd, an ssh one-liner:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
scripts/c64cast.sh --config example:hello
|
|
65
|
+
scripts/c64cast.sh --doctor --skip-probe
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## The pre-PR gate
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
make check # lint + typecheck + test — run this before opening a PR
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Every target routes through `uv run`, so they hit the synced project env
|
|
75
|
+
whether or not the current shell has `.venv` activated:
|
|
76
|
+
|
|
77
|
+
| Target | What it does |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `make sync` | `uv sync --all-extras` (refresh the project env) |
|
|
80
|
+
| `make lint` | `ruff check` |
|
|
81
|
+
| `make fmt` | `ruff format` |
|
|
82
|
+
| `make test` | the unittest suite, parallel across cores (`T=tests.test_foo` runs just that, serially) |
|
|
83
|
+
| `make coverage` | tests under coverage → report + HTML + `coverage.xml` + JUnit XML |
|
|
84
|
+
| `make typecheck` | `mypy --strict` on the state-bearing modules + `pyright` across the tree |
|
|
85
|
+
| `make doctor` | offline environment + config diagnostics |
|
|
86
|
+
| `make schema` | regenerate `c64cast/data/c64cast.schema.json` from the config metadata |
|
|
87
|
+
| `make guide` | render the User's Guide to a typeset PDF (needs `typst`) |
|
|
88
|
+
| `make bench` | the async write-pipeline benchmark |
|
|
89
|
+
|
|
90
|
+
CI runs the same lint, typecheck, and tests on every push and pull request
|
|
91
|
+
across Python 3.11–3.14 — see
|
|
92
|
+
[`.github/workflows/ci.yml`](.github/workflows/ci.yml). Type-checking is
|
|
93
|
+
deliberately two-tiered: `pyright` in basic mode across the whole tree
|
|
94
|
+
(including tests), matching Pylance's VS Code defaults so editor diagnostics
|
|
95
|
+
align with CI, plus `mypy --strict` on the state-bearing modules listed in
|
|
96
|
+
`[tool.mypy] files` where a type slip would corrupt state.
|
|
97
|
+
|
|
98
|
+
## Tests
|
|
99
|
+
|
|
100
|
+
The suite is stdlib `unittest`, one module per subject under `tests/`, and it
|
|
101
|
+
runs entirely without hardware — the hardware backends are faked. A test run
|
|
102
|
+
should print **only** pass/fail/skip indicators: wrap any path that raises an
|
|
103
|
+
expected exception in `assertRaises`, any path that logs an expected
|
|
104
|
+
warning/error in `self.assertLogs("c64cast.<module>", …)`, and any path that
|
|
105
|
+
writes to stdout in a `redirect_stdout`. Expected output left to print buries
|
|
106
|
+
real failures. When a call both logs and raises, nest `assertLogs` *outside*
|
|
107
|
+
`assertRaises` so the records are actually verified.
|
|
108
|
+
|
|
109
|
+
Several tests exist purely to stop documentation from drifting — the JSON schema
|
|
110
|
+
against the config metadata, the annotated example TOML against the dataclass
|
|
111
|
+
fields, the `all` extra against the union of the other extras. If one of those
|
|
112
|
+
fails, the fix is usually to regenerate rather than to edit the test.
|
|
113
|
+
|
|
114
|
+
## Hardware for development
|
|
115
|
+
|
|
116
|
+
An HDMI capture device (Elgato Cam Link 4K, Genki ShadowCast, …) is highly
|
|
117
|
+
recommended: a RAM dump cannot prove what the VIC-II actually drew, so visual
|
|
118
|
+
changes need a capture to verify. [`scripts/diags/`](scripts/diags) holds the
|
|
119
|
+
committed diagnostic tooling that drives one — a U64 REST/DMA probe, HDMI still
|
|
120
|
+
capture, audio capture with level analysis, and a launch-capture-reset harness.
|
|
121
|
+
Improve those rather than writing fresh throwaway scripts.
|
|
122
|
+
|
|
123
|
+
If you touch the hardware paths, leave every machine you tested against silent
|
|
124
|
+
and reset when you are done.
|
|
125
|
+
|
|
126
|
+
## Commits and pull requests
|
|
127
|
+
|
|
128
|
+
- **Conventional commits**: `feat(scope): …`, `fix(scope): …`, plus `docs`,
|
|
129
|
+
`build`, `test`, `refactor`, `perf`, `chore`, `ci`. The subject is a lowercase
|
|
130
|
+
imperative phrase. The changelog is written from this history, so a subject
|
|
131
|
+
line that reads as a user-visible statement is worth the extra few seconds.
|
|
132
|
+
- **One logical change per commit**, and per PR. Unrelated cleanup goes in its
|
|
133
|
+
own commit.
|
|
134
|
+
- **Work on a branch and open a PR** — `main` is protected by CI and every
|
|
135
|
+
change lands through review.
|
|
136
|
+
- `make check` must be green before you open the PR.
|
|
137
|
+
- Do not commit user media, personal configs, or machine-specific details (IP
|
|
138
|
+
addresses, capture-device names, local paths). `assets/` tracks only its
|
|
139
|
+
per-directory READMEs by design; everything else there is gitignored.
|
|
140
|
+
|
|
141
|
+
## Documentation is part of the change
|
|
142
|
+
|
|
143
|
+
A behavior change updates its documentation **in the same change set** — not in
|
|
144
|
+
a follow-up. Concretely, when you change functionality:
|
|
145
|
+
|
|
146
|
+
- [`docs/architecture.md`](docs/architecture.md) and the topic notes under
|
|
147
|
+
[`docs/architecture/`](docs/architecture) carry the *why* for each module:
|
|
148
|
+
design rationale, hardware constraints, and the dead ends that the code alone
|
|
149
|
+
does not show. Read the relevant section before modifying a module, and update
|
|
150
|
+
it in the same PR. The index's module table routes any module to its section.
|
|
151
|
+
- [`docs/usage.md`](docs/usage.md), [`caveats.md`](docs/caveats.md),
|
|
152
|
+
[`troubleshooting.md`](docs/troubleshooting.md), and
|
|
153
|
+
[`extending.md`](docs/extending.md) cover the user-facing surface.
|
|
154
|
+
- New config knobs, scenes, or overlays: fill in the field's `help`/`choices`
|
|
155
|
+
metadata (in [`c64cast/config.py`](c64cast/config.py)) or the overlay's
|
|
156
|
+
`HELP`/`PARAM_HELP`, update
|
|
157
|
+
[`c64cast/examples/c64cast.example.toml`](c64cast/examples/c64cast.example.toml)
|
|
158
|
+
and add a demo under [`c64cast/examples/`](c64cast/examples), then run
|
|
159
|
+
`make schema`. That single metadata model drives `--describe`, `--list-*`,
|
|
160
|
+
`--compat`, the JSON schema, the config serializer, and the `--init` wizard,
|
|
161
|
+
so filling it in is what keeps all of them from drifting — and the drift tests
|
|
162
|
+
will tell you if you skipped it.
|
|
163
|
+
- Add `CHANGELOG.md` entries under `## [Unreleased]` for anything users would
|
|
164
|
+
notice.
|
|
165
|
+
- Hand-encoded 6502 bytes (the NMI DAC handler, the REU pump, the SID player
|
|
166
|
+
PRG, BASIC stubs) are annotated with the assembly they represent and why each
|
|
167
|
+
instruction is there. Keep that up when you touch a byte array — a wall of hex
|
|
168
|
+
is not reviewable.
|
|
169
|
+
- Write documentation in the present tense, describing what the code does now.
|
|
170
|
+
It is not a record of what changed; that is what the changelog and git history
|
|
171
|
+
are for.
|
|
172
|
+
|
|
173
|
+
[`docs/extending.md`](docs/extending.md) is the starting point for adding a new
|
|
174
|
+
Scene, Overlay, DisplayMode, or interstitial Background.
|
|
175
|
+
|
|
176
|
+
## What counts as a breaking change
|
|
177
|
+
|
|
178
|
+
c64cast's stable surface is the part users depend on: the **CLI flags**, the
|
|
179
|
+
**config schema**, the **`example:` names**, and the **data directory layout**.
|
|
180
|
+
Removing or renaming any of those needs a deprecation warning for one minor
|
|
181
|
+
release first. The Python API carries no stability promise while the version is
|
|
182
|
+
`0.x` — internal modules may be reshaped freely, as long as the four surfaces
|
|
183
|
+
above keep working.
|
|
184
|
+
|
|
185
|
+
Cutting a release is a maintainer task and lives in
|
|
186
|
+
[`RELEASING.md`](RELEASING.md). The one thing worth knowing as a contributor is
|
|
187
|
+
that the `## [Unreleased]` section of the changelog becomes the release notes
|
|
188
|
+
verbatim, so write an entry as the announcement it will be.
|
c64cast-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kelly Fox
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Extra top-level files for the source distribution.
|
|
2
|
+
#
|
|
3
|
+
# setuptools puts README.md (via `readme`), LICENSE (via `license-files`),
|
|
4
|
+
# pyproject.toml, and everything under the package into the sdist on its own.
|
|
5
|
+
# These are project-level documents rather than package data, so they need
|
|
6
|
+
# naming here or the source archive ships without them — and a source archive
|
|
7
|
+
# with no changelog is the one thing people go looking for when they download
|
|
8
|
+
# one. The wheel is unaffected; package data lives in
|
|
9
|
+
# [tool.setuptools.package-data] instead.
|
|
10
|
+
include CHANGELOG.md
|
|
11
|
+
include CONTRIBUTING.md
|
|
12
|
+
include RELEASING.md
|
|
13
|
+
include SECURITY.md
|
|
14
|
+
include CODE_OF_CONDUCT.md
|