1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/webaudioeditor/test/doc_complex-context.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!doctype html> 1.7 + 1.8 +<html> 1.9 + <head> 1.10 + <meta charset="utf-8"/> 1.11 + <title>Web Audio Editor test page</title> 1.12 + </head> 1.13 + 1.14 + <body> 1.15 + 1.16 + <script type="text/javascript;version=1.8"> 1.17 + "use strict"; 1.18 + 1.19 +/* 1.20 + ↱ proc 1.21 + osc → gain → 1.22 + osc → gain → destination 1.23 + buffer →↳ filter → 1.24 +*/ 1.25 + let ctx = new AudioContext(); 1.26 + let osc1 = ctx.createOscillator(); 1.27 + let gain1 = ctx.createGain(); 1.28 + let proc = ctx.createScriptProcessor(); 1.29 + osc1.connect(gain1); 1.30 + osc1.connect(proc); 1.31 + gain1.connect(ctx.destination); 1.32 + 1.33 + let osc2 = ctx.createOscillator(); 1.34 + let gain2 = ctx.createGain(); 1.35 + osc2.connect(gain2); 1.36 + gain2.connect(ctx.destination); 1.37 + 1.38 + let buf = ctx.createBufferSource(); 1.39 + let filter = ctx.createBiquadFilter(); 1.40 + buf.connect(filter); 1.41 + osc2.connect(filter); 1.42 + filter.connect(ctx.destination); 1.43 + 1.44 + </script> 1.45 + </body> 1.46 + 1.47 +</html>