Session Mixer
ProNewA mixing desk: a strip per channel with a fader, a level meter, and mute, solo and record-arm, where soloing one channel silences the rest.
Installation
pnpm dlx shadcn@latest add @viewport/session-mixer
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| channels* | MixerChannel[] | — |
| onChannelChange* | (id: string, patch: Partial<MixerChannel>) => void | — |
| playing | booleanThe session is playing, so the meters move. | false |
| label | stringAccessible name. | "Mixer" |
| className | string | — |
Accessibility
- Each strip is a group named with its channel; every control includes the channel's name.
- Faders are vertical sliders with arrow-key steps.
- Mute, solo and arm report their pressed state.
- Meters move only while playing and when motion is allowed.