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

rand stream starts with 0 #1293

Open
yaxu opened this issue Feb 22, 2025 · 0 comments · May be fixed by #1294
Open

rand stream starts with 0 #1293

yaxu opened this issue Feb 22, 2025 · 0 comments · May be fixed by #1294

Comments

@yaxu
Copy link
Member

yaxu commented Feb 22, 2025

Since #1278 , when rand is sampled at the start (cycle 0), it always returns 0.

Now, every number is as likely as any other, but this seems a little bit implausible. It means that for example

sound(wchooseCycles(["bd", 0.0001], ["sd", 1000000000]))

starts with a very unlikely kick.

Not sure how best to fix this, maybe just return 0.5 if the onset is 0?

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

Successfully merging a pull request may close this issue.

1 participant