recoded icon indicating copy to clipboard operation
recoded copied to clipboard

weird int issue -- fixed?

Open ofZach opened this issue 7 years ago • 3 comments

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

ofZach avatar Nov 15 '17 02:11 ofZach

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

roymacdonald avatar Nov 15 '17 03:11 roymacdonald

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 avatar Nov 15 '17 03:11 ofZach

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

ofZach avatar Nov 15 '17 11:11 ofZach