new chopexecute behavior?

hey, now that chop execute gets called for every sample in the current timeslice, how can I make sure it only gets executed once, no matter how many samples actually are in the timeslice?

thx

bump

what you can do is to compare the sample number with the chop start index chops or chop end index chope

args trigger chop val chan chanindex sample
if (`chope("chop") == $sample`)
    ...
endif

does this work for you?

Selina

that should work, thx.

Can we get an option for the old behavior? There are many cases were you don’t want the new multiple-execute behavior (e.g. if you increment a counter stored in a table), and adding your proposed check is a bit of a hassle. Besides, it’s a huge pitfall for newbies. thx.

I have added a Frequency parameter that is available for triggers While On and While Off. you will be able to execute a DAT on every sample or just the first valid sample per frame (it will still look at every sample). hope this helps.

Selina

thx selina

Maybe you could have got what you needed by sending your last CHOP into a Trim CHOP and trim to the current frame. The result is always one frames per cook.