/ proof-of-concept / toy-instruments
Sign in
proof-of-concept / toy-instruments
toy-instruments / src / instruments / configs.ts
16 lines · 539 BBlameHistoryRaw
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};
↑↓ move↵openescclose