TracktionEngine
Public Member Functions | Public Attributes | List of all members
tracktion::engine::Ditherer Struct Reference

An extremely naive ditherer. More...

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 tracktion::engine::Ditherer::reset ( int  numBits)
noexcept

References amp, and offset.

◆ process()

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

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

Member Data Documentation

◆ random1

int tracktion::engine::Ditherer::random1 = 0

Referenced by process().

◆ random2

int tracktion::engine::Ditherer::random2 = 0

Referenced by process().

◆ amp

float tracktion::engine::Ditherer::amp = 0

Referenced by process(), and reset().

◆ offset

float tracktion::engine::Ditherer::offset = 0

Referenced by process(), and reset().

◆ s1

float tracktion::engine::Ditherer::s1 = 0

Referenced by process().

◆ s2

float tracktion::engine::Ditherer::s2 = 0

Referenced by process().


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