Tonejs / Tone.js

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

The loop duration in a Tone.Player ignores Tone.Transport.loopEnd #1260

Closed Johnrobmiller closed 1 week ago

Johnrobmiller commented 1 week ago

Setting Tone.Transport.loopEnd does not effect the loop duration of the Tone.player. I'm not sure if this is a bug or if it is intended. If it is intended, then for most people I think that this behavior is confusing and unexpected. There might be a way to modify variable names, documention, tooltips that appear in the IDE when hovering, etc. to improve the usability of the api.

To replicate:

Also, I tried setting player.loopEnd to an arbitrary value, but it too is ignored.

Johnrobmiller commented 1 week ago

See https://github.com/Tonejs/Tone.js/issues/1261