This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Functions | Variables
IncreaseBitDepth.hpp File Reference
#include <Helpers/enable_if.hpp>
#include <limits.h>
#include <stddef.h>
Include dependency graph for IncreaseBitDepth.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out > 2 *Bits_in), T_out > increaseBitDepthImpl (T_in in)
 
template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out<=2 *Bits_in), T_out > increaseBitDepthImpl (T_in in)
 
template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
T_out increaseBitDepth (T_in in)
 Increase the bit depth of the given value from Bits_in bits wide to Bits_out bits wide, evenly distributing the error across the entire range, such that the error for each element is between -0.5 and +0.5. More...
 

Variables

template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out<=2 *Bits_in), T_out > increaseBitDepthImpl (T_in in)
 

Function Documentation

◆ increaseBitDepthImpl() [1/2]

template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out > 2 * Bits_in), T_out> increaseBitDepthImpl ( T_in  in)

Definition at line 11 of file IncreaseBitDepth.hpp.

◆ increaseBitDepthImpl() [2/2]

template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out <= 2 * Bits_in), T_out> increaseBitDepthImpl ( T_in  in)

Definition at line 18 of file IncreaseBitDepth.hpp.

Variable Documentation

◆ increaseBitDepthImpl

template<size_t Bits_out, size_t Bits_in, class T_out , class T_in >
enable_if_t<(Bits_out <= 2 * Bits_in), T_out> increaseBitDepthImpl(T_in in)

Definition at line 8 of file IncreaseBitDepth.hpp.