Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Johnrobmiller opened this issue Jun 26, 2024 · 1 comment
Closed

Comments

@Johnrobmiller
Copy link

Johnrobmiller commented Jun 26, 2024

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:

  • Create a new player via `const player = new Tone.Player(...)
  • Set its loop property to true.
  • Set Tone.Transport.loop to true, and modify Tone.Transport.loopEnd to an arbitrary value
  • Result: the loop duration of the player is unaffected.

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

@Johnrobmiller
Copy link
Author

See #1261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant