Lixie-Labs / Emotiscope

Let your eyes enjoy the music too ✨ Extremely low-latency audio processing lets LEDs perfectly synchronize to your music's notation and tempo.
https://emotiscope.rocks/
GNU General Public License v3.0
31 stars 6 forks source link

Re-implement HSV calculation without FastLED #20

Closed github-actions[bot] closed 7 months ago

github-actions[bot] commented 7 months ago

https://github.com/connornishijima/Emotiscope/blob/f9da3198f177982258837742e079f1d689c553c6/src/leds.h#L167


    v = clip_float(v);

    // TODO: Re-implement HSV calculation without FastLED
    /*
    CRGB base_color = CHSV(h_8_bit, s_8_bit, 255);

    CRGBF col = {(base_color.r / 255.0f) * v, (base_color.g / 255.0f) * v,
                 (base_color.b / 255.0f) * v};
    */
    CRGBF col = {
        1.0 * v,
        0.0 * v, 
        0.0 * v
    };

    col.r = min(col.r, 1.0f);
    col.g = min(col.g, 1.0f);
github-actions[bot] commented 7 months ago

Closed in 6359ce387c6d03cb6b1e018b7dff76907323ef2e