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

weird int issue -- fixed? #41

Open
ofZach opened this issue Nov 15, 2017 · 3 comments
Open

weird int issue -- fixed? #41

ofZach opened this issue Nov 15, 2017 · 3 comments

Comments

@ofZach
Copy link
Member

ofZach commented Nov 15, 2017

I think I fixed the weird int slipping to large number bug here -- since min and max of the param seemed fine, it just that val was returning -2,147,483,648 or something similar... i used a clamp. just making a note here in case it's helpful.

https://github.com/SFPC/recoded/blob/master/src/scenes/baseScene.cpp#L276-L277

@roymacdonald
Copy link
Collaborator

odd. but if it works.....
I'll take a look at it in order to understand the problem.

@ofZach
Copy link
Member Author

ofZach commented Nov 15, 2017

yeah if you put a scene with an int param and go back and forth you can get the big negative number sometimes just on the first change of it (I put memo scene first and go back and forth with it and heathers). when I put a break point (if value < -10000 for example) it seems like the param is badly constructed somehow but that min and max are ok....

@ofZach
Copy link
Member Author

ofZach commented Nov 15, 2017

yeah I can't follow the logic of the parameter changing but there seems to be some kind of bug somwhere in midiParam...

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