crogers@google.com | f8a7410 | 2012-04-02 21:07:37 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | |
| 3 | <!-- |
| 4 | Create an oscillator of type SAWTOOTH and generate a slow exponential tone sweep. |
| 5 | The result can be checked for the correct wave shape and for aliasing artifacts. |
| 6 | See oscillator-testing.js for details. |
| 7 | --> |
| 8 | |
| 9 | <html> |
| 10 | <head> |
| 11 | <script type="text/javascript" src="resources/audio-testing.js"></script> |
| 12 | <script type="text/javascript" src="resources/oscillator-testing.js"></script> |
| 13 | </head> |
| 14 | <body> |
| 15 | |
| 16 | <script> |
| 17 | |
| 18 | window.onload = init; |
| 19 | |
| 20 | function init() { |
rniwa@webkit.org | cc082ecd | 2012-06-16 03:42:58 +0000 | [diff] [blame] | 21 | if (!window.testRunner) |
crogers@google.com | f8a7410 | 2012-04-02 21:07:37 +0000 | [diff] [blame] | 22 | return; |
| 23 | |
weinig@apple.com | d61d8c1 | 2016-08-27 02:01:11 +0000 | [diff] [blame] | 24 | generateExponentialOscillatorSweep("sawtooth"); |
crogers@google.com | f8a7410 | 2012-04-02 21:07:37 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | </script> |
| 28 | |
| 29 | </body> |
| 30 | </html> |