OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script src="../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../resources/js-test.js"></script> |
6 <script type="text/javascript" src="resources/audio-testing.js"></script> | 6 <script type="text/javascript" src="resources/audio-testing.js"></script> |
7 <script type="text/javascript" src="resources/mix-testing.js"></script> | 7 <script type="text/javascript" src="resources/mix-testing.js"></script> |
8 <script type="text/javascript" src="resources/waveshaper-testing.js"></script> | 8 <script type="text/javascript" src="resources/waveshaper-testing.js"></script> |
9 </head> | 9 </head> |
10 | 10 |
11 <body> | 11 <body> |
12 | 12 |
13 <div id="description"></div> | 13 <div id="description"></div> |
14 <div id="console"></div> | 14 <div id="console"></div> |
15 | 15 |
16 <script> | 16 <script> |
17 description("Tests 2x WaveShaperNode oversampling."); | 17 description("Tests 2x WaveShaperNode oversampling."); |
18 | 18 |
19 var testParams = { | 19 var testParams = { |
20 "sampleRate": 44100, | 20 "sampleRate": 44100, |
21 "oversample": "2x", | 21 "oversample": "2x", |
22 | 22 |
23 // Should generate harmonics at 9000, 18000, 27000, 36000 | 23 // Should generate harmonics at 9000, 18000, 27000, 36000 |
24 // The last two should be filtered out with the 2x oversampling. | 24 // The last two should be filtered out with the 2x oversampling. |
25 "fundamentalFrequency": 9000, | 25 "fundamentalFrequency": 9000, |
26 "acceptableAliasingThresholdDecibels": -85 | 26 "acceptableAliasingThresholdDecibels": -85 |
27 }; | 27 }; |
28 runWaveShaperOversamplingTest(testParams); | 28 runWaveShaperOversamplingTest(testParams); |
29 | 29 |
30 </script> | 30 </script> |
31 | 31 |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |