I am pretty sure this is an easy one,

I am pretty sure this is an easy one, but I have been hammering my head for 24h now and cannot seem to find the answer.

I have 2 classes that independently output an LED effect to their own buffer, and a controller class that outputs one buffer to the final array that outputs to the strip.

I am trying to create a transition that mixes those two buffers over a period of n seconds, by using some blending features:

  for (int j = 0; j < NUM_LEDS; j++)  {
    outputBuffer[j] = blend(
        CRGB::Black,
        baseEffect->GetBuffer()[j],
        255 - fraction[0]);
    outputBuffer[j] += blend(
         baseEffect->GetBuffer()[j],
         nextBaseEffect->GetBuffer()[j],
         fraction[0]);
  }

It does not work. Any hints on how to create a proper mixer functionality?

I think I found the problem. I was somewhere else, where i was forcing the upcoming effect output to be rendered in the final buffer, thus cancelling the entire function.