template<typename SampleType = float>
class pulp::signal::QuantizerT< SampleType >
Snap a control value to N equally spaced levels across a range.
N levels means N - 1 intervals: set_steps(2) over [0, 1] outputs only 0 and 1. Inputs outside the range clamp to the end levels. Ties round away from zero, matching std::lround.
Pitch quantization to a musical scale is deliberately not here — that needs a scale, a root, and a note-vs-frequency decision, and it belongs with the MIDI side rather than in a control-signal utility.
RT contract: stateless; audio-thread safe.
USE: stepped filter sweeps and stepped pitch modulation; making a smooth random source into an arpeggio-like sequence; using coarse quantization as a deliberate lo-fi effect on a modulation path rather than on the audio.