MultiChannelGain
File: Rhapsodist/Core/ScriptFX/MultiChannelGain.js.
Overview
Provides a basic Gain/Smoothing/Width/Balance gain stage, applied across however many channels the host Script FX module has. This isn’t the same parameter set as HISE’s built-in Simple Gain effect (which has Gain/Delay/Width/Balance/InvertPolarity and no user-facing smoothing control); the name refers to the general kind of effect, not a drop-in replacement.
Parameters
| ID | Description |
|---|---|
Gain | Decibel-mode gain, -100–12 dB. |
Smoothing | Time-mode smoothing, 0–1000 ms. |
Width | Stereo width, 0–200. |
Balance | Pan-mode balance control. |
Usage
On a Script FX module, use “Connect to External Script” and point it at MultiChannelGain.js; its Gain/Smoothing/Width/Balance knobs then control that module’s channels directly.
Gain and balance are applied per channel pair (odd/even channels share a gain stage), using an equal-power pan law for balance. Width processing is applied uniformly across every channel.
Internal Reference
| Function | Description | Returns |
|---|---|---|
updateGainers() | Recomputes the equal-power pan values from Balance and applies gain (from Gain, converted from dB) to each of the two gain stages. Called whenever Gain or Balance changes. | — |