Got a quick question about the beatsin8 function in 3.0 branch. Any idea how I can ‘offset’ the sine wave? I’m struggling to get my head around how its generated. I’d basically like to be able to generate the pulse at the fixed bpm, and then sample at various points along the wave. Or am I thinking about this wrong?
Programmable time-base-offset and wave phase are coming in an API update in the not-too-distant future (e.g., days).
But even at this point, you can always just use the raw sin16 function and generate your own wave forms as a function of millis() or some other time base.
What are you thinking about building with it?
@Mark_Kriegsman I have a series of concentric rings on separate strips. I’d like to be able to pulse a color across the strips concentrically.
I’ve just realised though that I’m being an idiot. You can’t just take the value from sin8 and then offset the value by some number. That totally doesn’t work, I have to offset the value going into sin8. Doh!