summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/webaudio/oscillator-square.html
blob: adc3d6ab2f9dae0ab5420ac70c276727d70c3dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>

<!--
Create an oscillator of type SQUARE and generate a slow exponential tone sweep.
The result can be checked for the correct wave shape and for aliasing artifacts.
See oscillator-testing.js for details.
-->

<html>
<head>
<script type="text/javascript" src="resources/audio-testing.js"></script>
<script type="text/javascript" src="resources/oscillator-testing.js"></script>
</head>
<body>

<script>

window.onload = init;

function init() {
    if (!window.testRunner)
        return;

    generateExponentialOscillatorSweep(OSC.SQUARE);
}

</script>

</body>
</html>