LED strip, And reacting to loudness sensor

Hi, hope someone can help me.

I am trying to make a light cube. I want to have the light fade in brightness,
It has to resemble someone breathing.

I have tried some Adafruit neopixel sketch code but I really have no idea what code I need to use to fade the LED-strip. And also to make it do something else when someone snores (the loudness sensor should pick up the snoring sound and then the light should blink)

I am very very new at this. This is a project for school. I hope someone can help me

For the neopixel "fading", you need to experiment with the values. Since you can run the adafruit neopixel code, you probably know that each pixel color is controlled by 3 values: R (0-255 for "redness"), G (0-255 for "greeness"), B (0-255 for "blueness"). Some fading effect would be achieved by gradually reducing the values of R, G and B.
My limited experimentation with neopixel is summarized here (I made a clock), but the code I wrote and the colors I used may help you: