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

ReleaseStartOptions

File: Rhapsodist/Includes/ReleaseStartOptions.js · Namespace: ReleaseStartOptions.

Overview

ReleaseStartOptions.js is an optional companion script for projects using HISE’s single sampler release trigger feature. It exposes scripted control over the Release Start options across every sampler in Core.samplers and adds a user-facing on/off toggle button in Instrument Settings.

State and persistence

btnReleaseTriggers’s value is preserved across non-internal preset loads via Presets.broadcasters.preLoad/postLoad snapshot/restore, the same pattern documented in Header for master volume/pan.

The underlying per-sampler setAllowReleaseStart state itself is set at runtime rather than stored per-preset by this script.

Usage

Include it into the Interface script’s on init via include(). applyDefaults() and the btnReleaseTriggers toggle are set up automatically at include time.

Public API

FunctionDescriptionReturns
applyDefaults()Applies a fixed set of release-fade options to every sampler in Core.samplers (ReleaseFadeTime: "8192", FadeGamma: 0.5, descending zero crossing, GainMatchingMode: "Volume", PeakSmoothing: 0.9). Called automatically at include time.—
setOptions(options: JSON)Replaces the full release-start options object on every sampler in Core.samplers.—
setOption(option: string, value: NotUndefined)Updates a single option key on every sampler, leaving the rest as-is.—

Internal Reference

Broadcasters

BroadcasterDescription
bcbtnReleaseTriggersValuebtnReleaseTriggers’s value changes. Calls setAllowReleaseStart on every sampler in Core.samplers, applying the toggle’s new state.