Page 4 of 4

Re: 3 timers with loop

PostPosted: Thu Feb 01, 2018 1:42 pm
by tulamide
Spogg wrote:@ tulamide
My clash with the modulo issue was in a relatively simple DSP code. I deleted it and found another way so I don’t have that code now.
I didn’t know about the Ruby speed issue though.

My worry about “downgrading” is all the stuff I’ve made and found so far.

It would be great if there was a list of issues with 3.08.1, all in one place for reference…

Cheers

Spogg

Spogg, did you try it? I guess not, because you would have seen that you can open each and every schematic made with 3.0.8.1, there's not even a version warning. The only schematics I have issues with are those that use Assembler code that was added after 3.0.8 (see KG's current DSP thread). And so far that happened ... wait for it... exactly once (namely in that assembler module by KG).

But even if you don't want to downgrade (which I really wouldn't understand), as you can see from Chris' schematic above, the modulo code works in 3.0.8.1, it is only a matter of keeping it away from bitmasks. From my example:

Code: Select all
//This works
counter = (counter + 1) % samplerate;
loopcount = loopcount + (counter == 0)&1;

//This doesn't work
counter = counter + 1;
loopcount = loopcount + ((counter % samplerate) == 0)&1;