MCPcopy Create free account
hub / github.com/LabSound/LabSound / sinc

Function sinc

include/LabSound/core/WindowFunctions.h:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61namespace detail
62{
63 inline float sinc(const float x)
64 {
65 return (x == 0.0f) ? 1.0f : std::sin(x * static_cast<float>(LAB_PI)) / (x * static_cast<float>(LAB_PI));
66 }
67
68 inline float gen_cosine_1(const float max_index, const uint32_t idx, const float alpha, const float beta)
69 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected