Global Parameters (Pass 2)
This pass adds three parameters: two that back the next set of UI controls (batch target selection and randomise spread), and one facade parameter that exposes the filter cutoff to the user and to the DAW at a safe, usable range.
Open Patch Settings → Global Parameters as before and add the following parameters with the + button.
batchChangeTarget
Section titled “batchChangeTarget”| Field | Value |
|---|---|
| Name | batchChangeTarget |
| Semantic type | Generic Int |
| Default value | 0 |
This parameter tracks which per-step parameter is currently selected for
batch editing — velocity, detune, filter, or wavetable position. The UI
writes to it when the user picks a target; the step controls read it to know
which value to display and edit. A default of 0 means no target selected.
randomizeRange
Section titled “randomizeRange”| Field | Value |
|---|---|
| Name | randomizeRange |
| Semantic type | Generic Float |
| Default value | 0.2 |
Controls how far the randomiser can deviate from each step’s current value.
A value of 0.2 means ±20% of the full parameter range — enough variation to
be interesting without completely overwriting the pattern.
externalCutoff
Section titled “externalCutoff”Add one more parameter via Patch Settings → Global Parameters:
| Field | Value |
|---|---|
| Name | externalCutoff |
| Semantic type | Generic Float |
| Default value | 0.25 |
The engine’s filter cutoff covers 20–6000 Hz — far too wide a range to expose
directly as a user-facing control on a bass instrument. Rather than clamping
the range inside the UI (which would break automation, since the DAW would
still record and replay the full 0–1 range), a facade parameter is used.
externalCutoff is the parameter the user and the DAW see; the RT script
subscribes to it and converts it to the internal engine cutoff in real time.
The RT script changes that implement this conversion are covered in RT Scripting Pass 3.
Outline
Section titled “Outline”- Global volume parameter
- Global delay send amount parameter
- Global reverb send amount parameter