HISE Docs

granulator

core.granulator

A granular synthesizer that creates complex textures by processing small audio segments called grains.

Parameters

ID Range Default Description
Position 0.00 - 1.00 0.00 Sets the playback position within the audio file.
Pitch 0.50 - 2.00 1.00 Adjusts the pitch ratio for grain playback.
GrainSize 20.00 - 800.00 80.00 Determines the size of each grain in milliseconds.
Density 0.00 - 1.00 0.00 Adjusts the density of grains, controlling the time interval between the start of each grain. Higher values result in more frequent grain generation.
Spread 0.00 - 1.00 0.00 Sets the stereo spread of grains.
Detune 0.00 - 1.00 0.00 Introduces slight pitch variations between grains, adding a detuned effect.

The granulator node is a granular synthesizer that generates complex and evolving soundscapes by processing small segments of audio called grains. It supports a range of parameters for controlling the characteristics of the grains. It can create rich, textured soundscapes and effects by overlapping and modulating the grains.

Polyphony

The granulator does not support polyphony in the sense that it can be used in a polyphonic context with individual voices. Instead, it will process multiple MIDI notes by equally distributing the grain pitches to the pressed keys:

The best way to understand this procedure is to use a low density and then press keys which are far apart from each other. This will result in an "arpeggiator like" effect, but once you up the density or play notes which are more tightly voiced, it will merge into one sound scape

This leads to an equal "density" of grains no matter how many keys you pressed which is a desirable quality in the granular synthesiser.

In order for that to work, the granulator must be put into a midichain so that it can process the incoming MIDI messages.