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

Function gen_cosine_1

include/LabSound/core/WindowFunctions.h:68–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 inline float gen_cosine_1(const float max_index, const uint32_t idx, const float alpha, const float beta)
69 {
70 return alpha - beta * std::cos((static_cast<float>(LAB_TAU) * idx) / max_index);
71 }
72
73 inline float gen_cosine_2(const float max_index, const uint32_t idx, const float alpha, const float beta, const float gamma)
74 {

Callers 2

gen_cosine_2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected