Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!doctype html>
5 <html>
6 <head>
7 <meta charset="utf-8"/>
8 <title>Web Audio Editor test page</title>
9 </head>
11 <body>
13 <script type="text/javascript;version=1.8">
14 "use strict";
16 /*
17 ↱ proc
18 osc → gain →
19 osc → gain → destination
20 buffer →↳ filter →
21 */
22 let ctx = new AudioContext();
23 let osc1 = ctx.createOscillator();
24 let gain1 = ctx.createGain();
25 let proc = ctx.createScriptProcessor();
26 osc1.connect(gain1);
27 osc1.connect(proc);
28 gain1.connect(ctx.destination);
30 let osc2 = ctx.createOscillator();
31 let gain2 = ctx.createGain();
32 osc2.connect(gain2);
33 gain2.connect(ctx.destination);
35 let buf = ctx.createBufferSource();
36 let filter = ctx.createBiquadFilter();
37 buf.connect(filter);
38 osc2.connect(filter);
39 filter.connect(ctx.destination);
41 </script>
42 </body>
44 </html>