Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
motion guides: cast each part's instrument from the thousands of free libraries, not the same four packs
shinyobjectz153fbc6267e5
diff --git a/sdk/guides/craft/motion/assets.md b/sdk/guides/craft/motion/assets.mdindex 77c50122..a798e038 100644--- a/sdk/guides/craft/motion/assets.md+++ b/sdk/guides/craft/motion/assets.md@@ -13,10 +13,11 @@(`motion/brand`).- Describe generated sound as values: `sao(prompt, {seconds})` for foley, given to `<Audio src>` (`motion/sound`),and `Tone.tokensynth(timbre, notes)` for an instrument's notes in a `Tone.Sampler` (`motion/music`).-- Recorded instruments and drum hits come from the open sample libraries: `raea sounds WORDS` finds one, `raea sounds- get PACK/INSTRUMENT` copies its files into `media/sounds/PACK-INSTRUMENT/` with a `LICENCE.txt`, and prints the- `staticFile` paths and the Sampler that plays them. Orchestras, drum kits, effect packs and MIDI grooves fetched by- hand, and how to set up SAO and TokenSynth, are in `motion/sources`.+- Recorded instruments are cast for each part from the thousands of free sampled instruments (Pianobook, Karoryfer,+ the SFZ index, Decent Samples, Versilian and more: `motion/music` "Cast the instruments", `motion/sources`). For a+ sketch, `raea sounds WORDS` searches the four packs raea carries, and `raea sounds get PACK/INSTRUMENT` copies one+ into `media/sounds/PACK-INSTRUMENT/` with a `LICENCE.txt` and prints the `staticFile` paths and the Sampler that+ plays them. How to set up SAO and TokenSynth is in `motion/sources`.- Show stills with `<Img src>`. The frame waits for the image to load, and a missing one fails the render, naming`src`.- Keep pictures real: the person's footage, stock already in the object's media, or things you build (components,diff --git a/sdk/guides/craft/motion/music.md b/sdk/guides/craft/motion/music.mdindex 0c3e872c..c797c452 100644--- a/sdk/guides/craft/motion/music.md+++ b/sdk/guides/craft/motion/music.md@@ -21,6 +21,28 @@ drone under a long reverb is what generated music sounds like. Before any instru- A sustained texture (a held pad, a drone, a reverb wash) goes in only when the scene asks for one by name ("dread","the ship's hum") and the direction says why in a line. Even then something over it moves.+## Cast the instruments for this piece++Every agent that reaches for "a piano" gets the same Salamander grand, and every "MIDI" part the same General MIDI+bank, so every score sounds alike. Thousands of sampled instruments are free to use, and choosing them is part of+writing the music. Shane, 2026-11-23: "when i say midi it just picks the same ones there thousands of insturments out+there to go use".++- Cast each part the way a composer books a player. Write a line per part: what it is, what it's like and how it's+ played ("an old upright, a little out of tune, felt down, close-miked"; "one cello, dry, in a small room, played+ low"; "a harmonium with its bellows audible"). Let the picture choose: its place, its era, what is in the room.+- Search for that line in `motion/sources`' instrument libraries: Pianobook's thousands of community instruments,+ Karoryfer, the SFZ index, Decent Samples, Versilian, musical-artifacts and the rest. Listen to a few candidates on+ the part's own notes before choosing. A character instrument (a prepared piano, a music box, a bowed vibraphone, an+ out-of-tune upright, a particular cello) does more for a piece than a clean generic one.+- `raea sounds` (the Salamander grand, FluidR3's General MIDI set, tonejs-instruments, VCSL's single takes) is for a+ sketch, or for a part that really is that instrument. It isn't the cast. A score made only of its packs needs a+ reason in the direction.+- "MIDI" means notes, not General MIDI sounds. A General MIDI bank (FluidR3, MuseScore General) plays a MIDI file+ as it is, to check it. A score's parts are cast instruments playing those notes.+- Write the cast in the piece's notes: each part's instrument, where it came from and its licence. When a part+ can't be cast (no free library has it), that's when TokenSynth or a synth comes in.+## What to do- Write music and sound effects in Tone.js, as its docs write them: `import * as Tone from "raea/tone"`, then@@ -30,12 +52,14 @@ drone under a long reverb is what generated music sounds like. Before any instrustarts and stops on the Transport.- Make music from instruments playing notes, not from a generated track. Each instrument is a `Tone.Sampler` (a kitis `Tone.Players`); fill it one of three ways:- - **A sample library** for a real instrument, first: `raea sounds cello` searches the open libraries raea carries- (the Salamander grand piano; FluidR3's 128 General MIDI instruments, every note; tonejs-instruments' strings,- brass, woodwinds and guitars; the Versilian library's keyboards, harps, mallets, drums and percussion), and- `raea sounds get tonejs-instruments/cello` copies its notes into `media/sounds/` and prints the `Sampler` that- plays them. Drums and hits come as takes for `Tone.Player`s. Whole orchestras, multi-velocity kits and drummers'- grooves are fetched by hand (`motion/sources`).+ - **A sampled instrument cast for the part** (above), first. Most come as SFZ or Decent Sampler presets: read the+ preset's map (SFZ `<region>`: `sample=`, `pitch_keycenter=`, `lokey`/`hikey`, `lovel`/`hivel`; a `.dspreset`'s+ `<sample path rootNote loNote hiNote loVel hiVel>`) into the Sampler's `urls`, one Sampler per velocity layer+ you use. For a quick sketch, `raea sounds cello` searches the four packs raea carries (the Salamander grand;+ FluidR3's 128 General MIDI instruments; tonejs-instruments' strings, brass, woodwinds and guitars; VCSL's+ keyboards, harps, mallets, drums and percussion), and `raea sounds get tonejs-instruments/cello` copies its notes+ into `media/sounds/` and prints the `Sampler` that plays them. Drums and hits come as takes for `Tone.Player`s.+ Everything else is fetched by hand (`motion/sources`; `raea sounds get` reaching it all is docs/sound.feature SN4).- **TokenSynth** for a timbre no library has: `Tone.tokensynth("a bowed saw, close, eerie", ["C3", "E3", "G#3","C4", "E4", "G#4", "C5"], { seconds: 2 })` renders those root notes, a major third apart, once on this computer,and the Sampler pitches between them. Describe@@ -121,9 +145,8 @@ semitones) off, a piano note still at full level when its file ends, so every hethe "vanilla and abrasive" sound. It learned from 5-second notes at four velocities, so it gives one dynamic and canmiss the pitch asked for. So:-- Reach for an open sample library first for a standard instrument (`raea sounds piano`, `sounds get- salamander/piano`): a recording, no gamble. Use TokenSynth for what no library has, or a timbre you can describe- better than find.+- Reach for a recorded instrument first, cast for the part (above): a recording, no gamble. Use TokenSynth for what+ no library has, or a timbre you can describe better than find.- Declare each instrument as a candidate, not a call: its timbre, roots every 3 to 4 semitones over the range it plays(a Sampler pitched further than that starts to sound fake), 3 or more seeds, and `seconds` long enough for thesound to die away on its own (4 for piano, 6 for sustained strings).@@ -194,8 +217,9 @@ remote music model, is retired: an older edit keeps the take it made, and a newSpotted as one cue over nine one-bar cards: A (bars 1 to 4) piano and a pizzicato ostinato, the flute's motif frombar 3; B (bars 5 to 8) the ostinato drops out, bass and kit come in, the motif climbs; the button on the end card's-cut. The instruments came from these commands, each printing the roots it fetched (with no `--notes`, a minor third-apart from C1 to C7, or every note the library sampled when that's sparser):+cut. The instruments are `raea sounds` packs so the example runs anywhere with one command each; a real piece casts+its own (above). Each command prints the roots it fetched (with no `--notes`, a minor third apart from C1 to C7, or+every note the library sampled when that's sparser):```shraea sounds get salamander/pianodiff --git a/sdk/guides/craft/motion/sources.md b/sdk/guides/craft/motion/sources.mdindex f76d5e5a..4a10f6f6 100644--- a/sdk/guides/craft/motion/sources.md+++ b/sdk/guides/craft/motion/sources.md@@ -6,7 +6,7 @@| the job | the source ||---|---|- | an instrument playing a part: piano, strings, brass, woodwinds, mallets, guitars, a drum kit | a sampled library: `raea sounds` first, then the packs below |+ | an instrument playing a part: piano, strings, brass, woodwinds, mallets, guitars, a drum kit | an instrument cast for the part from the libraries below (`motion/music`, "Cast the instruments"); `raea sounds` for a sketch || a timbre no library has ("a bowed saw, close") | TokenSynth, curated (`motion/music`) || an effect, foley, an ambience | a recorded pack or the person's own recordings first; SAO for what none has, in layers (`motion/sound`) || a voice over the picture | `<Speech>` (Pocket TTS, local); a voice model is a `raea gen speech` step, Fish's with the person's own FISH_API_KEY (`motion/gen`) |@@ -132,7 +132,13 @@ as docs/sound.feature SN4.| VSCO 2 Community Edition | CC0 | github.com/sgossner/VSCO-2-CE (its `SFZ` branch has the maps) | an orchestra: solo and section strings with articulations, woodwinds, brass, percussion, keys; WAV with SFZ maps || VCSL, the whole library | CC0 | github.com/sgossner/VCSL (its `sfz` branch has the maps) | every dynamic and round robin of what `raea sounds` gives one take of || Salamander Grand Piano V3 | CC-BY 3.0 | github.com/sfzinstruments/SalamanderGrandPiano | the same piano at 16 velocities, 48 kHz, SFZ |-| sfzinstruments' lists | per pack, on the list | sfzinstruments.github.io (pianos, strings, drums) | take the CC0, public domain and CC-BY ones: Karoryfer's free packs (Big Rusty, Swirly and Unruly drums, Frankensnare, Meatbass, Bigcat Cello; mostly CC0, older ones CC-BY 3.0: read each readme), SM Drums (public domain), Splendid Grand Piano (public domain), DrumGizmo's DRS and Muldjord kits and Naked Drums (CC-BY 4.0) |+| sfzinstruments' lists | per pack, on the list | sfzinstruments.github.io (pianos, strings, drums) | take the CC0, public domain and CC-BY ones: SM Drums (public domain), Splendid Grand Piano (public domain), DrumGizmo's DRS and Muldjord kits and Naked Drums (CC-BY 4.0) |+| Karoryfer's free libraries | CC0, all of them (older downloads may carry an older licence file: fetch again); not Marie Ork | shop.karoryfer.com/pages/free-samples, github.com/sfzinstruments | instruments with character, in SFZ: Osiris Piano (a quiet piano, with Versilian), Bigcat Cello, Sneakybass (very quiet pizzicato double bass), Black and Blue Basses, Big Little Bass, Ergo EUB, Cowsynth (a synth made from medieval bagpipes); Big Rusty, Unruly and Swirly (brushed) drums, Frankensnare, Meatbass |+| Pianobook | its EULA: any commercial or non-commercial composition, no credit, as long as the samples are combined with other sounds; never passed on in any form (as samples, an instrument or a conversion), and it can't promise every upload is clean: skip one whose page looks like someone else's recordings | pianobook.co.uk (a free account) | thousands of community instruments, mostly Decent Sampler presets with the WAVs inside: pianos of every kind (uprights, felt, prepared, tape-worn), organs and harmoniums, strings, voices, toys, found objects, textures. The widest source of instruments with a character |+| Decent Samples, its free libraries | its EULA: any music or video, commercial too, combined with at least one other sound; never passed on on their own; never a copy-protected (.dsproduct) one taken apart | decentsamples.com (Freebies) | Decent Sampler presets from many makers, often the free half of a paid library |+| Versilian Studios' other free libraries | CC0 for the community ones (VSCO 2 CE, VCSL, Miscellania I and II); the rest under its EULA, rendered audio free for any use | versilian-studios.com | beyond VSCO and VCSL: Miscellania's odd and world instruments, and freeware in Decent Sampler and SFZ |+| hilbricht.net's list of free sampled instruments | each entry gives its licence | hilbricht.net/foss-sampled-instruments | a curated list of open sampled instruments with licence and format, the quickest way through the open ones |+| musical-artifacts | per file, shown on each: take CC0, public domain and CC-BY | musical-artifacts.com | soundfonts, SFZ and single-instrument libraries, many niche and world instruments found nowhere else; mixed quality, so listen first || University of Iowa Musical Instrument Samples | "may be downloaded and used for any projects, without restrictions" | theremin.music.uiowa.edu/mis.html | single notes of orchestral instruments at several dynamics, recorded dry: give them a room's reverb || FreePats | per bank: CC0, CC-BY or GPL; take the CC0 and CC-BY banks only | freepats.zenvoid.org | General MIDI families, world instruments, percussion; SFZ and SF2 || MuseScore General | MIT (keep its notices) | ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/ | a General MIDI bank with drum kits, SF2 (216 MB) or SF3 (40 MB), for playing a MIDI file as it is |@@ -154,6 +160,11 @@ stock music (not in games or broadcasts, and no remixing), Salamander Drumkit an(copyrighted songs). Freesound's API is free only for non-commercial use, so raea doesn't search Freesound for theperson: they download its sounds themselves.+Pianobook's, Decent Samples' and Sonniss's terms forbid passing the samples on. A project shared with anyone (its Git+repo, raea cloud, a handed-over folder) passes on what's in its `media/`. So their files go in `media/sounds/` with a+`.gitignore` beside them and a `SOURCE.txt` saying where to fetch each one, and the piece's notes say so. CC0, CC-BY+and MIT files can travel with the project.+## Loading a pack in a composition- **One-shots** (an effect pack, a field recording): the file in `media/sfx/PACK/`, then `<Audio