Posted on

Code AudioAnalyzer

#include <AudioAnalyzer.h>
//Version 1.3 for Spectrum analyzer
//Please download the latest library from the Product page!

int FreqVal[Maxband];//

uint32_t aus =  matrix->Color(0,0,0);
uint32_t gr =  matrix->Color(255,0,0);   //rouge (TOP)
uint32_t grb =  matrix->Color(255,0,0);   //rouge (TOP)
uint32_t grbl =  matrix->Color(255,0,0);   //rouge (TOP)
uint32_t gbl =   matrix->Color(255, 125, 0);   //orange
uint32_t bl =  matrix->Color(255, 102, 0);   //orange
uint32_t blr =  matrix->Color(255, 255, 0);   //jaune
uint32_t blro = matrix->Color(0, 255, 0) ;     //jaune
uint32_t bro =  matrix->Color(51, 255, 0);   //vert
uint32_t ro =  matrix->Color(51, 204, 0);   //vert
uint32_t rog =  matrix->Color(51, 153, 0);   //vert

------------

void audioloop()
{
  Audio.ReadFreq(FreqVal);//return 7 value of 7 bands pass filiter 
                          //Frequency(Hz):63  160  400  1K  2.5K  6.25K  16K
                          //FreqVal[]:      0    1    2    3    4    5    6  
  for(int i=0;i<Maxband;i++)            
  {
Share this :