vst instrument
vstInstrument · sourcesPlays one of YOUR installed instrument plugins (AU builds of your VSTs) as a first-class rack voice via the vst-bridge native helper — poly/gate/vel CV converted to sample-accurate MIDI in the worklet, plugin audio returned into the lane, native editor window on your machine.
the faceplate
4 inputs · 2 outputs · 0 params
inputs
| id | cable | what it does |
|---|---|---|
poly | polyPitchGate | The rack's 32-channel poly note bus (16 voice pairs: even channels pitch V/oct, odd channels gate 0|1). Auto-wired from the lane clip player's pitch{n}. Each voice pair runs its own gate→NoteOn/NoteOff state machine in the worklet, so chords land as concurrent MIDI notes with per-voice NoteOffs. poly pitch+gate bus; 10-channel poly bus (5 pitch + 5 gate lanes) |
pitch | cv | Mono V/oct pitch (0.0 = C4), used with the gate input only when the poly bus is unpatched — the hand-patch fallback for driving the plugin from a mono sequencer or LFO. control voltage (CV) |
gate | gate | Mono note gate (level-sensitive, threshold 0.5): rising edge = NoteOn sampling the pitch input at that instant, falling edge = NoteOff of the sounding note. Auto-wired from the clip player's gate{n} alongside the poly bus (the lane rule); the poly bus takes precedence whenever it is patched. gate / trigger; gate — acts while the level is high (reacts to both edges) |
vel | cv | Velocity CV 0..1 → MIDI velocity 1..127, sampled at each gate rise (a NoteOn is never emitted at velocity 0 — the wire floor is 1). Unpatched, notes send velocity 100. Auto-wired from the clip player’s vel{n}. control voltage (CV) |
outputs
| id | cable | what it does |
|---|---|---|
out_l | audio | The plugin's audio return, left — placed on the card's own timeline by the bridge (each returned block carries the sampleTime of the clock block that pulled it). Auto-wires into the channel lane chain. audio signal; L/R stereo pair with out_r |
out_r | audio | The plugin's audio return, right (stereo-paired with out_l, so patching only the left side normals both). audio signal; L/R stereo pair with out_l |
controls
| control | what it does |
|---|---|
| Vst connect {n} | Opens this card's own session with the vst-bridge helper — one WebSocket, one plugin instance, keyed by this node id. It also RESTARTS a live session at the engine's current sample rate, which is the recovery path when another browser tab has claimed this card's instance: press it and the instance comes back here. The engine already connects on its own when the node is created, so this is for the case where the helper was not running yet, or where you disconnected on purpose. |
| Vst disconnect {n} | Drops the session without deleting the node — the helper PARKS this plugin instance rather than destroying it (about 90 seconds), so a reconnect re-adopts the same plugin with its state intact. Use it to hand one of the helper's sixteen concurrent instances to another card, or to silence this voice without losing the patch. |
source
vst-instrument.ts on GitHub.