440Hzの音を出す
code:audio.js
const ctx = new AudioContext();
let oscillator = ctx.createOscillator();
// oscillator.type = "sine";
// oscillator.frequency.setValueAtTime(440,0)
oscillator.connect(ctx.destination);
oscillator.start();
ctx = new AudioContext(); oscillator = ctx.createOscillator(); oscillator.connect(ctx.destination); oscillator.start();