|
| template<std::floating_point T> |
| constexpr bool | floats_near (T a, T b, T e) |
| | Returns whether 2 floating point numbers are equal.
|
| template<std::floating_point T> |
| constexpr bool | floats_equal (T a, T b) |
| | Checks if 2 floating point numbers are equal.
|
| template<std::floating_point T> |
| constexpr long | round_to_signed_32 (T x) |
| | Rounds a double to a (minimum) signed 32-bit integer.
|
| template<std::floating_point T> |
| constexpr long long | round_to_signed_64 (T x) |
| | Rounds a double to a (minimum) signed 64-bit integer.
|
| template<std::floating_point T> |
| constexpr signed_frame_t | round_to_signed_frame_t (T x) |
| constexpr float | fast_log2 (float val) |
| | Fast log calculation to be used where precision is not required (like log curves).
|
| constexpr auto | fast_log (const float val) |
| constexpr auto | fast_log10 (const float val) |
|
audio_sample_type_t | calculate_rms_amp (const audio_sample_type_t *buf, nframes_t nframes) |
| | Gets the RMS of the given signal as amplitude (0-2).
|
| bool | assert_nonnann (float x) |
| | Asserts that the value is non-nan.
|
| bool | is_string_valid_float (const std::string &str, float *ret) |
| | Returns whether the given string is a valid float.
|
Math utils.
For more, look at libs/pbd/pbd/control_math.h in ardour.