/** * BreakOrMode — drum/breakbeat synthesis (xy_pad input, 56 outputs). */ import { Component } from 'solid-js'; import { ModeShell } from './ModeShell'; import { useModeRuntime } from './mode-runtime'; import { XYPad } from '../primitives/XYPad'; import { OutputDisplay } from '../primitives/OutputDisplay'; import { SliderBank } from '../primitives/SliderBank'; import { LossPlot } from '../primitives/LossPlot'; import { paramsToSliderConfig, outputsToSliderValues } from './mode-helpers'; import { BreakorSchema } from './generated/breakor_schema'; export const BreakOrMode: Component = () => { const schema = BreakorSchema; const runtime = useModeRuntime(schema); const sliderConfig = paramsToSliderConfig(schema.params); const sliderValues = () => outputsToSliderValues(runtime.processedOutputs(), schema.params); return ( ( { /* read-only */ }} /> )} primaryInput={() => ( <> runtime.setInput(x, y)} position={runtime.pipedInput} /> Drag through drum space. )} outputArea={() => ( <> )} /> ); }; export default BreakOrMode;