DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
Dither.h File Reference

TPDF dither and quantisation to a target bit depth. More...

#include <algorithm>
#include <array>
#include <atomic>
#include <cmath>
#include <cstdint>
#include <limits>
#include <type_traits>
Include dependency graph for Dither.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dspark::Dither< T >
 TPDF dithering processor with optional 1st-order noise shaping. More...
 

Namespaces

namespace  dspark
 Main namespace for the DSPark framework.
 

Detailed Description

TPDF dither and quantisation to a target bit depth.

Converts high-resolution audio to a lower bit depth by adding triangular (TPDF) dither before quantisation, with optional first-order noise shaping of the total requantisation error. Output samples lie exactly on the integer grid of the target depth, matching the WAV/MP3 writers.

Dependencies: none (STL only).

Definition in file Dither.h.