|
libpsynth 0.2.1
|
Returns the inverse of a sample. More...
Functions | |
| template<typename Sample > | |
| sample_traits< Sample >::value_type | psynth::sound::sample_invert (Sample x) |
| Default implementation. | |
Returns the inverse of a sample.
result = max_value - x + min_value
Example:
// bits8 == uint8_t == unsigned char bits8 x=255; bits8 inv = sample_invert(x); assert(inv == 0);
| sample_traits<Sample>::value_type psynth::sound::sample_invert | ( | Sample | x | ) | [inline] |
Default implementation.
Provide overloads for performance
1.7.4