Home

PatchController.Display

Built-in data display elements.

"dadsrEnv"

An envelope display with 5 parameters: delay, attack, decay, sustain, release.

["timeLevelEnv", Int, Int, Bool?]

A time/level envelope display. The arguments are pointCount, sustain, and optionally bipolar.

pointCount
The number of time/level points in the display.
sustain
The sustain point of the envelope (if any), 0-based. Set to a number greater than the `pointCount` to have no sustain point.
bipolar?
Set to true if this envelope can have negative level values, so that the display will be drawn with the X-axis vertically centered, rather than at the bottom of the display.
["env", Function]

A custom display element (usually for an envelope). The passed function should have the signature ([SynthPath:Float]) => [PBBezier.PathCommand]. Whenever the display is updated, a dictionary will be passed to the function containing various parameter values. The function uses those to return an array of drawing functions which will be used to draw a bezier path within the display.

"levelScaling"

A Level Scaling display, used for the Yamaha DX7 and related synths.