// The simulated instruments: physically based models from the sibling // simulated_instruments collection, each imported directly from its // repo's instrument/ module. Each module implements the track-render // interface itself (worker, caching, progress, cancellation included), // so registering it is all there is to do here. The MATLAB sources ride // along at build time via each module's own import.meta.glob. import { registerInstrument } from './registry.ts'; import { bassInstruments } from '../../../../simulated_instruments/bass/instrument/index.ts'; import { woodblockInstruments } from '../../../../simulated_instruments/woodblock/instrument/index.ts'; import { recorderInstruments } from '../../../../simulated_instruments/recorder/instrument/index.ts'; import { cymbal2Instruments } from '../../../../simulated_instruments/cymbal2/instrument/index.ts'; import { triangleInstruments } from '../../../../simulated_instruments/triangle/instrument/index.ts'; import { maracaInstruments } from '../../../../simulated_instruments/maraca/instrument/index.ts'; export function registerSimulatedInstruments(): number { const all = [...bassInstruments, ...woodblockInstruments, ...recorderInstruments, ...cymbal2Instruments, ...triangleInstruments, ...maracaInstruments]; for (const ins of all) registerInstrument(ins); return all.length; }