mercury-engine 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mercury.js CHANGED
@@ -17565,17 +17565,17 @@ class Mercury extends MercuryInterpreter {
17565
17565
 
17566
17566
  // stop the transport and all the sounds
17567
17567
  silence(){
17568
+ // fade out and remove code after 100ms
17569
+ this.removeSounds(this.sounds, 0.1);
17570
+
17568
17571
  try {
17569
- // fade out and remove code after 100ms
17570
- this.removeSounds(this.sounds, 0.1);
17571
17572
  // Stops instead of pause so restarts at 0
17572
17573
  Tone.Transport.stop(Tone.now()+0.1);
17573
17574
  // console.log('Stopped Transport');
17574
- return true;
17575
17575
  } catch {
17576
17576
  console.error('Error stopping Transport');
17577
- return false;
17578
17577
  }
17578
+ return true;
17579
17579
  }
17580
17580
 
17581
17581
  // set the bpm and optionally ramp in milliseconds