 //***************NMLS const and settings*************************
 const int16_t numTaps = gg;
 int16_t w[numTaps];
-int16_t *pw; // pointer to w 
 
 
 //define input/source

  int16_t mu = 13;
  int8_t psi = 1;

  for(int h = 0; h<128;h+=1){
    for(int j = gg; j>0;j-=1){
      yhat += (x[j+h]*pw[gg-j])/32768;
      xtdl += x[j+h]*x[j+h];
    }
    error[h] = Mic[gg+h]-yhat;

 
    //update filter taps
    for(int j = 0; j<gg;j+=1){
      w[j] = w[j] + (x[gg-j+h]*mu0*error[h])/131072;
    }//end for
  }//end for outer
}// end NLMS_AEC
