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

Method sqr

src/extended/PolyBLEPNode.cpp:235–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 double sqr() const
236 {
237 double t2 = t + 0.5;
238 t2 -= bitwise_or_zero(t2);
239
240 double y = t < 0.5 ? 1 : -1;
241 y += blep(t, freqInSecondsPerSample) - blep(t2, freqInSecondsPerSample);
242
243 return amplitude * y;
244 }
245
246 double sqr2() const
247 {

Callers

nothing calls this directly

Calls 2

bitwise_or_zeroFunction · 0.85
blepFunction · 0.85

Tested by

no test coverage detected