audio in

audioIn · sources · schema v1

System audio input source. Stream from a user-selected mic/line-in/interface via getUserMedia; L+R outputs are fanned out from mono sources or split from stereo. Card owns the permission prompt + device dropdown + devicechange refresh.

Brings system audio INTO the patch: it streams from a microphone, line-in, or USB interface you pick on the card and exposes the signal as a stereo L/R pair you can patch into the rack. Mental model: a live external source — sing, plug in a guitar/synth, or capture another app — and treat it like any oscillator output, sending it through filters, effects, and out to AUDIO OUT. The card owns the permission flow and the device dropdown; permission is requested only when you enable it, not on patch load, so loading a patch never pops a mic prompt. Stereo handling is automatic: a stereo device feeds L and R separately, a mono source is duplicated to both sides. (Browser capture caps at a stereo pair — more than two channels per device is native-only — so only L/R are exposed.)

the faceplate

audio inaudio_l_outaudioaudio_r_outaudioaudiocvgatepitch
0 inputs · 2 outputs · 1 params

outputs

idcablewhat it does
audio_l_outaudioLeft channel of the selected input device (channel 1). For a mono source this carries the single channel, duplicated to the right output as well.
audio signal
audio_r_outaudioRight channel of the selected input device (channel 2). For a mono source it carries a copy of the left channel so both sides have signal.
audio signal

params

idlabelrangedefaultcurve
gainGain0..2gain1linear

controls

controlwhat it does
GainPost-source level trim applied equally to both channels, 0 (silence) to 2 (×2, +6 dB), default 1 (unity). Turn it down for a hot line-in that's clipping, up for a quiet condenser mic; there is no per-channel trim.

source

audioin.ts on GitHub.

Generated from packages/web/src/lib/{audio,video}/module-registry.ts · repo