Open hammy275 opened 5 months ago
The above implementation idea does not work in-practice, but a mode closer to what I want is developed at https://github.com/hammy275/rgb-light-control/commit/1b333afef41cc18489f7dd94e4789d3d7067907d. Next up is iterating on this.
Another music mode.
Instead of switching between colors on a determined beat, we use a (two-color?) gradient. The gradient calculation is pretty straightforward:
Use the same delta loop as done in
cycle_music
. The closer to the max a given frame is on, the closer to the second color. The max is whatever delta we stop on, but with half (or maybe even lower) of themax_notes
than before.To create the final list of colors to send, and at what times, we first calculate the
send_delay
. From there, with some extra wiggle room, is what frames/times we use for sending. Maybe use a bit of bias here to grab times closer to the second color.