|
marvin 0.0.1
Pure C++ audio helper library
|
#include "marvin/library/marvin_Concepts.h"#include "marvin/utils/marvin_Range.h"#include <cmath>#include <algorithm>#include <span>#include <complex>#include <cassert>#include <numbers>Go to the source code of this file.
Namespaces | |
| namespace | marvin |
| A mostly harmless top-level namespace. | |
| namespace | marvin::math |
| Math helper functions and classes. | |
Functions | |
| template<FloatType T> | |
| T | marvin::math::lerp (T start, T end, T ratio) noexcept |
| template<FloatType T> | |
| T | marvin::math::remap (T x, T newMin, T newMax) |
| template<FloatType T> | |
| T | marvin::math::remap (T x, T srcMin, T srcMax, T newMin, T newMax) |
| template<FloatType T> | |
| T | marvin::math::remap (T x, marvin::utils::Range< T > srcRange, marvin::utils::Range< T > newRange) |
| template<FloatType T> | |
| T | marvin::math::remap (T x, marvin::utils::Range< T > newRange) |
| template<FloatType T> | |
| std::span< std::complex< T > > | marvin::math::interleavedToComplexView (std::span< T > data) |
| template<FloatType T> | |
| std::span< T > | marvin::math::complexViewToInterleaved (std::span< std::complex< T > > data) |
| template<FloatType T> | |
| T | marvin::math::sinc (T x) noexcept |