Utility

Overview

Buffers, interpolation and conversions: the pieces that sit between the signal and the DSP.

Ring Buffer

A fixed-size circular buffer.

Fractional Ring Buffer

A ring buffer read at sub-sample positions.

Sample Interpolation

The interpolation policies for fractional indexing.

Best Lag

The lag at which a signal best resembles itself, by normalized cross-correlation.

Antialiasing

Correcting the sharp corners of generated waveforms, such as PolyBLEP.

Sample Format Conversion

Integer sample codes to and from float, at any bit width.

Bitset

A fixed-size array of bits packed into machine words.

Handoff

Objects sent from one thread to another, the latest winning, without a lock.

Ring Allocator

Blocks of any size, allocated by one thread and freed by another, in order, without a lock.

Tasks

Work posted from one thread to run on another, now or after a delay, without a lock or allocation.

Audio Clock

Time as the audio thread sees it, in frames processed.


Copyright (c) 2014-2026 Joel de Guzman. All rights reserved. Distributed under the MIT License