Beispiel #1
0
void fullklatt(int16_t* incoming,  int16_t* outgoing, float samplespeed, u8 size){
  // first without speed or any params SELZ is pitch bend commentd now OUT
  //  klattrun(outgoing, size);
  float tmpbuffer[32]; float xxx,x;
  u8 xx=0;
     while (xx<size){
       outgoing[xx]=klatt_get_sample();
       xx++;
     }

     // test lowpass/biquad:
     
     int_to_floot(outgoing,tmpbuffer,32);
    for (xx=0;xx<32;xx++){
    xxx=tmpbuffer[xx];
    xxx=BiQuad(xxx,newBB); 
    tmpbuffer[xx]=xxx;
      }
    floot_to_int(outgoing,tmpbuffer,32);
    


};
Beispiel #2
0
/*--------------------------------------------------------------------------------*/
void BiQuadFilterBank::SetChannels(uint_t n)
{
  uint_t i;

  nchannels = n;
  for (i = 0; i < filters.size(); i++)
  {
    FILTER& filter = *filters[i];

    // remove filters if necessary
    while (filter.channels.size() > n)
    {
      filter.channels.pop_back();
    }

    // add filters if necessary
    while (filter.channels.size() < n)
    {
      // create a filter for each channel using the correct set of coeffs
      filter.channels.push_back(BiQuad(filter.coeffs));
    }
  }  
}