# Strobe not...behaving?

**URL:** <https://crucible.hubbe.net/t/strobe-not-behaving/669>\
**Category:** ProffieOS\
**Created:** [August 8, 2021, 4:54am UTC](https://crucible.hubbe.net/t/strobe-not-behaving/669 "2021-08-08T04:54:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [August 8, 2021, 4:54am UTC](https://crucible.hubbe.net/t/strobe-not-behaving/669/1 "2021-08-08T04:54:53Z")

</div>

TL;DR Wondering if there’s a bug in Strobe possibly?  
I’m seeing results as if the strobe’s frequency is much higher that it is (only Int\<2\> for occasional bursts). Oddly, decreasing it to Int\<1\> makes it worse (more frequent, like constant) opposite of what it should be doing. Higher numbers do seem to space out the times it “locks up” constant flashing, but it still does it.  
See video for details.

[![](https://crucible.hubbe.net/uploads/default/original/1X/a5dfd7d884bac072a131a5f812243dbd0ebeb058.jpeg "strobeIssue") ](https://www.youtube.com/watch?v=PKwO_yoXSQU)

---

<div class="post-metadata">

**Author:** ![profezzorn](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/profezzorn/32/8_2.png) [@profezzorn](https://crucible.hubbe.net/u/profezzorn)\
**Post date:** [August 8, 2021, 8:09pm UTC](https://crucible.hubbe.net/t/strobe-not-behaving/669/2 "2021-08-08T20:09:48Z")

</div>

I suspect that the problem is that your random will actually return 0 sometimes.  
The Strobe style evaluates 1000 / frequency internally, which yields a division by zero, which is handled very differently by C++ and javascript.

If you make it go from Int\<1\> to Int\<2\>, does it work better?

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [August 8, 2021, 8:27pm UTC](https://crucible.hubbe.net/t/strobe-not-behaving/669/3 "2021-08-08T20:27:58Z")

</div>

Ah…zero divisions. Good point. I’ll try it when I get back in a week. Thanks.

---

<div class="post-metadata">

**Author:** ![NoSloppy](https://crucible.hubbe.net/user_avatar/crucible.hubbe.net/nosloppy/32/3865_2.png) [@NoSloppy](https://crucible.hubbe.net/u/NoSloppy)\
**Post date:** [August 25, 2021, 2:04am UTC](https://crucible.hubbe.net/t/strobe-not-behaving/669/4 "2021-08-25T02:04:32Z")

</div>

> [@profezzorn](#):
>
> If you make it go from Int\<1\> to Int\<2\>, does it work better?

It does, but doesn’t seem random enough.  
I’m going with the transition loop instead for now, thanks.

```auto
AlphaL<TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<3000>>,Int<30>,Int<800>>>,Mix<SlowNoise<Int<1000>>,Black,Black,White,Black>,TrDelayX<Scale<SlowNoise<Int<1000>>,Int<10>,Int<50>>>>>,Int<32768>>,
//AlphaL<White,StrobeF<Scale<SlowNoise<Int<1000>>,Int<1>,Int<3>>,Scale<SlowNoise<Int<1000>>,Int<10>,Int<50>>>>,

```
