mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
His report: "new tide seems to work well, tho it still moves to the sides." Four things, and the tests found three of them. THE SIDEWAYS MOTION IS THE SEA'S SURFACE, NOT THE WATERLINE. Its phase was x*0.30 + y*0.9 + tt*(...), and a plane wave travels PERPENDICULAR to its crests, so with x inside the travelling term the pattern must slide: the locus moved (-0.32, -0.95) a step, up the frame and to the LEFT -- away from the shore and sideways, backwards twice. Flipping the sign only sends it down and to the right. So x comes OUT of the travelling term and becomes a spatial distortion of a wave that travels in y alone: the crests wiggle, and they come in. Cross-correlating one frame against a later one, the x profile's spread falls from 26% to 5% at zero shift. ⚠ HALVED, NOT GONE -- a weak peak at -3 remains and I have not found what carries it. The coast's own 0.06 drift is now zero: any time in an x term is the shoreline sliding, however slow. Then his own guarantees, in the order they failed: THE BACKDROP CHURNED 59.13% of open-sea cells a frame against the 8% TestTheBackdropHoldsStillBetweenFrames allows. The wash moves the edge every frame, and the sea's ramp took its depth from the mean of that edge, so the whole sea re-ramped twelve times a second -- the exact defect the per-column anchor caused. The ramp is anchored to the tide's own row now, which moves only when the activity moves it. THE WATERLINE WAS CONFETTI: 56 distinct tones on one row against 40. The tide's coast is flat, under a row of amplitude, so the whole waterline lands in ONE row and every column got its own mix. Snapped to five steps. THE TIDE TELEPORTED: a level step moved the waterline 1.03 rows against 0.02 in a normal frame, 47x, where the guard allows 8x. It eases now, three seconds, as a float -- the waterline glides instead of stepping whole cells. ⚠ AND THE FIX FOR THAT SILENTLY ATE THE FEATURE. The swell rescale measures deviation from sy to keep the swell out of the writing band; under the tide the whole edge is displaced from sy, so it counted the tide as swell and squashed it. Range collapsed 5.1 rows to 1.7 and every quiet level pinned to the same row. It measures from the tide's base now: 13.30 to 18.71, 5.4 rows. ⚠ I NEARLY MISSED THAT, because my own instrument built a FRESH Shore per frame -- so nothing that integrates has any history and the tide never eases at all. Same trap voided the drift instrument an hour earlier. Both warm one shore up now, and both say so at the top. Both suites green, with the tide and without. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QBSuXaQWyL96QKp2jVhayR
99 lines
3.2 KiB
Go
99 lines
3.2 KiB
Go
// Command searange asks one question of the RENDERED sea: how much of the
|
|
// activity level's range does the picture actually use?
|
|
//
|
|
// `xscapes tune` reports SATURATED as level > 0.95, which is a claim about the
|
|
// NUMBER. This measures the picture. Four channels, each averaged over eighty
|
|
// phases so a reading is amplitude rather than wherever the waves happen to be:
|
|
//
|
|
// - foam cells and wave-glyph coverage, counted off the resolved glyphs
|
|
//
|
|
// - the waterline's own swing and crest count, found by walking each column
|
|
// down to the first WARM cell -- the sea is blue and the beach is warm, so
|
|
// the boundary is exact and needs no colour matching. That channel is
|
|
// painted into the BACKGROUND, which a glyph-reading instrument cannot see
|
|
// at all; leaving it out is what made the first version of this answer a
|
|
// lead rather than a verdict.
|
|
//
|
|
// go run ./notes/searange
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/donlucasx/xscapes/internal/canvas"
|
|
"github.com/donlucasx/xscapes/internal/scape"
|
|
"github.com/donlucasx/xscapes/internal/term"
|
|
)
|
|
|
|
func main() {
|
|
const w, h = 111, 25
|
|
hy := h*42/100 + 2
|
|
fmt.Printf("TIDE=%v\n", scape.Tide)
|
|
fmt.Printf("%-6s %8s %10s %8s %8s %8s\n", "level", "foam", "wavecells", "swing", "crests", "meanrow")
|
|
for _, lv := range []float64{0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 1.0} {
|
|
var foam, wave, swing, crests, mean float64
|
|
const n = 80
|
|
// ONE shore, WARMED UP. A fresh one per frame has no history, so
|
|
// anything that integrates -- the wave clock, and under Tide the
|
|
// tide's own easing -- reads as if the session had just started. That
|
|
// trap voided this instrument once and the drift instrument once, both
|
|
// on 2026-09-09.
|
|
sh := scape.NewShore(7, false)
|
|
act := scape.Activity{Level: lv, Working: true, ContextUsed: 0.3, TimeOfDay: 13.0 / 24}
|
|
tm := 0.0
|
|
for k := 0; k < 400; k++ {
|
|
tm += 0.08
|
|
sh.Update(canvas.New(w, h, canvas.AlphaFar, canvas.AlphaMid, canvas.AlphaNear), tm, act)
|
|
}
|
|
for k := 0; k < n; k++ {
|
|
c := canvas.New(w, h, canvas.AlphaFar, canvas.AlphaMid, canvas.AlphaNear)
|
|
tm += 0.08
|
|
sh.Update(c, tm, act)
|
|
prof := make([]int, w)
|
|
for x := 0; x < w; x++ {
|
|
prof[x] = h
|
|
for y := hy; y < h; y++ {
|
|
r, _, bg := c.ResolveAt(x, y, term.Profile256)
|
|
switch r {
|
|
case '\u224b':
|
|
foam++
|
|
wave++
|
|
case '~', '-':
|
|
wave++
|
|
}
|
|
if prof[x] == h && bg.R > bg.B {
|
|
prof[x] = y
|
|
}
|
|
}
|
|
}
|
|
lo, hi := h, 0
|
|
for _, v := range prof {
|
|
if v < lo {
|
|
lo = v
|
|
}
|
|
if v > hi {
|
|
hi = v
|
|
}
|
|
}
|
|
swing += float64(hi - lo)
|
|
sum := 0
|
|
for _, v := range prof {
|
|
sum += v
|
|
}
|
|
mean += float64(sum) / float64(w)
|
|
pk := 0
|
|
for x := 2; x < w-2; x++ {
|
|
if prof[x] < prof[x-2] && prof[x] <= prof[x+2] {
|
|
pk++
|
|
}
|
|
}
|
|
crests += float64(pk)
|
|
}
|
|
fmt.Printf("%-6.2f %8.0f %10.0f %8.2f %8.2f %8.2f\n", lv, foam/n, wave/n, swing/n, crests/n, mean/n)
|
|
}
|
|
fmt.Println()
|
|
fmt.Println("His real level while working, folded from 341h of recordings:")
|
|
fmt.Println(" 0.3-0.4 22.9% 0.4-0.5 18.0% 0.5-0.6 16.9% 0.6-0.7 14.0%")
|
|
fmt.Println(" 0.7-0.8 9.0% 0.8-0.9 6.4% 0.9-1.0 12.8% -- above 0.70 is 28.2%")
|
|
}
|