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

ReleaseTrigger

File: Rhapsodist/Processors/ReleaseTrigger.js.

Overview

A fully scripted processor for release “tails” that live as their own separate samples.

It is not merely an alternative to HISE’s native single-sampler Release Start feature, it targets a different use-case where distinct release samples are required.

HISE ships a hardcoded script for that same pattern; ReleaseTrigger.js is a more advanced, drop-in replacement with additional functionality.

A release note triggers on note-off, unless a sustain pedal is holding it, or Legato is on and other keys are still held.

If the sustain pedal is what’s holding notes, releasing it fires the release trigger for the last note played, once no keys remain held.

The triggered note carries the original note’s detune/gain, optional held-duration attenuation, and its own delayed note-off.

Parameters

IDDescription
MuteDisables the processor; no release note is triggered while on.
NoteOnPassThru (“Note On Pass Thru”)When enabled, incoming note-ons are not blocked, useful when the original note-on should still sound normally.
LegatoRelease samples only trigger when no other keys are held.
AttenuateAttenuates based on how long the note was held, shaped by tblTime against Time’s range, up to 30 dB.
IgnoreSustainWhen off, an active sustain pedal (CC64) suppresses release triggering on both note-off and pedal release.
OffDelay (“Off Delay”)How long after the release note starts before its own note-off fires, min 50 ms.
TimeHeld-duration range used to look up tblTime, 0–60 seconds, step 0.1. Only relevant when Attenuate is on.
tblTimeShapes the held-duration attenuation curve used when Attenuate is on (x-axis = normalised held duration against Time, y-axis = attenuation amount).

Usage

Load into a sampler or container’s MIDI Processor chain and configure as needed.

Internal Reference

FunctionDescriptionReturns
playReleaseNote(noteNumber, velocity)Plays the release note, carries over the original note’s detune and gain, applies Attenuate’s held-duration attenuation via tblTime, and schedules the note-off after OffDelay. Called from both onNoteOff and the sustain-pedal release path in onController.—