TracktionEngine
Loading...
Searching...
No Matches
engine::Ditherer Struct Reference

An extremely naive ditherer. More...

#include <tracktion_Ditherer.h>

Public Member Functions

void reset (int numBits) noexcept
void process (float *samps, int num) noexcept

Public Attributes

int random1 = 0
int random2 = 0
float amp = 0
float offset = 0
float s1 = 0
float s2 = 0

Detailed Description

An extremely naive ditherer.

TODO: this could be done much better!

Member Function Documentation

◆ reset()

void engine::Ditherer::reset ( int numBits)
noexcept

References amp, and offset.

◆ process()

void engine::Ditherer::process ( float * samps,
int num )
noexcept

References amp, offset, random1, random2, s1, and s2.

Member Data Documentation

◆ random1

int engine::Ditherer::random1 = 0

Referenced by process().

◆ random2

int engine::Ditherer::random2 = 0

Referenced by process().

◆ amp

float engine::Ditherer::amp = 0

Referenced by process(), and reset().

◆ offset

float engine::Ditherer::offset = 0

Referenced by process(), and reset().

◆ s1

float engine::Ditherer::s1 = 0

Referenced by process().

◆ s2

float engine::Ditherer::s2 = 0

Referenced by process().


The documentation for this struct was generated from the following file: