supercollider icon indicating copy to clipboard operation
supercollider copied to clipboard

audio rate .sqrt of 0 (zero) produces NaN on M1/arm64

Open woutersnoei opened this issue 2 years ago • 9 comments

Environment

  • SuperCollider version: 3.13dev (arm build)

  • Operating system: macOS Monterey 12.6

Steps to reproduce

{ DC.ar(0).sqrt }.plot; // produces NaN
{ DC.kr(0).sqrt }.plot; // produces 0 (as it should)

Expected vs. actual behavior

In two recent dev builds (for arm64) calling 'sqrt' on an audio signal that has value 0 produces a NaN. This isn't the case in the official build (3.12.2) so the issue is either caused by a change after that or by the arm64 architecture.

cheers & thanks, Wouter

woutersnoei avatar Oct 25 '22 12:10 woutersnoei