mrb
Converser
Posts: 9
|
Post by mrb on Sept 9, 2018 10:34:17 GMT
Hi Nic, everyone.
I have a script that produces problems and i managed to break it down to this loop. After several ok runs the first counter L5 which is compared to G1 just doesn’t count up correctly In the Labels should always be displayed 9 (left) and 8 (right)
After sometime the left label drops town to some unpredictable counts like 4, 1, 0 or something else. Letting it run longer completely freezes StreamByter - the host stays responsive (Tested in AUM and AudioBus)
I cant figure out where the problem is. Is this running to fast? Am i doing buffer overflows?
It would be really great if you could have a look through this. Thanks in advance.
Principle: Loop should run G1 times Inside loop should generate random number not identical to the last one If true store random number and raise counters for main loop.
Quickest error viewing possibility is when running on high bpm (like 250) with any note-feed. I used StepPolyArp Unit to feed permanent notes.
#problematic loop
IF LOAD
ASS G1 = 8 # ASS G9 = 7 # ASS L7 = 0 #
END
ASS L6 = 40 # ASS L5 = 0 #
IF L5 <= G1 +L
ASS L3 = RG9 # random value 0-G9
# check if identical to last value IF L3 != L7
ASS L7 = L3
# if not identical raise counters MAT L6 = L6 + 1 # MAT L5 = L5 + 1 #
END
SET LB0 L5 SET LB1 G1
END
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Sept 9, 2018 19:36:11 GMT
Hi mrb , I think you're getting hit by a bug. Please try adding the following inside your IF LOAD clause: IF 0 == 1 +L ENDand let me know if this makes any difference. Regards, Nic.
|
|
mrb
Converser
Posts: 9
|
Post by mrb on Sept 10, 2018 2:22:59 GMT
Hi Nic.
I tried this
IF LOAD IF 0 == 1 +L ASS G1 = 8 # ASS G9 = 7 # END END
and this
IF LOAD IF 0 == 1 +L END ASS G1 = 8 # ASS G9 = 7 # END
None made a difference. Other ideas? A beta to test?
-Frank
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Sept 10, 2018 7:12:30 GMT
Hi mrb , The second variation you tried is what I meant - the first variation will prevent your variables from being initialised. This bug went though a whole bunch of revisions before being correctly fixed so it is possibly my workaround doesn't work on the App Store version of the AU. Please PM me the email address you use for Apple TestFlight and I will add you in; current beta fixes this. Regards, Nic.
|
|
mrb
Converser
Posts: 9
|
Post by mrb on Sept 10, 2018 7:39:42 GMT
Nic, just installed latest beta and did a quick run without the "0=1" statement. Looks good so far. Man, this thing bugged me Thanks for inviting me to fix this. -Frank
|
|