Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ArticulationGain

File: Rhapsodist/Processors/ArticulationGain.js. Standalone MIDI Processor script.

Overview

Applies a per-articulation gain to note on/off messages: a 100-slot sliderpack (slpGain, range 0–1) holds one user-facing gain value per articulation index. This is tracked via the shared articulation global cable.

The sliderpack gain value is added on top of an optional developer-set baseline value, configured in the Manifest as gain.

slpGain is what ArticulationList’s per-row gain sliders display and edit.

Parameters

IDDescription
ArticulationCurrent articulation index, 0–100. Set from the articulation global cable rather than by the user directly.
GainDeveloper-set baseline gain applied before the per-articulation gain, -24–24 dB.
slpGain100-slot sliderpack, one gain value per articulation index, 0–1, step 0.01.

Usage

Load into a Script Processor slot with the module ID articulationGain, and connect a persistent sliderpack from the Interface script to slpGain.

Internal Reference

FunctionDescriptionReturns
getArticulationGain(index)Combines Gain’s baseline with slpGain’s value at index, rescaled from 0-1 to -24-24 dB.number
changeArticulation(index: number)Registered on the articulation global cable; sets Articulation to the incoming articulation index and fires its change callback.—