Pass | WaveShaperNode - Testing that -1, 0 and +1 map correctly to curve (with 1:1 correlation) | Asserts runPass | assert_approx_equals(2, 2, 0.01, "Input=-1, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(-3, -3, 0.01, "Input=0, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(4, 4, 0.01, "Input=1, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing interpolation (where inputs don't correlate directly to curve elements) | Asserts runPass | assert_approx_equals(-0.5, -0.5, 0.01, "Input=-0.5, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(0.5, 0.5, 0.01, "Input=0.5, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(2.25, 2.25, 0.01, "Input=0.75, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing out-of-range inputs (should be mapped to the first/last elements of the curve) | Asserts runPass | assert_approx_equals(2, 2, 0.01, "Input=-1.5, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(4, 4, 0.01, "Input=1.5, Curve=[2,-3,4] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing a 2-element curve (does not have a middle element) | Asserts runPass | assert_approx_equals(2, 2, 0.01, "Input=-1, Curve=[2,-2] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(0, 0, 0.01, "Input=0, Curve=[2,-2] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(-2, -2, 0.01, "Input=1, Curve=[2,-2] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing a 4-element curve (does not have a middle element) | Asserts runPass | assert_approx_equals(1, 1, 0.01, "Input=-1, Curve=[1,2,4,7] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(3, 3, 0.01, "Input=0, Curve=[1,2,4,7] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(7, 7, 0.01, "Input=1, Curve=[1,2,4,7] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing a huge curve | Asserts runPass | assert_approx_equals(0, 0, 0.01, "Input=-1, Curve=[TooBigToDisplay (60000 elements)] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(8466.2060546875, 8466.20572879921, 0.01, "Input=0, Curve=[TooBigToDisplay (60000 elements)] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(16932.412109375, 16932.41145759842, 0.01, "Input=1, Curve=[TooBigToDisplay (60000 elements)] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|
Pass | WaveShaperNode - Testing null curve (should return input values) | Asserts runPass | assert_approx_equals(-1, -1, 0.01, "Input=-1, Curve=[null] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(0, 0, 0.01, "Input=0, Curve=[null] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(1, 1, 0.01, "Input=1, Curve=[null] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) | Pass | assert_approx_equals(2, 2, 0.01, "Input=2, Curve=[null] >>> ")
at Test.<anonymous> ( /webaudio/the-audio-api/the-waveshapernode-interface/curve-tests.html:176:25) |
|