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

Interval(0,1,1/3).asArray crashes sclang because forBy doesn't count with floats <1 #4154

Closed
olafklingt opened this issue Nov 13, 2018 · 1 comment

Comments

@olafklingt
Copy link
Contributor

olafklingt commented Nov 13, 2018

Environment

  • Your SuperCollider version: 3.9.3
  • Your operating system and version: on arch linux

Steps to reproduce (for bugs)

Interval(0,1,1/3).asArray

crashes

forBy is called within asArray (from Interval:do)

forBy(0, 1, 0/3, {|i|i.postln});

outputs a endless stream of 0 and crashes

I would expect that forBy would count on the basis of floats as well but it seems that the fractional part of the float is cut.

forBy(0, 1, 1.6, {|i|i.postln});

counts by steps of 1

@mossheim
Copy link
Contributor

Thanks for the report, I'm happy to say this was already fixed in 3.10 (#3804). Please check existing issues before opening new ones.

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

2 participants