mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code are gone with no alias (MK41). brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it (the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines and signed asks run inside the loop (MK47). `raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake| sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went. docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out. raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal runner runs on the shipped binary.
2.0 KiB
2.0 KiB
title, summary, order, sources
| title | summary | order | sources | ||
|---|---|---|---|---|---|
| raea make tokensynth | Make an instrument's notes from a description of its timbre with TokenSynth, on this machine. | 112 |
|
raea make 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 make sao, it shares the asset store and defaults with
Tone.tokensynth("…", notes) in a composition.
raea make tokensynth "warm analog bass" --notes C1,C2,C3 -o media/bass/
raea make 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 make 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 make 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. |