Files
raea/docs/manual/reference/cli/tokensynth.md
shinyobjectz 620cfe0744 References and the agent's prompt teach sound the way the guides now do.
The agent's sound line in engine/cli puts a sample library first, names raea guide sources, says music is composed for the cut and never a pad or drone by default, and keeps TokenSynth for a timbre no library has. Audio's src doc no longer offers lyria(), which is retired (and audio-stack.md says so), and the manual's example drops the media/ prefix staticFile doesn't take. The CLI pages say what is true: raea sounds' ids are exact (vcsl/upright-piano-knight, vcsl/bass-drum-1) and --all gives a pitched instrument one take a note; an SAO take is at most 11.9 s, a seed's take is played from its file, and SAO suits effects better than music; TokenSynth is for a missing timbre, curated; setup-audio says what each model fetches, its size and licence (SAO's is Stability AI's Community License, not an open one), what it needs and what its failures mean.
2026-11-16 17:29:58 -08:00

2.0 KiB

title, summary, order, sources
title summary order sources
raea tokensynth Make an instrument's notes from a description of its timbre with TokenSynth, on this machine. 85
apps/tools/src/sound.rs
io/assets/src/local.rs

raea tokensynth plays notes on an instrument described in words, with the TokenSynth model running locally, and writes one file per note: a sample set for a Sampler. Like raea sao, it shares the asset store and defaults with Tone.tokensynth("…", notes) in a composition.

raea tokensynth "warm analog bass" --notes C1,C2,C3 -o media/bass/
raea tokensynth "a bowed saw, close, eerie" --notes C3,E3,G#3,C4 --seconds 4 --velocity 80 --seed 7

Use it for a timbre no recorded library has (raea sounds first for a piano, strings or drums). A take can miss its pitch or come out as hiss, so make a few seeds of each root and keep the ones that pass (raea guide music, "Instruments from TokenSynth"). A note is held under 5 s.

Usage

raea tokensynth "TIMBRE" [--notes C2,C3,C4] [--seconds 2] [--velocity 100] [--seed 1234] [--precision fp16] [--dir EDIT_DIR] [-o OUT_DIR]   (an instrument's notes, local)

Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.

Flags

Flag Takes What it does
--dir EDIT_DIR The edit's folder, whose asset store keeps the notes (the current folder by default).
--notes C2,C3,C4 Which notes to play, comma-separated.
--precision fp16 The model's precision: fp32, fp16 (the default), bf16, int8 or coreml.
--seconds 2 How long each note is.
--seed 1234 The seed; another seed gives another take.
--velocity 100 How hard each note is played, as MIDI velocity up to 127.
-o OUT_DIR Also write the notes to this folder.