MCPcopy Create free account
hub / github.com/VitalAudio/visage / sin1

Function sin1

examples/Showcase/examples_frame.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43inline float sin1(float phase) {
44 float approx = quickSin1(phase - floorf(phase));
45 return approx * (0.776f + 0.224f * fabsf(approx));
46}
47
48static constexpr float kHalfPi = 3.14159265358979323846f * 0.5f;
49

Callers 4

easeMethod · 0.85
drawMethod · 0.85
setupBarsMethod · 0.85
setupShapesMethod · 0.85

Calls 1

quickSin1Function · 0.85

Tested by

no test coverage detected