AudioContext how to play the notes in a sequence : <p>I have followed this <a href="http://marcgg.com/blog/2016/11/01/javascript-audio/" rel="noreferrer">tutorial</a> and come up with that code:</p>

<pre><code>context = new AudioContext();
play(frequency) {
    const o = this.context.createOscillator();
    const g = this.context.createGain();
    o.connect(g);
    g.connect(this.context.destination);
    g.gain.exponentialRampToValueAtTime(
      0.00001, this.context.currentTime + 1
    );
    o.frequency.value = frequency;
    o.start(0);
  }
</code></pre>

<p>This way I can play any notes from <a href="http://marcgg.com/blog/2016/11/01/javascript-audio/" rel="noreferrer">tutorial</a> table by passing the values <code>1175</code>, <code>2794</code>, etc</p>

<p>I decided to create an array of notes and just called my <code>play</code> function in the loop and it is just didn't work as all the notes just played at once with no delay.</p>

<p>How would you play the array of notes in a sequence? </p>

<p>I also was looking in to that <a href="https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer" rel="noreferrer">article</a> but still cant figure out how I can adapt my code above to that.</p>
