Skip to main content

Module solve

Module solve 

Source

Structs§

Cost
Leaf
Load
A value the cost reads instead of rendering: read and checked once, before any render.
NoFiles
No file at all: a front end with no filesystem hands each value over instead.
Point
One render of every target at one point, and what the cost made of it.
Problem
Solved
Stops
Vary

Enums§

From
Where a load’s JSON comes from: a file and a path into it, as the CLI writes load_json("<file>", "<jq path>"), or the value itself, as a page hands it over.
Held
What a load held once read: a number, a vector, or a reading the leaf it subtracts from decoded.
Op
Precision
Stopped
Target
What a leaf reads: a render expression, or a recording handed over as its samples.
Tree
A cost as a tree, as a front end with no text to parse builds one: each node one form, every reference a value. built makes the same Cost the text grammar does.

Constants§

DEFAULT_COST_TOL
DEFAULT_MAX_RENDERS
DEFAULT_STEP_TOL
FIRST_STEP_OF_SPAN
Without /<step>, the first step is this fraction of the bounds’ span.
FITS
The directory of a composition a solve reads @fits/<name> costs from; no node lives in it.
FLOOR_DB
Every level is floored here before it subtracts: the profile’s silence threshold.
LOAD_JSON
A leaf that reads a JSON file instead of rendering: the cost’s one file read.
MISSED_NOTE_CENTS
What a note with no partner in its frame counts, in cents: an octave.
MISSED_ONSET_SECS
What an onset with no partner on the other side counts, in seconds.
OPERATORS
Each arithmetic operator by name, as a tree names it.
REDUCERS
REPR
The name a leaf of a reading is written under, repr.bands(...).
RULES
One line per rule, as --help prints them.
SOLVE_ONLY
The help a node or a render target earns where it writes a cost’s own leaf.
SUBTRACTS
The readings a cost subtracts, each by the rule residual.rs states for it.

Traits§

Texts
Where load_json finds a file’s text: in the CLI, relative to the directory it runs in.

Functions§

built
tree as the Cost its text would parse to, typed by the same rules.
checked
Every check the cost and the variables need, before anything renders: the variables’ start values, and each load’s value.
cost
cost_of
@fits/<name> is the cost that file of the composition holds; any other text is the cost.
findings
What a fit says beside its values: a variable on a bound, a spent budget, a resampling.
point_json
One render’s progress line, as sva-cli writes it to stderr.
solve
heard hears each point as it is rendered; abandon stops the search between renders and the render in flight.
solved_data
The answer’s data, as both front ends print it.
takes
How many arguments a reducer takes: dot a weight vector and a vector, the rest one.
vary
name=lo..hi[/step][,log], as cutoff=200hz..8khz/1.25,log or gain=-12db..0db/1db.