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