MCPcopy Create free account
hub / github.com/audacity/audacity / TriangleDither

Function TriangleDither

libraries/lib-math/Dither.cpp:343–350  ·  view source on GitHub ↗

Triangle dither - high pass filtered

Source from the content-addressed store, hash-verified

341
342// Triangle dither - high pass filtered
343inline float TriangleDither(State &state, float sample)
344{
345 float r = DITHER_NOISE();
346 float result = sample + r - state.mTriangleState;
347 state.mTriangleState = r;
348
349 return result;
350}
351
352// Shaped dither
353inline float ShapedDither(State &state, float sample)

Callers

nothing calls this directly

Calls 1

DITHER_NOISEFunction · 0.85

Tested by

no test coverage detected