Well, i want 8 or so sine waves concurrently.
I want to emulate a flame with leds.
I did random intensity and random intervals. That works OK, but, flames don't release light in a purely random way. It's only about half-random....
I thought maybe if I summed, say, 3 sines of varying wavelength and amplitude for
- Monocrhome Component - added to every LED level
- Chroma component - shorter wavlength, less amplitude. Applied evenly for LEDs of that color.
- Segment - shortest and least amplitude. This pattern only applied to LED induvidually.
I'm depressed and suck at math, but I know I want wavelength to vary 30% or so within 90 degrees of the sine. Furthermore summing them should create a quasi-random/sinisoudal pattern that should be tunable to match a flame/fire.
Is there a simple function snipet?