title: Can't toggle start()/stop() for ToneJS oscillators
body: <p>I have some JS cobbled together with the ToneJS library to toggle some sounds on/off.</p>
  <pre><code>function togglePlay() {
    const status = Tone.Transport.state; // Is either 'started', 'stopped' or 'paused'
    const element = document.getElementById(&quot;play-stop-toggle&quot;);
    if (status == &quot;started&quot;) {
      element.innerText = &quot;PLAY&quot;;
      Tone.Transport.stop()
    } else {
      element.innerText = &quot;STOP&quot;;
      Tone.Transport.start()
    }
  
    document.querySelector('#status').textContent = status;
  }
  
  
  var filter = new Tone.Filter({
    type: 'lowpass',
    Q: 12
  }).toMaster()
  
  
  
  var fmOsc   = new Tone.AMOscillator(&quot;Ab3&quot;, &quot;sine&quot;, &quot;square&quot;).toMaster()
  var fmOsc2  = new Tone.AMOscillator(&quot;Cb3&quot;, &quot;sine&quot;, &quot;square&quot;).toMaster()
  var fmOsc3  = new Tone.AMOscillator(&quot;Eb3&quot;, &quot;sine&quot;, &quot;square&quot;).toMaster()
  
  var synth   = new Tone.MembraneSynth().toMaster()
  
  //create a loop
  var loop = new Tone.Loop(function(time){
  //    synth.triggerAttackRelease(&quot;A1&quot;, &quot;8n&quot;, time)
  //    fmOsc.start()
      fmOsc2.start()
      fmOsc3.start();
  }, &quot;4n&quot;)
  
  
  //play the loop between 0-2m on the transport
  loop.start(0)
  // loop.start(0).stop('2m')
  </code></pre>
  <p>Inside the <code>loop</code> I have a drum beat that I have commented out currently.  When it was commented in, the <code>togglePlay()</code> function would start and stop it as expected.</p>
  <p>However, the <code>fmOsc2</code> and <code>fmOsc3</code> functions will start when I toggle start, but do not terminate when I toggle stop.</p>
  <p>For reference, here is what the HTML side looks like: <code>&lt;div class=&quot;trackPlay&quot; id=&quot;play-stop-toggle&quot; onclick=&quot;togglePlay()&quot;&gt;PLAY&lt;/div&gt;</code></p>
  <p>How can I get the <code>fmOsc2</code> and <code>fmOsc3</code> functions to toggle with the button state?</p>