Sound reactive led strip script error

Hi im tryin to buil a sound reactive led strip, following this tutorial:

but i get some error messages, when i upload the script. im not sure what these mean. i would be happy if someone could help me out. Thankx alot

In file included from C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:3:0:
C:\Users\User\Documents\Arduino\libraries\FastLED\src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000

pragma message "FastLED version 3.004.000"

C:\Users\User\Documents\Arduino\Iatz\Iatz.ino: In function 'setup':
C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:28:19: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
brightness[i] = 0;

C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:27:20: note: within this loop
for(int i = 0; i <= NUMLEDS; i++){
In file included from C:\Users\User\Documents\Arduino\libraries\FastLED\src/controller.h:9:0,
from C:\Users\User\Documents\Arduino\libraries\FastLED\src/FastLED.h:47,
from C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:3:
C:\Users\User\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:163:11: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
r = (colorcode >> 16) & 0xFF;

C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:33:18: note: within this loop
for(int i=0; i <= NUMLEDS; i++)
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\main.cpp: In function 'main':
C:\Users\User\Documents\Arduino\libraries\FastLED\src/pixeltypes.h:163:11: warning: iteration 60 invokes undefined behavior [-Waggressive-loop-optimizations]
r = (colorcode >> 16) & 0xFF;
^
C:\Users\User\Documents\Arduino\Iatz\Iatz.ino:33:18: note: within this loop
for(int i=0; i <= NUMLEDS; i++)
^

full original script: GitHub - Rupakpoddar/Sound-reactive-LED-strip: How to make a sound reactive RGB LED strip with Arduino

Looks like an array bounds issue in the code you didn't post.

for(int i = 0; i <= NUMLEDS; i++){

This is unusual - it would be normally "< NUMLEDS"

thank you for your response.
this is the full code

/* Written by Rupak Poddar */

#include <FastLED.h>              // https://github.com/FastLED/FastLED
#define NUMLEDS 144               // Number of LEDs
#define DATA_PIN 3                // Connect your addressable LED strip to this pin.
#define SENSITIVITY 300           // Ranges from 0 to 1023
#define MAX_BRIGHTNESS 200        // Ranges from 0 to 255
#define ENVELOPE_PIN A0           // Connect sound detector to this pin
#define SATURATION 150            // Ranges from 0 to 255
#define MINVAL 60
#define HUE_INIT 10
#define HUE_CHANGE 1

CRGB leds[NUMLEDS];
byte brightness[NUMLEDS];
byte hue[NUMLEDS];
int analogVal;
int DELAY;

void setup() { 
  Serial.begin(9600);
  pinMode(ENVELOPE_PIN, INPUT);
  FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUMLEDS);

  for(int i = 0; i <= NUMLEDS; i++){
    brightness[i] = 0;
    hue[i] = 0;
  }

  //Turn off all the LEDs
  for(int i=0; i <= NUMLEDS; i++)  
  {
  leds[i] = CRGB::Black;
  }

  //Update the LED strip
  FastLED.show(); 
}

void loop() {
  analogVal = analogRead(ENVELOPE_PIN);

  if(analogVal > SENSITIVITY)
  analogVal = SENSITIVITY;

  if(analogVal < MINVAL)
  analogVal = 0;
   
/*----------------------------------------------------------
  - 5 styles for sound reactive led strip are given below in different lines.
  - Uncomment the function which you want to try and comment the others.
  - "LinearFlowing" is uncommented by default.          
-----------------------------------------------------------*/

   LinearFlowing();
  // LinearReactive();
  // BrightnessReactive();
  // CentreProgressive();
  // EdgeProgressive();
  
  FastLED.show();
}

void LinearFlowing(){
  byte val = map(analogVal, 0, SENSITIVITY+1, 0, MAX_BRIGHTNESS);
  DELAY = map(analogVal, 0, SENSITIVITY+1, 20, 1);
  
  for(int i = 0; i <= NUMLEDS; i++){
    brightness[NUMLEDS-i] = brightness[NUMLEDS-i-1];
  }
  
  for(int i = 0; i <= NUMLEDS; i++){
    hue[NUMLEDS-i] = hue[NUMLEDS-i-1];
  }
  
  brightness[0] = val;
  byte hue = HUE_INIT;
  for(int i = 0; i <= NUMLEDS; i++){
    leds[i] = CHSV(hue += HUE_CHANGE, SATURATION, brightness[i]);
  }
  delay(DELAY);
}

void LinearReactive(){
  byte val = map(analogVal, 0, SENSITIVITY+1, 0, NUMLEDS);
  byte hue = HUE_INIT;
 
  for(int i = 0; i <= val; i++){
    leds[i] = CHSV(hue += HUE_CHANGE, SATURATION, MAX_BRIGHTNESS);
  }

  for(int i = val+1; i <= NUMLEDS; i++){
    leds[i].nscale8(10);
  }
}

void BrightnessReactive(){
  byte val = map(analogVal, 0, SENSITIVITY+1, 0, MAX_BRIGHTNESS);
  byte hue = HUE_INIT;
  for(int i = 0; i <= NUMLEDS; i++){
    leds[i] = CHSV(hue += HUE_CHANGE, SATURATION, val);
  }
}

void CentreProgressive(){
  byte val = map(analogVal, 0, SENSITIVITY, 0, NUMLEDS/2);
  byte hue = HUE_INIT;
  for(int i = 0; i <= val; i++){
    leds[(NUMLEDS/2)+i] = CHSV(hue += HUE_CHANGE, SATURATION, MAX_BRIGHTNESS);
    leds[(NUMLEDS/2)-i] = CHSV(hue += HUE_CHANGE, SATURATION, MAX_BRIGHTNESS);
  }

  for(int i = val+1; i <= (NUMLEDS/2); i++){
    leds[(NUMLEDS/2)+i].nscale8(10);
    leds[(NUMLEDS/2)-i].nscale8(10);
  }
}

void EdgeProgressive(){
  byte val = map(analogVal, 0, SENSITIVITY, 0, NUMLEDS/2);
  byte hue = HUE_INIT;
  for(int i = 0; i <= val; i++){
    leds[i] = CHSV(hue += HUE_CHANGE, SATURATION, MAX_BRIGHTNESS);
    leds[NUMLEDS-i] = CHSV(hue += HUE_CHANGE, SATURATION, MAX_BRIGHTNESS);
  }

  for(int i=val+1; i<=(NUMLEDS/2); i++){
    leds[i].nscale8(10);
    leds[NUMLEDS-i].nscale8(10);
  }
}

Yup.
All those for loops are defective.

thank you verry much. no more error messages.

can i buy you a coffee somehow?

Did you copy the code from somewhere?
If so, hold the offer of a coffee, and leave a bad review.
It's the only way we're going to tackle this