e01df49Embeddable <toy-instrument-sim> widget (src/embed.ts): 3D model, replay and audio from the shared cache, or run in the browser and stored with the passcode; cache results as light and frames entries (CACHE_VERSION 2); instrument configs and link settings shared by the page and the widgetJeremy Magland 1import type { InstrumentConfig } from '../ui/instrumentPage';
2import { STRING_CONFIG } from './bead-string/config';
3import { DRUM_CONFIG } from './bead-drum/config';
4import { CYMBAL_CONFIG } from './bead-cymbal/config';
6// Every built instrument's configuration, by id (the instrument page and the
7// embedded widget both start from these).
9export type AnyConfig = InstrumentConfig<any>;
11export const CONFIGS: Record<string, AnyConfig> = {
12 'bead-string': STRING_CONFIG,
13 'bead-drum': DRUM_CONFIG,
14 'bead-cymbal': CYMBAL_CONFIG,
15};