Define a macro to re-maps a number from one range to another */
| 30 | |
| 31 | /* Define a macro to re-maps a number from one range to another */ |
| 32 | static constexpr float MAP(const float x, const float in_min, const float in_max, const float out_min, const float out_max) |
| 33 | { |
| 34 | return ((x - in_min) * (out_max - out_min) / (in_max - in_min)) + out_min; |
| 35 | } |
| 36 | |
| 37 | /* Defines for tone controls */ |
| 38 | static constexpr const float COMMON_Q = 0.707f; |
no outgoing calls
no test coverage detected