Math.pow(2, (noteKey - 57)/12)*440
var context = new AudioContext() var oscillator = context.createOscillator() oscillator.connect(context.destination) oscillator.start()