Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
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.
2026-11-29 16:02:31 -08:00

1.9 KiB
Raw Permalink Blame History

title, summary, order, sources
title summary order sources
raea make sounds Search open sample libraries for instruments and drums, and fetch one for a Sampler. 113
apps/tools/src/sound/library.rs

raea make sounds searches open, freely licensed sample libraries by the words producers use ("kick", "hihat", "upright piano") and lists what matches. raea make sounds get fetches one instrument's samples into the project, ready for a Tone.js Sampler. For a pitched instrument it takes one sample per note, at the middle dynamic.

raea make sounds piano
raea make sounds get vcsl/upright-piano-knight --notes C2,C3,C4,C5 -o media/piano/
raea make sounds get vcsl/bass-drum-1 --all

The ids are exact: raea make sounds kick lists the kicks by their ids (vcsl/bass-drum-1, -2, -3-legacy). A drum or a hit comes as its first 12 takes unless --all is given. The four libraries are Salamander's grand piano, FluidR3's General MIDI set and tonejs-instruments (all three CC-BY 3.0: credit them), and the Versilian Community Sample Library (CC0). Larger libraries, effect packs and MIDI grooves are fetched by hand: raea guide sources lists them with their licences and the command that fetches each.

Usage

raea make sounds [WORDS] | sounds get PACK/INSTRUMENT [--notes ..|--all] [-o DIR]   (open sample libraries for a Sampler)

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

Flags

Flag Takes What it does
--all – Fetch every sample: a pitched instrument's every sampled note (still one take a note, at the middle dynamic), a drum's every take.
--notes ..|--all Fetch only these notes, comma-separated (C2,C4).
-o DIR The folder the samples go to.