Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.45k stars 977 forks source link

Volume increases when transport.loopStart and player.start are set to same time #1175

Open EagleSplash opened 1 year ago

EagleSplash commented 1 year ago

The code below will consistently trigger a large, unexpected volume increase. Everything starts out fine, but when the transport loops for the first time the volume goes up significantly.

The issue only happens when the player.start and transport.loopStart are set to the same value or values that are < 0.002 seconds apart. It only happens when certain values are used - other values do NOT cause this problem. Test values are listed in code below. The problem is repeatable in Chrome and MS Edge.

Tested 3/16/2023 (Windows 11 desktop)

<!DOCTYPE HTML>

EagleSplash commented 1 year ago

I'm also getting the same problem when using the "0:0:0" time format... Tone.Transport.bpm.value = 180; Tone.Transport.timeSignature = [6, 8]; Start_Time = "0:0:22";

EagleSplash commented 1 year ago

I'm wondering if this issue is the same as/related to other reported issues:

https://github.com/Tonejs/Tone.js/issues/999 https://github.com/Tonejs/Tone.js/issues/944 https://github.com/Tonejs/Tone.js/issues/1098 https://github.com/Tonejs/Tone.js/issues/1080