summaryrefslogtreecommitdiff
path: root/examples/live/README.md
Commit message (Collapse)AuthorAge
* examples/live: the README's editor lines, and a press the larger name movedGabriel Schneider2 hours
| | | | | | | | | | | | | | | | The README says the grammar also sizes the name each line defines (its query's `(definition name: (name))`, 1.2 times the rest), that the code is one sketchbook paragraph whose ranges, carets and marks sit where sk.text.places lays their bytes out, the press found by the same places, that the canvas is the window's pixels and the picture at most 720 rows scaled to it. test/live.script presses where 220 began when every character was 10 pixels, now the space before it: nothing drags (with the press at 190 it does, and the script fails). zig build test: 92 of 92 steps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* examples/live: the README, the editor's keys, hear this, the drag, scrubbingGabriel Schneider2 hours
| | | | | | | | | | | | | | | | | | | The README says the text is pardes's editor and what it needs (pardes beside sketchbook); the keys that matter, helix's in two lines (`i`, Escape, the motions, `x`, `d`, `c`, `r`, `u`/`U`, `%`) and the pointer; hear this (Alt-o, Alt-i, Alt-n, Alt-p: that expression alone, heard and seen grey until the next key; an example in thump); the drag (a step every 4 pixels, by the number's own precision, one step to undo); how to scrub in the console's words (`sessions`, `play session N [at S]`, `pause`, `seek MS`, `step -N`, `stop`); what the tests play, the storyboard among them; and in How it works, the editor's value in State and the grammar, its colours, node walks and indent. The reload is 0.07 to 0.09 s under `zig build lib --watch -fincremental`. zig build test: 86 of 86 steps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* examples/live: square units, x and y from the centre in half the heightGabriel Schneider2 hours
| | | | | | | | | | | | | | | | | picture.frag gives the tape x and y in half the target's height, 0 at its centre and y up (`y` -1 to 1, `x` -1.78 to 1.78 on 16:9), so a circle is round on any window, half resolution included. Lang.builtins and the README's table say so; the README's program draws its ring about the centre (`r = sqrt(x * x + y * y)`, the ring's radius and width doubled into the new unit). Test: test/live.script replaces the text (`%`, `c`) with a disc of radius 0.5, `step(x * x + y * y, 0.25)`, and reads its edge 180 pixels from the centre across and up: white at 170, black at 190, each way. zig build test: 85 of 85 steps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* examples/live: the README, the language on one pageGabriel Schneider2 hours
examples/live/README.md: what the sketch is, how to run it (keys, the console's replay verbs, capture, crossfade, the test and probe steps), the language (its grammar and every builtin a line, from Lang.builtins), the capacities, what it cannot say (no state between samples or frames: no filters, feedback or reverb; the price of computing each sample alone on the GPU and of exact replays) and how it works, with the probe's numbers. Its example program parses (out 22 instructions, color 38). The sketchbook README lists the example. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T