We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbbf94 commit 9ea6d0fCopy full SHA for 9ea6d0f
index.html
@@ -39,7 +39,8 @@ <h1>Hear the Traffic</h1>
39
if (osc) {
40
let len = realData.length;
41
const imagData = new Array(len).fill(0);
42
- osc.setPeriodicWave(realData, imagData);
+ const periodicWave = ac.createPeriodicWave(realData, imagData);
43
+ osc.setPeriodicWave(periodicWave);
44
}
45
}).catch((e) => {
46
console.error(e);
@@ -54,7 +55,8 @@ <h1>Hear the Traffic</h1>
54
55
osc.frequency = 30;
56
57
58
59
60
osc.connect(ac.destination);
61
ac.resume();
62
osc.start();
0 commit comments