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.
michael@0 | 1 | <!-- Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ --> |
michael@0 | 3 | <!doctype html> |
michael@0 | 4 | |
michael@0 | 5 | <html> |
michael@0 | 6 | <head> |
michael@0 | 7 | <meta charset="utf-8"/> |
michael@0 | 8 | <title>Web Audio Editor test page</title> |
michael@0 | 9 | </head> |
michael@0 | 10 | |
michael@0 | 11 | <body> |
michael@0 | 12 | |
michael@0 | 13 | <script type="text/javascript;version=1.8"> |
michael@0 | 14 | "use strict"; |
michael@0 | 15 | |
michael@0 | 16 | /* |
michael@0 | 17 | ↱ proc |
michael@0 | 18 | osc → gain → |
michael@0 | 19 | osc → gain → destination |
michael@0 | 20 | buffer →↳ filter → |
michael@0 | 21 | */ |
michael@0 | 22 | let ctx = new AudioContext(); |
michael@0 | 23 | let osc1 = ctx.createOscillator(); |
michael@0 | 24 | let gain1 = ctx.createGain(); |
michael@0 | 25 | let proc = ctx.createScriptProcessor(); |
michael@0 | 26 | osc1.connect(gain1); |
michael@0 | 27 | osc1.connect(proc); |
michael@0 | 28 | gain1.connect(ctx.destination); |
michael@0 | 29 | |
michael@0 | 30 | let osc2 = ctx.createOscillator(); |
michael@0 | 31 | let gain2 = ctx.createGain(); |
michael@0 | 32 | osc2.connect(gain2); |
michael@0 | 33 | gain2.connect(ctx.destination); |
michael@0 | 34 | |
michael@0 | 35 | let buf = ctx.createBufferSource(); |
michael@0 | 36 | let filter = ctx.createBiquadFilter(); |
michael@0 | 37 | buf.connect(filter); |
michael@0 | 38 | osc2.connect(filter); |
michael@0 | 39 | filter.connect(ctx.destination); |
michael@0 | 40 | |
michael@0 | 41 | </script> |
michael@0 | 42 | </body> |
michael@0 | 43 | |
michael@0 | 44 | </html> |