HELP NEEDED: Elements shift in array for ledstrip

Hello,

I recently started a arduino project.
I want a ledstrip to sync to music and have some animations on it.
The library i am using is fastLED.
As an animation I would like to shift a color (which must depend on the frequency of the music).
I would like the new color to go in the first place of the ledstrip and then shift the rest of the colors to the right (or left).
The first problem is that i don’t know exactly how to give each LED a new color.
The second problem is that i don’t know how to use the serial monitor with this leds array.
As im relatively new to programming I would also appreciate it if someone could give feedback on a piece of the code I already wrote (see below) .
Thanks!

void loop() {

// SHIFT ELEMENTS IN ARRAY
for (int i = 0; i < NUM_LEDS - 1 ; i++)
{
leds = leds [i + 1];

  • }*
  • // GIVE NEW COLOR TO FIRST LED*
  • for (int q = 0 ; q <= NUM_LEDS - 1 ; q++) {*
  • leds [q] = CRGB (newColor??, newColor??, newColor??);*
  • }*
    FastLED.show();
    }

Is that REALLY all of your code? Is your code REALLY in italics?

It is clear that you did not read the stickies at the top of the forum. Do so now.