| 58 | class 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 | { |
nothing calls this directly
no test coverage detected