Strobe effects are special beasts in that the timing needs to be very precise in order to be successful. In Lightjams, by default, you may generate a strobe effect using a formula like pulse(0.05, 0.02). This will output 100% for 0.02 second every 0.05 second. So that's a 20 Hz strobe.
But exact timing is a tricky thing. So if you're using this kind of formula, the pulse may be late or not visible at all from time to time.
If you go in the View/Configuration and general tab, you'll see the output rate and the input multiplier. Lightjams evaluates your formulas at a rate of output X input multiplier. So if you output at 40 fps and the input multiplier is 2, your formulas are evaluated 80 times per second. However, only one frame out of two is outputted to DMX. The input multiplier is needed since processing real-time inputs like a person playing the drums need to be faster than the DMX output rate in order to not miss anything.
So the idea is to avoid using any time parameter for the strobe formula. Instead, we'll count the frames. This formula is a good starting point:
counter(0,3,1) < 2
The counter gets incremented at each frame (3rd parameter is 1, meaning it always increment) and goes from 0 to 3. The output is 100% when the counter is less than 2. So we'll get a constant sequence of 100%-100%-0%-0%.
If you're using an input multiplier of 1, then the formula is even simpler:
counter(0,1,1) == 0
We can add some fun and allow dynamically changing the strobe speed:
counter(0,200 / grid.speed,1) < 2
So the higher the grid speed, the faster the strobe. Feel free replacing the grid.speed by a midi value or any other value.
Have fun!