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

Method half

src/extended/PolyBLEPNode.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58class lab::PolyBlepImpl
59{
60 double half() const
61 {
62 double t2 = t + 0.5;
63 t2 -= bitwise_or_zero(t2);
64
65 double y = (t < 0.5 ? 2 * std::sin(LAB_TAU * t) - 2 / LAB_PI : -2 / LAB_PI);
66 y += LAB_TAU * freqInSecondsPerSample * (blamp(t, freqInSecondsPerSample) + blamp(t2, freqInSecondsPerSample));
67
68 return amplitude * y;
69 }
70
71 double full() const
72 {

Callers

nothing calls this directly

Calls 2

bitwise_or_zeroFunction · 0.85
blampFunction · 0.85

Tested by

no test coverage detected