Skip to main content

USAGE

Constant USAGE 

Source
pub const USAGE: &str = "usage: sva-cli render [<node|expression>] [query options]\n       \
     sva-cli analyze <file.wav> [--as <representation>[=<destination>]]... [--from <time>] \
     [--to <time>] [--frame <secs>] [--peaks <n>]\n       \
     sva-cli lint [<node|expression>] [--in <dir>] [--format <json|text>]\n       \
     sva-cli trace <node|expression> [--in <dir>]\n       \
     sva-cli builtins\n       \
     sva-cli outline <expression>\n       \
     sva-cli new <name> [--idempotency-key <key>]\n\
     query options: [--in <dir>] [--node <path>] [--from <time>] [--to <time>] \
     [--as <representation>[=<destination>]]... [--frame <secs>] [--depth <n>] [--peaks <n>] \
     [--sample-rate <hz>] [--oversample <n>] [--flop-budget <n>] [--volatile <name>]... \
     [--no-cache] [--brief] [--skim] [--pcm16] [--confirm]\n\
     representations: lines atoms spectrum envelope derivative samples ledger pitch formants \
     stereo bands crest loudness alias bindings arguments flops\n\
     analyses (`analyze` only): onsets trajectory masking gain-reduction\n\
     --against <file.wav> is the second signal `--as masking` is read against\n\
     --sample-rate <hz> is the observation rate, legal with any --as\n\
     --node <path> names the instance a reading is taken of; required with `--as bindings`\n\
     --flop-budget <n> is the operation count the caller means to pay; the profile's own \
     budget refuses past it, and `--as flops` prints the tree that count came from\n\
     --volatile <name> declares a bound parameter the player is moving: every node that reads \
     it is rendered and kept in memory for this run only, never written to the cache, and \
     sounds the same as without the flag; a name the target binds nowhere is refused\n\
     --brief condenses `ledger` to the nodes that clipped\n\
     --skim condenses `ledger`'s fields to node/channel/rms/peak/clipped\n\
     --pcm16 quantizes a `.wav` destination to 16-bit PCM instead of 32-bit float\n\
     destinations: a `.wav` path takes `samples` as audio; any other path takes JSON; none \
     prints JSON to stdout\n\
     --in <dir> names the composition `render`, `lint` and `trace` read; without it they read \
     the current directory. `new` and `analyze` take none. Each <node|expression> names a node \
     path or an expression in the same expression grammar a node file's body holds. A file \
     holds structure besides that body -- `name = <expr>` defaults, a TSV grid, a bare meter \
     such as `4/4` -- and an argument is a body alone, so `4/4` there is a division.\n\
     verb aliases: `validate`=lint, `list`=builtins, `create`=new, `show`=trace. `render` \
     and `analyze` take a reading, which the standard's verb list has no word for, so they \
     keep their own names.";