AudioVizState

What the visualiser shows and how: the drawing, the palette, whether the director picks drawings with the music, and the finishing pass. Make one with rememberAudioVizState and show it with KiteAudioViz.

Properties

Link copied to clipboard

Shared analysis diagnostics while this view is attached. Poll values for telemetry.

Link copied to clipboard

Every drawing, in catalogue order.

Link copied to clipboard

Past events discarded on attachment, pause, discontinuity, long suspension or overflow, by the same cursor.

Link copied to clipboard

Whether the director changes the drawing with the music. Turning it off keeps what it was showing.

Link copied to clipboard

Changes the drawing at supported musical boundaries while directed is on.

Link copied to clipboard

Estimated drawing-to-display delay. Null estimates one refresh period from frame callbacks, initially 1/60 second. Set a measured route-specific estimate when one is available. Frame callback timing is not presentation feedback; this value remains an estimate.

Link copied to clipboard

The drawing to show. Setting it puts it on screen at once, and the director carries on from it.

Link copied to clipboard

Live structural events the same cursor dropped because a complete song map covered their time.

Link copied to clipboard

The estimate used by the latest sample, in presentation time.

Link copied to clipboard

Shared event retention and detector completion, separate from this view's cursor.

Link copied to clipboard

Frames a second to redraw at, or 0 for every display frame.

Link copied to clipboard

Events this state's own cursor discarded as too late: over 30 ms for a transient, over 3 s for structure. That cursor reads on every display frame. A surface or a browser tile that takes frames less often keeps a cursor of its own, which these counters do not include.

Link copied to clipboard

The colours the drawings use.

Link copied to clipboard

How much of the canvas trailing drawings render at, and whether that may drop when frames run slow.

Link copied to clipboard

Keeps the spectrum, the colours and the shapes, and damps what throws the picture about.

Link copied to clipboard

The drawing on screen now: the director's choice while directed is on, otherwise drawing.

Link copied to clipboard

How long each part of the last frame took.

Link copied to clipboard

Parts of the finishing pass to leave out, for every drawing.

Link copied to clipboard

False draws the background alone.

Functions

Link copied to clipboard
fun mutate()

Changes a couple of genes in the recipe of the drawing on screen, now rather than at the next accepted boundary.