HISE Docs

Polyphonic Script FX

Type ID: PolyScriptFX
Interface classes: VoiceResetter

A polyphonic scriptable audio effect.


Create a polyphonic Script FX with Scriptnode .

The Polyphonic Script FX is the polyphonic version of the scriptnode FX module which allows per-voice effect processing.

If you load a DspNetwork in a polyphonic module, it will use the polyphonic version of every node (if available / applicable). Furthermore, it will reset the processing state before each voice is being rendered (eg. clearing out filter coefficients & resetting the state of any rampers).

You can also compile DspNetworks to be used as a polyphonic C++ class in its hardcoded counterpart, the HardcodedPolyphonicFX .

Voice Management

Although this module is named FX it can also be used as a sound generator. This gets especially interesting in combination with the spurious SilentSynth module to build multichannel / dynamic sound generators. Therefore this module has the functionality of the VoiceResetter class which allows you to keep voices alive until you send a voice reset message from inside your network.

Note that this behaviour is toggled with the HasTail flag of the loaded network and if it is enabled (which is the unlucky default value when you create a new DspNetwork), then the voice will not be killed which leads to a stackup of voices. So if you use the polyphonic FX module, either use it without this flag or make sure to use a voice-management node inside the network.