Hay all :D I have been making a VU Meter/Visualizer (it isn't a calibrated

fastled-support
gplus
(Kelvin Shirley) #1

Hay all :smiley: I have been making a VU Meter/Visualizer (it isn’t a calibrated device, just something to have flashy lights with music ;). I’ve started to add some more visualizer type modes using palettes and “ColorFromPalette”. Looking at the documentation it says about blend and noblend but I have added that in and there is no change :frowning:

The code is:
for (byte i = NUM_LEDS / 2; i > 0; i–) {
leds[i - 1] = ColorFromPalette(currentPalette, paletteIndexL, 255, NOBLEND);
paletteIndexL += 10;
}

for (byte i = NUM_LEDS / 2; i < NUM_LEDS; i++) {
leds[i] = ColorFromPalette(currentPalette, paletteIndexR);
paletteIndexR += 10;
}

Really I am looking for a cheap way to have two options for the display, one where it smooths the colours and one where they are still seperate. I had hoped the NOBLEND would to the second but I don’t seem to be able to make it work. The attached image shows the result. The upper one I wanted to be distinct bands and the lower should be as it is, blended together. Am I miss understanding what the function does?

(Marc Miller) #2

What’s the code for your palette look like?

(Kelvin Shirley) #3

DEFINE_GRADIENT_PALETTE(greenyellowred) {
0, 0, 255, 0,
102, 255, 255, 0,
128, 255, 0, 0,
153, 255, 255, 0,
255, 0, 255, 0
};