Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: audio_block_t declare left and right outputs

  1. #1
    Junior Member
    Join Date
    Sep 2018
    Posts
    4

    audio_block_t declare left and right outputs

    I am creating an new audio object to emplemet a HRTF(head related transfer function). to make it sound like a sound is coming from locations in space. I have this code working in MATLAB but I am having a bit of trouble getting it to work in my teensy 3.6 with the audio hat.
    I need help with a few concepts.

    The idea is to:
    take a mono signal from the I2S input (Lsig)
    duplicate mono input(Rsig)
    convolv Lsig and Rsig with spacetialized filters
    playout I2S convololved signals

    I feel that I am missing a basic understanding of how to left and right audio channels.
    Can anyone point me to the right documentation or share some wisdom with me?

    This is part of what is in my update method...

    // sample code
    audio_block_t *blockL;
    audio_block_t *blockR;
    short *bpL;
    short *bpR;

    blockL = reciveWritable(0);
    blockR = reciveWritable(1);

    bpL = blockL->data;
    bpR = blockR->data;

    // read in buff
    for (int i, i <128,i++){
    buf[i] = *bpL++;
    }

    for (int i, i <128,i++){
    *bpL++ = playbufL[i];
    *bpR++ = playbufR[i];// <--gets stuck here
    }
    transmit(blockL,0); // does this trans only Left?
    transmit(blockR,1); // does this trans only Right?
    release(blockL);
    release(blockR);

    // fill playbufL & playbufR

  2. #2
    Junior Member
    Join Date
    Sep 2018
    Posts
    4
    bump......

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,148
    It would help immensely if you posted all your code (in code tags).

    Code:
      transmit(blockL,0); // does this trans only Left?
      transmit(blockR,1); // does this trans only Right?
    Yes, to both.

    Pete

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,454
    Your sample code says this:

    Code:
      *bpR++ = playbufR[i];// <--gets stuck here
    But "playbufR" isn't even one of the variables defined anywhere in the sample code. How can you expect anyone to offer advice about why that it gets stuck there where we can't even know how "playbufR" is defined?

    However, one issue I do see is a lack of checking whether blockL and blockR are NULL. You must check for NULL pointers to handle the case where no data arrives. If you write using a NULL pointer, the CPU will memory fault which effectively stops your program. Maybe that's why it's getting stuck?

    You also need to properly handle the case where one input has data and the other is NULL. Typically stereo effects would just release the 1 non-NULL block and return without transmitting anything. Whatever you do, you must always call release() for any non-NULL block pointer you get using the receive functions or with allocate().

  5. #5
    Junior Member
    Join Date
    Sep 2018
    Posts
    4
    Here is the cpp and the h file for my code. from a little more digging I found that BlockR is always NULL. Can anyone see why that would be?

    Code:
    #include "HRTF.h"
    
    /******************************************************************/
    //                Audio HRTF
    // Written by Zack Ennis
    /*******************************************************************/
    
    
    boolean HRTF::begin(int status)
    {
    		
    	enabled = 1;
    	state = 0;
    	angle = 0;
        Serial.println("begin");
    				
      return(true);
    }
    
    void HRTF::passThrough(int stat)
    {
        //Serial.println("pass");
      passThru=stat;
    }
    
    
    void HRTF::setfilts(int angle)
    {
        Serial.println("setfilts");
        int tempAngle = angle % 360;
        //fprintf('%1.1f\n',tempAngle)
        if      ((tempAngle >= 0) & (tempAngle < 30))
            {azL = 0; 
            azR = 30;
            lfilt1 = impL0_0;    
            lfilt2 = impL30_0;
            rfilt1 = impR0_0;    
            rfilt2 = impR30_0;
            }
        else if  ((tempAngle >= 30) & (tempAngle < 60))
            {azL = 30; 
            azR = 60;
            lfilt1 = impL30_0;    
            lfilt2 = impL60_0;
            rfilt1 = impR30_0;    
            rfilt2 = impR60_0;
            }
        else if  ((tempAngle >= 60) & (tempAngle < 90))
            {azL = 60; 
            azR = 90;
            lfilt1 = impL60_0;    
            lfilt2 = impL90_0;
            rfilt1 = impR60_0;    
            rfilt2 = impR90_0;
            }
        else if  ((tempAngle >= 90) & (tempAngle < 120))
            {azL = 90; 
            azR = 120;
            lfilt1 = impL90_0;    
            lfilt2 = impL120_0;
            rfilt1 = impR90_0;    
            rfilt2 = impR120_0;
            }
        else if  ((tempAngle >= 120) & (tempAngle < 150))
            {azL = 120; 
            azR = 150;
            lfilt1 = impL120_0;    
            lfilt2 = impL150_0;
            rfilt1 = impR120_0;    
            rfilt2 = impR150_0;
            }
        /*else if  ((tempAngle >= 150) & (tempAngle < 180))
            {azL = 150; 
            azR = 180;
            lfilt1 = impL150_0;    
            lfilt2 = impL180_0;
            rfilt1 = impR150_0;    
            rfilt2 = impR180_0;
            }
        else if  ((tempAngle >= 180) & (tempAngle < 210))
            {azL = 180; 
            azR = 210;
            lfilt1 = impL180_0;    
            lfilt2 = impL210_0;
            rfilt1 = impR180_0;    
            rfilt2 = impR210_0;
            }
        else if  ((tempAngle >= 210) & (tempAngle < 240))
            {azL = 210; 
            azR = 240;
            lfilt1 = impL210_0;    
            lfilt2 = impL240_0;
            rfilt1 = impR210_0;    
            rfilt2 = impR240_0;
            }
        else if  ((tempAngle >= 240) & (tempAngle < 270))
            {azL = 240; 
            azR = 270;
            lfilt1 = impL240_0;    
            lfilt2 = impL270_0;
            rfilt1 = impR240_0;    
            rfilt2 = impR270_0;
            }
        else if  ((tempAngle >= 270) & (tempAngle < 300))
            {azL = 270; 
            azR = 300;
            lfilt1 = impL270_0;    
            lfilt2 = impL300_0;
            rfilt1 = impR270_0;    
            rfilt2 = impR300_0;
            }
        else if  ((tempAngle >= 300) & (tempAngle < 330))
            {azL = 300; 
            azR = 330;
            lfilt1 = impL300_0;    
            lfilt2 = impL330_0;
            rfilt1 = impR300_0;    
            rfilt2 = impR330_0;
            }
        else if  ((tempAngle >= 330) & (tempAngle < 360))
            {azL = 330; 
            azR = 360;
            lfilt1 = impL330_0;    
            lfilt2 = impL0_0;
            rfilt1 = impR330_0;    
            rfilt2 = impR0_0;
            }
            */
        else
            {Serial.println("out of range");}
        
        scalesL = abs((tempAngle - azL)/30);
        scalesR = abs((tempAngle - azR)/30);
    
        //arm_scale_f32(*inVec,scale,&outVec ,bufferSize)
        arm_scale_f32(lfilt1,scalesR,T1 ,buffSize*2);
        arm_scale_f32(lfilt2,scalesL,T2 ,buffSize*2);
        arm_scale_f32(rfilt1,scalesR,T3 ,buffSize*2);
        arm_scale_f32(rfilt2,scalesL,T4 ,buffSize*2);
        
        //arm_add_f32(*inA,*inB,*out,bufferSize)
        arm_add_f32(T1,T2,lfilt,buffSize*2);
        arm_add_f32(T3,T4,rfilt,buffSize*2);
    	enabled = 1;
        Serial.println("end setfilts");
    
    }
    
    
    
    void HRTF::update(void)
    {
        
        audio_block_t *blockL;
        audio_block_t *blockR;
        short *bpL;
        short *bpR;
        
    	if (enabled != 1 ) return;
    	blockL = receiveWritable(0); // left 
    	blockR = receiveWritable(1); // right 
            Serial.println("here-2");
    	if (!blockL || !blockR) {
                Serial.println("here-1");
    		if (blockL) release(blockL); // maybe an extra if statement here but if one
    		if (blockR) release(blockR); // of the blocks is NULL then it's trouble anyway
    		return;
    	}  
           if (blockL) {
    		switch (state) {
    		case 0:
                            bpL = blockL->data;
                            bpR = blockR->data;
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				buffer[i] = *bpL++;
                    
    			}
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				*bpL++ = tbufferL[ i];   // tbuffer contains results of last 
                                    *bpR++ = tbufferR[ i];  // tbuffer contains results of last 
    			}
    			transmit(blockL, 0);
                            transmit(blockR, 1);
    			release(blockL);
                            release(blockR);
    			state = 1;
    			break;
    		case 1:
    			bpL = blockL->data;
                            bpR = blockR->data;
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				buffer[128+i] = *bpL++;
                    
    			}
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				*bpL++ = tbufferL[128+ i];   // tbuffer contains results of last 
                                    *bpR++ = tbufferR[128+ i];  // tbuffer contains results of last 
    			}
    			transmit(blockL, 0);
                            transmit(blockR, 1);
    			release(blockL);
                            release(blockR);
    			state = 2;
    			break;
    		case 2:
    			bpL = blockL->data;
                bpR = blockR->data;
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				buffer[256+i] = *bpL++;
                    
    			}
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
                    *bpL++ = tbufferL[256+i];   // tbuffer contains results of last FFT/multiply/iFFT processing (convolution filtering)
                    *bpR++ = tbufferR[256+i]; // tbuffer contains results of last FFT/multiply/iFFT processing (convolution filtering)
    			}
    			transmit(blockL, 0);
                transmit(blockR, 1);
    			release(blockL);
                release(blockR);
    			state = 3;
    			break;
    		case 3:
    			bpL = blockL->data;
                bpR = blockR->data;
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				buffer[384+i] = *bpL++;
                    
    			}
    			for (int i = 0; i < AUDIO_BLOCK_SAMPLES; i++) {
    				*bpL++ = tbufferL[384+i];   // tbuffer contains results of last FFT/multiply/iFFT processing (convolution filtering)
                    *bpR++ = tbufferR[384+i];  // tbuffer contains results of last FFT/multiply/iFFT processing (convolution filtering)
    			}
    			transmit(blockL, 0);
                transmit(blockR, 1);
    			release(blockL);
                release(blockR);
    			state = 0;
    
                if (idx < 44100/1024*90){//////////////////////////////////////////////////////////////////////////////////////////
                    idx= idx +10;
                }
                else{
                    idx = 0;
                }
    
                Serial.println(idx*1024/44100+1);
                setfilts(idx*1024/44100+1);
    			// 4 blocks are in- now do the FFT1024,complex multiply and iFFT1024  on 512samples of data
    			// using the overlap/add method
    			// 1st convert Q15 samples to float
    			arm_q15_to_float(buffer, float_buffer_L, 512); 
    			arm_q15_to_float(buffer, float_buffer_R, 512); 
    		   // float_buffer samples are now standardized from > -1.0 to < 1.0
    			if (passThru ==0) {
    				memset(FFT_bufferL + 1024, 0, sizeof(FFT_bufferL) / 2);    // zero pad last half of array- necessary to prevent aliasing in FFT
                    memset(FFT_bufferR + 1024, 0, sizeof(FFT_bufferR) / 2);    // zero pad last half of array- necessary to prevent aliasing in FFT
    				
    				
    				//fill FFT_buffer with current audio samples
    				k = 0;
    				for (i = 0; i < 512; i++)
    				{
    					FFT_bufferL[k++] = float_buffer_L[i];   // real
                        FFT_bufferR[k] = float_buffer_R[i];   // real
    					FFT_bufferL[k++] = float_buffer_L[i];   // imag
    					FFT_bufferR[k] = float_buffer_R[i];   // imag
    				}
    				// calculations are performed in-place in FFT routines
    				arm_cfft_f32(&arm_cfft_sR_f32_len1024, FFT_bufferL, 0, 1);// perform complex FFT
                    arm_cfft_f32(&arm_cfft_sR_f32_len1024, FFT_bufferR, 0, 1);// perform complex FFT
    				
                    arm_cmplx_mult_cmplx_f32(FFT_bufferL, lfilt, iFFT_bufferL, FFT_length);   // complex multiplication in Freq domain = convolution in time domain
    				arm_cmplx_mult_cmplx_f32(FFT_bufferR, rfilt, iFFT_bufferR, FFT_length);   // complex multiplication in Freq domain = convolution in time domain
    				
                    arm_cfft_f32(&arm_cfft_sR_f32_len1024, FFT_bufferL, 1, 1);  // perform complex inverse FFT
                    arm_cfft_f32(&arm_cfft_sR_f32_len1024, FFT_bufferR, 1, 1);  // perform complex inverse FFT
    				k = 0;
    				l = 1024;
    				for (int i = 0; i < 512; i++) {
    					float_buffer_L[i] = last_sample_buffer_L[i] + iFFT_bufferL[k++];   // this performs the "ADD" in overlap/Add
    					last_sample_buffer_L[i] = iFFT_bufferL[l++];				// this saves 512 samples (overlap) for next time around
                        float_buffer_R[i] = last_sample_buffer_R[i] + iFFT_bufferR[k];   // this performs the "ADD" in overlap/Add
    					last_sample_buffer_R[i] = iFFT_bufferR[l];				// this saves 512 samples (overlap) for next time around
    					k++;
    					l++;
    				}
    			} //end if passTHru
    			// convert floats to Q15 and save in temporary array tbuffer
    			arm_float_to_q15(&float_buffer_L[0], &tbufferL[0], BUFFER_SIZE*4);
                
                arm_float_to_q15(&float_buffer_R[0], &tbufferR[0], BUFFER_SIZE*4);
    			break;
    		}
    	}
    }
    Code:
     
    
    #ifndef HRTF_h_
    #define HRTF_h_
    
    #include "Arduino.h"
    #include "AudioStream.h"
    #include <arm_math.h>
    #include <arm_const_structs.h>
    //#include <C:\Users\RHCB_Subject\Documents\Arduino\SitCom\define_freq_filts.h>
    //#include <define_freq_filts.h>
    /******************************************************************/
    //                Audio HRTF
    // Written by Zack Ennis APL 2019
    /******************************************************************/
    
    class HRTF : public AudioStream
    {
    public:
    	HRTF(void) : AudioStream(2, inputQueueArray)                       //, num_chorus(2)   
    	{
    	}
    
      boolean begin(int status);
      virtual void update(void);
      void passThrough(int stat);
      void setfilts(int angle);
    
    private:
    #define BUFFER_SIZE 128
      audio_block_t *inputQueueArray[2];
      int16_t *sp_L;
      volatile uint8_t state;
      volatile int angle;
      int i;
      int k;
      int l;
      int passThru;
      int enabled;
      const uint32_t FFT_length = 1024;
      const uint buffSize = 1024;
      volatile int idx = 0;
    
      
      float32_t *lfilt1;
      float32_t *lfilt2;
      float32_t *rfilt1;
      float32_t *rfilt2;
      float32_t azL = 0;
      float32_t azR = 0;
      float32_t scalesL = 0;
      float32_t scalesR = 0;
    
      float32_t lfilt[2048] __attribute__((aligned(4)));
      float32_t rfilt[2048] __attribute__((aligned(4)));
    
      float32_t T1[2048] __attribute__((aligned(4)));
      float32_t T2[2048] __attribute__((aligned(4)));
      float32_t T3[2048] __attribute__((aligned(4)));
      float32_t T4[2048] __attribute__((aligned(4)));
    
      
    
      float32_t float_buffer_L[512]__attribute__((aligned(4)));
      float32_t float_buffer_R[512]__attribute__((aligned(4)));
      float32_t last_sample_buffer_L[512];
      float32_t last_sample_buffer_R[512];
    
      float32_t FFT_bufferL[2048] __attribute__((aligned(4)));
      float32_t iFFT_bufferL[2048] __attribute__((aligned(4)));
      float32_t FFT_bufferR[2048] __attribute__((aligned(4)));
      float32_t iFFT_bufferR[2048] __attribute__((aligned(4)));
      
    
      int16_t buffer[512] __attribute__((aligned(4)));
      int16_t tbufferL[512]__attribute__((aligned(4)));
      int16_t tbufferR[512]__attribute__((aligned(4)));
    
      float32_t impL0_0[2048] = {  0.001172876408,   0.000000000000,  0.000519166999,   0.000667846996, -0.000869282871,   0.001768646871, -0.002541926208,   0.002445455515, -0.005546839202,   0.001695517515, -0.011754702314,  -0.000306415502, -0.023221174558,  -0.002181674909, -0.041902008143,  -0.000362784205, -0.066551061346,   0.011718624335, -0.089117026025,   0.039163296806, -0.098538067275,   0.078361493504, -0.090760790995,   0.117821120794, -0.072002164027,   0.148708679935, -0.049979555360,   0.171551864186, -0.025479847586,   0.190353815189,  0.004496640261,   0.203961137011,  0.038681720213,   0.207006910165,  0.070569070416,   0.196908402566,  0.093581327201,   0.176444664020,  0.104256419210,   0.151271967665,  0.102485134070,   0.127820365239,  0.091913164478,   0.111598017243,  0.078721757894,   0.104167746327,  0.067223673001,   0.102558219923,  0.057488299186,   0.103456117558,  0.048488766416,   0.106362007333,  0.041053616831,   0.111273446484,  0.035692037043,   0.116217342484,  0.030274053852,   0.119703752226,  0.022657180424,   0.123295248939,  0.013542932181,   0.129157939091,  0.004368210720,   0.137211872977, -0.005260494331,   0.147097381718, -0.015386298910,   0.160510216913, -0.023221356782,   0.178667720854, -0.025744821587,   0.199321969547, -0.023151258472,   0.218884576530, -0.017524344374,   0.235808702944, -0.010171416731,   0.249822787662, -0.002533329682,   0.260227291639,  0.002680730408,   0.267611302580,  0.004145193057,   0.275176262927,  0.003996045960,   0.285624033140,  0.004947656624,   0.298325511994,  0.007192592307,   0.311577334298,  0.010148134968,   0.325421498631,  0.014777988509,   0.339959715994,  0.021573520278,   0.353325854677,  0.028429377423,   0.364096999232,  0.033191807155,   0.373758759116,  0.036399574200,   0.384326242087,  0.039172277245,   0.395583589487,  0.040615121455,   0.407072693528,  0.039877770462,   0.420557205916,  0.038646041549,   0.437854957188,  0.038986271367,   0.458241017966,  0.040731860448,   0.480483133677,  0.043442870168,   0.505328836101,  0.048734699138,   0.533460109354,  0.058017467594,   0.563196987637,  0.070033603706,   0.592957649836,  0.083342451330,   0.624028461751,  0.099370958795,   0.658321126446,  0.120621025787,   0.695300148222,  0.147990458304,   0.733385199182,  0.182224974400,   0.771949267549,  0.225417509801,   0.809200886997,  0.277920557833,   0.840485840033,  0.335667162256,   0.861958132098,  0.393488396786,   0.874479664002,  0.449650248129,   0.881519866747,  0.505138467211,   0.885068573252,  0.560940369152,   0.885656160043,  0.618562324551,   0.883517531261,  0.680369394870,   0.876514619087,  0.745647928883,   0.859244021113,  0.807827079362,   0.828009470710,  0.858778001160,   0.785877878999,  0.895063530277,   0.740665596621,  0.918499765104,   0.699590089308,  0.933391671012,   0.667626540867,  0.946142004965,   0.647778980156,  0.964947180763,   0.638822156224,  0.995567347536,   0.633909245139,  1.037435223554,   0.624568806583,  1.085492549164,   0.605808014796,  1.134211097609,   0.576546073317,  1.178538713058,   0.538141603722,  1.214493294502,   0.495174372337,  1.242708916529,   0.454842137603,  1.269949490665,   0.421590951852,  1.304185986507,   0.392854662992,  1.348988013262,   0.361580076429,  1.403552480797,   0.320726081285,  1.464490560266,   0.263771046690,  1.524340554973,   0.184980534154,  1.571378994592,   0.083860601027,  1.595536629581,  -0.031901229586,  1.594213570959,  -0.151077346595,  1.570567755931,  -0.265515547875,  1.528479092574,  -0.370715181491,  1.471705802145,  -0.463163177495,  1.405116776198,  -0.540732138836,  1.332939527990,  -0.603790240458,  1.257228143322,  -0.652695771454,  1.180818028446,  -0.685879574361,  1.109805929523,  -0.703267393355,  1.050035534851,  -0.709782016543,  1.002631038589,  -0.712678436914,  0.965188709278,  -0.717166146843,  0.934767407437,  -0.726760432583,  0.906769975273,  -0.744686304301,  0.873781530465,  -0.770852265511,  0.829991138213,  -0.799122632645,  0.776128095862,  -0.821275010494,  0.717626303175,  -0.832989548169,  0.659612176741,  -0.834219091208,  0.605842415808,  -0.826457931548,  0.559484077258,  -0.812879425105,  0.520861909066,  -0.798723942915,  0.485876382781,  -0.787459194851,  0.450032401446,  -0.777392170023,  0.413084045013,  -0.764615660631,  0.377612025037,  -0.747729720956,  0.345278311666,  -0.727456558454,  0.317194240357,  -0.704248151940,  0.295396680856,  -0.679583623386,  0.280281488556,  -0.657487524237,  0.268149946385,  -0.641151858681,  0.254437666592,  -0.629286960766,  0.238016164297,  -0.618378390099,  0.220033147266,  -0.606676096276,  0.200944456662,  -0.593492706740,  0.181687104446,  -0.577233558714,  0.165344321009,  -0.557613216043,  0.154020916415,  -0.537867797550,  0.145635759275,  -0.521413362433,  0.136722436354,  -0.507840497140,  0.126577322286,  -0.494821805122,  0.116019303966,  -0.481732301057,  0.104578178788,  -0.468463286039,  0.092224534977,  -0.453177630434,  0.081623506214,  -0.434808649424,  0.075119767085,  -0.415860274586,  0.071211636488,  -0.399417958478,  0.067029831196,  -0.385156014659,  0.062286880341,  -0.371164746812,  0.057839157634,  -0.357418202919,  0.052808977375,  -0.344242587828,  0.046608131436,  -0.329759682769,  0.041634503201,  -0.312476627869,  0.040396364408,  -0.294480488269,  0.041786998091,  -0.278716866939,  0.043344152276,  -0.265030002308,  0.045033672640,  -0.251979721237,  0.047564074843,  -0.240206726577,  0.049360951319,  -0.230510921236,  0.048889961903,  -0.220848043000,  0.047949812138,  -0.208919422699,  0.049125354098,  -0.195841241337,  0.051918111548,  -0.183887272991,  0.054697828088,  -0.172702699074,  0.058229783457,  -0.161146465990,  0.063703599536,  -0.150602163926,  0.069444055123,  -0.142777473073,  0.073253967453,  -0.136260356513,  0.076040079253,  -0.128831007227,  0.079639294018,  -0.121155665817,  0.083193823609,  -0.114718804431,  0.085232236715,  -0.108311076742,  0.087136025786,  -0.100216391509,  0.090849225373,  -0.091735621450,  0.095247600120,  -0.084868605955,  0.098410676643,  -0.078605041899,  0.101342875212,  -0.071134241913,  0.105787270368,  -0.063533849875,  0.110563761190,  -0.057555991929,  0.113832259179,  -0.051952242392,  0.116817546255,  -0.044767060956,  0.121523786382,  -0.037116066228,  0.126932259464,  -0.030930551532,  0.131241078452,  -0.025164839685,  0.135644034495,  -0.018057464362,  0.142025110421,  -0.010928413426,  0.149104656083,  -0.005847870162,  0.154750056896,  -0.001723428816,  0.159903976410,   0.003437301118,  0.166343421429,   0.008633780051,  0.172826332721,   0.012154731280,  0.177454769065,   0.015447261030,  0.181625794925,   0.020699594288,  0.187631661746,   0.026796348117,  0.194575548793,   0.031654318988,  0.200665819714,   0.036281708567,  0.207239426125,   0.042463427740,  0.216393489653,   0.048729772613,  0.226906849923,   0.052756893843,  0.236639398341,   0.055484294462,  0.246660696950,   0.058709500706,  0.258803872998,   0.060937852859,  0.271440301567,   0.059867160953,  0.281933900188,   0.056717210704,  0.291017220674,   0.053884244420,  0.300550613395,   0.050637864961,  0.309373315561,   0.045372630718,  0.315721856367,   0.039645927647,  0.321321666981,   0.035512476306,  0.328549219029,   0.031185232254,  0.335753868659,   0.023826295841,  0.339749577198,   0.014454319428,  0.340650556360,   0.005860217402,  0.340022309288,  -0.001829442264,  0.336944574082,  -0.009130176715,  0.330587874822,  -0.013489501688,  0.324204210994,  -0.012453509561,  0.321767825077,  -0.008303763096,  0.322787862402,  -0.005059621877,  0.324682498692,  -0.003256585035,  0.327506695343,  -0.001965118887,  0.331690965251,  -0.002928274402,  0.334061650620,  -0.007616918152,  0.331389710972,  -0.012786167850,  0.325619423968,  -0.014086306298,  0.320780089060,  -0.011856951982,  0.317203379872,  -0.008758195614,  0.313476050993,  -0.004500144945,  0.311110059638,   0.002074064633,  0.311934314030,   0.008585229888,  0.313480611298,   0.012258109630,  0.312327790972,   0.015041458141,  0.309681834982,   0.020464786879,  0.308654502124,   0.027907971369,  0.308735232026,   0.034976013826,  0.308117982345,   0.042646601122,  0.308562848475,   0.052662958053,  0.312354466096,   0.062654552594,  0.317083876492,   0.069493035815,  0.318995738495,   0.074976256360,  0.318977450450,   0.082802791535,  0.319939644904,   0.092623518559,  0.321199405010,   0.102464008731,  0.321062027484,   0.113978673127,  0.321960032238,   0.129455441842,  0.327064081105,   0.146442551072,  0.334463588761,   0.161259022713,  0.340461860928,   0.175195108784,  0.345858566912,   0.191605848372,  0.353316101397,   0.209881187867,  0.361716012860,   0.228149464309,  0.369269747224,   0.248719719023,  0.379155570258,   0.274489186000,  0.395716653692,   0.302792127401,  0.417809420873,   0.328976130124,  0.441884850483,   0.353195964807,  0.468479214830,   0.377719083386,  0.499492654053,   0.400948332382,  0.532560093503,   0.420604784435,  0.564877845358,   0.439432096677,  0.599409907273,   0.460886606850,  0.640498609645,   0.482221051505,  0.686347440744,   0.498504361722,  0.732388718944,   0.510348032853,  0.778704060933,   0.521143726834,  0.827455665642,   0.530330223804,  0.876838220851,   0.536377294565,  0.924945823890,   0.542604498281,  0.976049112570,   0.552418618804,  1.035429622205,   0.562068967398,  1.101156610289,   0.565502522795,  1.168121933528,   0.563079533308,  1.236565091217,   0.558396225016,  1.309347726013,   0.550469491580,  1.384998887295,   0.536632002231,  1.461374045733,   0.518864730560,  1.541925208140,   0.498992184301,  1.629750530888,   0.471713325283,  1.719209131253,   0.431167724407,  1.802074225143,   0.381001981615,  1.878705409423,   0.329758091422,  1.955482358452,   0.280006327507,  2.035828577903,   0.229607447040,  2.122070608106,   0.178132115790,  2.220332448548,   0.122372171566,  2.332693588861,   0.050542282614,  2.448084846644,  -0.047905974270,  2.551176794463,  -0.169158108989,  2.637850409520,  -0.300296367513,  2.714336554336,  -0.433833406697,  2.786681781917,  -0.569414839126,  2.860141599792,  -0.708308633482,  2.941534966655,  -0.857513085620,  3.028923539185,  -1.033088371706,  3.102913942441,  -1.245486831645,  3.140935647546,  -1.483405092676,  3.138927150096,  -1.722391987430,  3.111065867104,  -1.946630195742,  3.074079604664,  -2.154978454506,  3.041062969415,  -2.354581806451,  3.020739632689,  -2.561596573146,  3.006157167848,  -2.800169126072,  2.968214139819,  -3.082852208320,  2.876167259746,  -3.392574058614,  2.724929367762,  -3.695730547857,  2.533946483218,  -3.971143790289,  2.325475099896,  -4.219008374304,  2.113188000946,  -4.451899743770,  1.899416884394,  -4.690697378624,  1.664841263690,  -4.957682317535,  1.368451470446,  -5.251583333821,  0.979385782369,  -5.531621313386,  0.510229470856,  -5.743674028739,  0.007222654276,  -5.863002105184, -0.488296879998,  -5.903398622467, -0.960572341393,  -5.894927219497, -1.417824110812,  -5.865547258393, -1.889904918542,  -5.827700297980, -2.413349533759,  -5.757240501838, -2.989723330217,  -5.593974397794, -3.560517037396,  -5.290735223572, -4.045094515598,  -4.864102514343, -4.403858988050,  -4.382283377517, -4.653964158198,  -3.910067386027, -4.839219663717,  -3.478141677014, -5.005309466026,  -3.084584581368, -5.183672351180,  -2.696168559047, -5.363402607175,  -2.263074821877, -5.486884675304,  -1.769296278289, -5.506520825441,  -1.265398566362, -5.443539374678,  -0.823978915893, -5.369493908530,  -0.468985311718, -5.345757726698,  -0.166636748041, -5.402666939364,   0.144259330687, -5.535428063386,   0.549266094295, -5.661040816708,   1.140399933500, -5.610245530386,   1.920125367313, -5.250649226781,   2.729814483730, -4.631491684094,   3.350813930703, -3.949901839758,   3.692714128546, -3.375922781322,   3.838867042643, -2.962157569054,   3.937137006929, -2.673416324895,   4.132711509273, -2.364478629218,   4.561499820430, -1.732607757849,   5.217791044863, -0.504943749511,   5.757839992404,  1.177267040314,   5.619303364368,  2.674676123003,   4.532026270609,  3.335515254319,   2.873062990128,  3.067880915652,   1.376120770631,  2.338297785369,   0.499244664081,  1.655493460699,   0.170666081565,  1.192867222199,   0.087626467844,  0.881238948518,   0.071408458006,  0.658193944479,   0.092865761386,  0.518462756323,   0.130479038907,  0.434798082192,   0.144909901585,  0.360783281855,   0.138752870338,  0.290220485525,   0.142148866335,  0.243711820060,   0.154079681956,  0.215365045970,   0.152660267329,  0.182439386139,   0.141974182964,  0.147577287971,   0.141636150095,  0.127963180937,   0.147513401337,  0.118485474738,   0.142316934711,  0.101913577152,   0.130111625539,  0.081294667849,   0.126521328845,  0.070559706247,   0.128243607450,  0.065851778823,   0.122083205025,  0.054355108265,   0.111952687847,  0.039896161899,   0.110130240487,  0.034328431166,   0.112780568168,  0.034033468171,   0.108314153329,  0.027944683724,   0.099914907935,  0.019079214109,   0.097825342418,  0.017036463394,   0.098785243795,  0.018309669134,   0.093415307859,  0.013590278705,   0.085173856909,  0.006117658316,   0.083167209536,  0.004676844504,   0.084350899705,  0.006364150263,   0.080299602880,  0.003144495094,   0.073845529729, -0.002100373394,   0.072669064756, -0.001891861926,   0.073783380396,  0.000782961304,   0.069781562360, -0.001378838188,   0.063508680233, -0.005690875527,   0.062046664609, -0.005338608932,   0.062784310278, -0.002919647511,   0.059136559040, -0.004833140602,   0.053698751293, -0.008483178584,   0.052713238144, -0.007747383110,   0.053589423077, -0.005175488613,   0.050299654065, -0.006683124373,   0.045314709325, -0.009877734128,   0.044399432587, -0.009162423312,   0.045205923473, -0.006874036692,   0.042291699014, -0.008330890710,   0.038000236104, -0.011186864422,   0.037561788720, -0.010276506306,   0.038657437492, -0.007856105254,   0.036199023037, -0.008899103627,   0.032377042692, -0.011246763455,   0.032031421193, -0.010172730136,   0.033002713091, -0.007839091956,   0.030645947406, -0.008824923833,   0.027109690307, -0.011008035611,   0.026908013778, -0.009942454953,   0.027953512558, -0.007675250722,   0.025878150705, -0.008481781185,   0.022696777682, -0.010356177752,   0.022591032333, -0.009188160520,   0.023547786336, -0.006988090795,   0.021501645889, -0.007780923761,   0.018434460754, -0.009627450506,   0.018311639675, -0.008642640842,   0.019225907113, -0.006726586061,   0.017374287939, -0.007620543949,   0.014666419575, -0.009411983469,   0.014807989643, -0.008421994327,   0.015908824966, -0.006498430245,   0.014334396187, -0.007204561206,   0.011896757442, -0.008735865228,   0.012079568720, -0.007668660166,   0.013062343316, -0.005837352877,   0.011451214662, -0.006621443398,   0.009070307381, -0.008232374846,   0.009274466210, -0.007366545293,   0.010316297292, -0.005750052799,   0.008963990856, -0.006547661398,   0.006952645001, -0.008000770385,   0.007408635672, -0.006993000211,   0.008564890726, -0.005269253303,   0.007311797172, -0.005909742332,   0.005353951582, -0.007241531566,   0.005716116552, -0.006302859906,   0.006731912262, -0.004773925112,   0.005488145736, -0.005542760936,   0.003680634552, -0.006913653256,   0.004187321409, -0.006021937393,   0.005332414451, -0.004515557514,   0.004281394838, -0.005183993357,   0.002663547683, -0.006400439008,   0.003222494237, -0.005456396623,   0.004324690860, -0.003990736066,   0.003285583563, -0.004669539437,   0.001743205988, -0.005861773127,   0.002346187708, -0.004938506618,   0.003476090215, -0.003502519762,   0.002529992309, -0.004123037048,   0.001098431094, -0.005212418405,   0.001714439664, -0.004267943633,   0.002784765366, -0.002889841525,   0.001826812699, -0.003548145552,   0.000441625319, -0.004650237818,   0.001087189267, -0.003756897583,   0.002185559591, -0.002433059045,   0.001325750971, -0.003056928079,   0.000068931913, -0.004061639250,   0.000765479368, -0.003114497434,   0.001841326334, -0.001790273377,   0.000975334861, -0.002396816249,  -0.000263834826, -0.003372920184,   0.000413454546, -0.002449592842,   0.001450984550, -0.001180074415,   0.000600142895, -0.001792864828,  -0.000587934860, -0.002737378190,   0.000095117188, -0.001823902016,   0.001097121510, -0.000606789979,   0.000243931877, -0.001247127687,  -0.000909781371, -0.002192706288,  -0.000215810388, -0.001310038915,   0.000777762252, -0.000143440735,  -0.000045397815, -0.000790505403,  -0.001142533685, -0.001706909549,  -0.000434423684, -0.000829108861,   0.000530700664,  0.000291013266,  -0.000298872176, -0.000388799145,  -0.001370777958, -0.001319528522,  -0.000653457325, -0.000484427909,   0.000308403792,  0.000572900737,  -0.000483856972, -0.000129007359,  -0.001482887773, -0.001036917475,  -0.000720052323, -0.000191143153,   0.000247519674,  0.000850803363,  -0.000531448139,  0.000148031770,  -0.001500953406, -0.000744676955,  -0.000732606641,  0.000087333677,   0.000218652352,  0.001087008028,  -0.000547735749,  0.000366858651,  -0.001470359900, -0.000506245948,  -0.000672115138,  0.000337136241,   0.000276075797,  0.001324933735,  -0.000487938559,  0.000604453064,  -0.001392582348, -0.000252205579,  -0.000597009801,  0.000583440948,   0.000323710219,  0.001531500916,  -0.000447892673,  0.000783566679,  -0.001326702726, -0.000070835656,  -0.000511900503,  0.000761926913,   0.000403960810,  0.001687314315,  -0.000364759917,  0.000929044433,  -0.001221381527,  0.000087289524,  -0.000399742421,  0.000918609437,   0.000494905345,  0.001811882169,  -0.000285852695,  0.001025356421,  -0.001125413171,  0.000179893818,  -0.000288061006,  0.001004514014,   0.000602204923,  0.001871999354,  -0.000175510509,  0.001070372097,  -0.000989267935,  0.000237975368,  -0.000135167809,  0.001072421158,   0.000741726703,  0.001923052820,  -0.000050955173,  0.001103221923,  -0.000858111635};
    
    float32_t impR0_0[2048] = { -0.057350557593,   0.000000000000, -0.058271758658,   0.000161119468, -0.059900681947,   0.001305847911, -0.061146530920,   0.001966059101, -0.063655743506,   0.000285870477, -0.070423967032,  -0.003150718352, -0.083496254816,  -0.005663389849, -0.103572458733,  -0.003191116676, -0.128438252004,   0.009838837298, -0.150621413263,   0.037133190362, -0.160859582871,   0.075007478920, -0.156251263463,   0.113966083850, -0.141506002737,   0.147760357024, -0.120577683207,   0.176958417399, -0.091897822178,   0.201765387974, -0.054719627549,   0.216623872976, -0.015371644732,   0.215837303852,  0.016947894767,   0.200785113143,  0.037454207575,   0.177979378901,  0.045913914368,   0.153329477897,  0.043521149808,   0.131441973446,  0.033493275059,   0.116579728293,  0.021475029187,   0.109929413804,  0.011273568153,   0.108260797800,  0.002186516795,   0.108446542052, -0.007077133843,   0.110860279381, -0.015048915619,   0.116048455981, -0.020714723031,   0.121712708048, -0.026426891751,   0.126138361392, -0.034338529188,   0.131302611195, -0.043077530915,   0.139451395927, -0.050900641348,   0.149810830886, -0.058698296564,   0.161663735273, -0.066639597717,   0.177125456516, -0.071231445968,   0.197338606113, -0.069304886469,   0.218924822647, -0.062236154676,   0.237539405382, -0.053330409797,   0.252261336097, -0.044061090500,   0.263850180474, -0.035638567619,   0.272126193728, -0.030685225670,   0.278245863985, -0.029812826565,   0.286229161858, -0.029403064679,   0.298689181453, -0.025933336351,   0.313603889821, -0.019850329721,   0.327981571143, -0.012750015707,   0.341655439580, -0.004234536757,   0.354918810991,  0.005542834751,   0.366116883527,  0.013823804228,   0.374823915139,  0.019086137294,   0.384083870224,  0.023838643800,   0.396234209181,  0.030554115236,   0.409518692224,  0.037929092165,   0.421718643089,  0.043982892902,   0.433881520519,  0.049435482648,   0.447608046290,  0.055042372466,   0.462199686956,  0.059162928340,   0.477667296351,  0.061326033046,   0.497117053345,  0.064998365773,   0.522769432637,  0.073610419603,   0.552637347964,  0.086889513958,   0.584104474142,  0.103957381750,   0.617543390983,  0.126618131691,   0.653505371695,  0.156582744922,   0.689839417921,  0.192984492515,   0.724645126531,  0.235773413461,   0.758427959421,  0.287850362915,   0.789953709743,  0.350137355421,   0.813491878901,  0.417571904401,   0.823936351092,  0.483351993679,   0.822036926412,  0.544454582742,   0.811837174463,  0.600590763113,   0.796221228909,  0.651666608243,   0.777596882010,  0.699543278848,   0.758747953787,  0.748347630830,   0.739112870620,  0.798876658010,   0.713587295388,  0.845456339549,   0.679012215462,  0.881831395977,   0.639475153906,  0.907770593552,   0.602405009475,  0.927648597556,   0.572388446969,  0.946438781156,   0.551040112477,  0.970146449214,   0.538247916745,  1.005567461302,   0.529155666170,  1.054275114210,   0.513338808244,  1.108595546421,   0.482037412894,  1.157098086975,   0.435451854287,  1.192854164931,   0.381126438527,  1.215365818441,   0.328017248366,  1.228983508260,   0.283817337800,  1.242974175626,   0.252985194796,  1.269253284461,   0.232216568579,  1.314833333967,   0.209527409463,  1.376639031141,   0.171148165735,  1.444575397049,   0.108707924770,  1.506768323129,   0.020127686627,  1.551362421474,  -0.091153182137,  1.569370995538,  -0.215047227411,  1.560424151713,  -0.337898013151,  1.532711770969,  -0.451436541138,  1.493833226606,  -0.556739764406,  1.444080972825,  -0.657282267561,  1.380428063934,  -0.751523963797,  1.302953421335,  -0.834409030933,  1.214788238981,  -0.901731016887,  1.120295356189,  -0.950077453420,  1.026803418932,  -0.977079829188,  0.943968598440,  -0.985898749723,  0.877073899952,  -0.986324974730,  0.823173744579,  -0.987936223756,  0.775975252212,  -0.994508047495,  0.730895365121,  -1.006511637281,  0.683390067703,  -1.024040960522,  0.627793779951,  -1.043859536077,  0.562404094930,  -1.058141397268,  0.492520905938,  -1.060678884233,  0.424982138436,  -1.051843687602,  0.362629684531,  -1.035021165926,  0.306329983059,  -1.012133367808,  0.257718794996,  -0.985507850604,  0.216198716164,  -0.959496392303,  0.177193268981,  -0.936016042798,  0.137387178142,  -0.911713402413,  0.098770615790,  -0.882919122723,  0.064715428400,  -0.850243630392,  0.035764366058,  -0.815707665250,  0.012090170646,  -0.779548222349, -0.004281757853,  -0.743150020629, -0.013425289420,  -0.710978371255, -0.020008778078,  -0.685765739387, -0.028368585525,  -0.665040358335, -0.038382054478,  -0.645392397250, -0.048857903059,  -0.626474004457, -0.060786627243,  -0.608016319031, -0.074025512918,  -0.587339987058, -0.085033463012,  -0.563440504910, -0.091598746808,  -0.539656092166, -0.096189584286,  -0.518807855378, -0.101453337718,  -0.499342853231, -0.106278515034,  -0.479295186023, -0.109374126677,  -0.459931398199, -0.112487434397,  -0.442224911470, -0.116643030342,  -0.423954057993, -0.119313160596,  -0.403819331572, -0.118829764720,  -0.384432677887, -0.117656579109,  -0.367785672949, -0.117931768234,  -0.351706262275, -0.117772724230,  -0.334103459491, -0.115269913622,  -0.316640044420, -0.111972214916,  -0.300911768467, -0.109065800672,  -0.285231490557, -0.104370347142,  -0.268646959290, -0.096662052789,  -0.253921538059, -0.088852865692,  -0.242968809718, -0.083397219028,  -0.233365810723, -0.078588399014,  -0.222742701028, -0.072659761789,  -0.212463703605, -0.067220352981,  -0.203685432111, -0.063218948466,  -0.194211630396, -0.057924719201,  -0.182819138657, -0.049541315756,  -0.172402049189, -0.040628113841,  -0.165259476641, -0.033518392012,  -0.159449114178, -0.026651128280,  -0.153144193168, -0.018804377072,  -0.148134790073, -0.012401441749,  -0.145515474614, -0.008984348351,  -0.142432758357, -0.005830648217,  -0.136791419431, -0.000678037192,  -0.130845577289,  0.004555257572,  -0.126606101861,  0.008202864860,  -0.122146990609,  0.012406734448,  -0.115972786447,  0.018683056818,  -0.110439043543,  0.024549656290,  -0.107174442919,  0.028237557446,  -0.103652864209,  0.032232680843,  -0.097966626056,  0.038526075141,  -0.092474267839,  0.044922271560,  -0.089128345095,  0.049638779906,  -0.085823136097,  0.054861423023,  -0.080987143157,  0.062065781447,  -0.077050297559,  0.068557577062,  -0.075619094196,  0.072421611801,  -0.073918888491,  0.076232978278,  -0.069765915122,  0.082175781343,  -0.065388218318,  0.088233622039,  -0.062676706425,  0.092875103241,  -0.059501322099,  0.098590517306,  -0.054469392141,  0.106953562256,  -0.050408081369,  0.115047939076,  -0.049248216991,  0.120646375858,  -0.048265760792,  0.126126088865,  -0.045173764458,  0.133540639649,  -0.042058048065,  0.140814356226,  -0.040555552681,  0.146612741449,  -0.038231445756,  0.153870298502,  -0.033638032548,  0.164524351444,  -0.029909641215,  0.175741550791,  -0.029401770121,  0.185223780968,  -0.029758904436,  0.195177022083,  -0.029095222248,  0.207207147586,  -0.029881579220,  0.218545905552,  -0.033809104487,  0.227297805442,  -0.038073202433,  0.236174290307,  -0.040736661176,  0.247055555423,  -0.044520200934,  0.257152090780,  -0.051323947253,  0.264525896880,  -0.058359867235,  0.272002033970,  -0.063738209926,  0.281528441631,  -0.070478658376,  0.290025447022,  -0.080905112930,  0.294824544739,  -0.092422644692,  0.297762581490,  -0.102743817536,  0.300003634777,  -0.113637242792,  0.298652176370,  -0.125458620738,  0.292784980936,  -0.133826762871,  0.287169171699,  -0.136150515104,  0.285680258969,  -0.135998350103,  0.286479452641,  -0.136970532132,  0.287522572335,  -0.137971460246,  0.290712977868,  -0.138440906767,  0.296351629127,  -0.141906953139,  0.299729492766,  -0.149728651530,  0.297980280085,  -0.157251336011,  0.294639166945,  -0.160742924761,  0.293148753471,  -0.162461082286,  0.291791782704,  -0.164786461485,  0.289165486441,  -0.165609674375,  0.288202203872,  -0.163870549408,  0.290172196474,  -0.163190245755,  0.291053669374,  -0.165275432198,  0.288587083557,  -0.165928027474,  0.286806313705,  -0.162223834236,  0.289114078758,  -0.157500547763,  0.293173460800,  -0.154923631113,  0.296922987111,  -0.152698878463,  0.302762639986,  -0.150072363978,  0.311042242681,  -0.151033005509,  0.316329200640,  -0.157003708348,  0.315302516583,  -0.162486360834,  0.311972571465,  -0.162922478234,  0.310464029941,  -0.160460099607,  0.309381041129,  -0.157548391210,  0.307795055473,  -0.152013146120,  0.309363139664,  -0.143309994586,  0.315289208999,  -0.136262796545,  0.320314847880,  -0.133198457988,  0.320976605057,  -0.129208459019,  0.321066441666,  -0.120184983503,  0.324214467539,  -0.108557210953,  0.328456534795,  -0.096428679387,  0.333006418091,  -0.080776358840,  0.342555004928,  -0.060667596419,  0.359365582864,  -0.041530047933,  0.378558669226,  -0.026752646339,  0.396532131314,  -0.012368668756,  0.416624049535,   0.004926084181,  0.441580363193,   0.022261802076,  0.468604514332,   0.037978396186,  0.497166116592,   0.055998275933,  0.533261132474,   0.077163558507,  0.579972612810,   0.094386833168,  0.631582371529,   0.102216107756,  0.682402630134,   0.103545371363,  0.733432913408,   0.101969572249,  0.785518166478,   0.096198820977,  0.835272826625,   0.087196552688,  0.883662129129,   0.081293135526,  0.939437463729,   0.079759348257,  1.007559263714,   0.073826172638,  1.082330642008,   0.055998625789,  1.157197441341,   0.027997101739,  1.232276173479,  -0.007239430755,  1.307297143422,  -0.051401168951,  1.377739929634,  -0.103177915478,  1.444345744389,  -0.155553098750,  1.516164179385,  -0.207601437763,  1.597183389469,  -0.269261470786,  1.679275855419,  -0.347855764595,  1.754321127701,  -0.439312419883,  1.823323605789,  -0.538191573274,  1.888154347207,  -0.645612448683,  1.945797897156,  -0.761554187106,  1.997056154372,  -0.881333076665,  2.048722915519,  -1.006654011900,  2.099537417884,  -1.148022058573,  2.135678721775,  -1.308119106911,  2.148309446080,  -1.473773474893,  2.145229152284,  -1.631860821681,  2.138981767761,  -1.782697672348,  2.135230639382,  -1.932713262826,  2.137886747709,  -2.087990601654,  2.149546762532,  -2.261884782287,  2.156955769333,  -2.472560692213,  2.130372957324,  -2.720592586408,  2.049790329953,  -2.979882100798,  1.923344428597,  -3.220435538762,  1.774110869842,  -3.431164203144,  1.621253953162,  -3.617069548789,  1.478072832869,  -3.791134126425,  1.348499710451,  -3.976733090210,  1.213006757679,  -4.198495152707,  1.033819369880,  -4.455450256756,  0.788618744533,  -4.714593026045,  0.490244100382,  -4.941777217710,  0.166957605501,  -5.129353823071, -0.163363649092,  -5.290494886789, -0.497297917298,  -5.445081663749, -0.848651761469,  -5.616424366940, -1.258656535589,  -5.814963719916, -1.778585751347,  -6.006582101960, -2.419697561192,  -6.114781959340, -3.129838139269,  -6.074089601851, -3.830918181727,  -5.875552685960, -4.469862984101,  -5.556966040009, -5.033600818868,  -5.166838516612, -5.540954602186,  -4.740096347793, -6.028534318437,  -4.277965897526, -6.513398195543,  -3.736484270120, -6.949453772897,  -3.063191767603, -7.244115490238,  -2.267850420073, -7.339281621650,  -1.439583205662, -7.262443525980,  -0.679416717408, -7.092238387934,  -0.031765102951, -6.899098454671,   0.517748666497, -6.721889123996,   1.014656590017, -6.557306571661,   1.517438316344, -6.349332205352,   2.060575374686, -6.029128304647,   2.604916582224, -5.597449853722,   3.056293973379, -5.142508180185,   3.360572427766, -4.758665128584,   3.556894848621, -4.477551010769,   3.730847030509, -4.278522234132,   3.961729902501, -4.097974647859,   4.320025078705, -3.804489604254,   4.829815850855, -3.254530112056,   5.381612714692, -2.447367279329,   5.756796529916, -1.574105068528,   5.817375617317, -0.849639150814,   5.635984816195, -0.338716817669,   5.397932836110,  0.024354500391,   5.249225050185,  0.364317164913,   5.284776033801,  0.909040907043,   5.529541902225,  1.945217922037,   5.755127694426,  3.475627754073,   5.423334845038,  4.934469413661,   4.104411643239,  5.509691496638,   2.035327737699,  4.885444745982,   0.070975816715,  3.546353909096,  -1.044048723537,  2.270235477010,  -1.259363038050,  1.451855180863,  -1.036331537755,  1.003495628411,  -0.773172166056,  0.726728444098,  -0.564295673992,  0.552141746780,  -0.383650433403,  0.462823672269,  -0.249906489654,  0.403139562698,  -0.178624400750,  0.334437047567,  -0.130032362840,  0.277299281157,  -0.073240739827,  0.249357957213,  -0.027939895199,  0.226271094671,  -0.009425417726,  0.190822255369,   0.005194730174,  0.162016021754,   0.031205839440,  0.151644864638,   0.050258724656,  0.140437683653,   0.051394363097,  0.116748240425,   0.052988730209,  0.096847677820,   0.066153009597,  0.090289011290,   0.075833197130,  0.082327509038,   0.073551312394,  0.064988962930,   0.073639279707,  0.052057652625,   0.083516059021,  0.050466345102,   0.089699260487,  0.047067917958,   0.085361878335,  0.035110747711,   0.082922388956,  0.026204361587,   0.088659682338,  0.025969703211,   0.091402564056,  0.023401386570,   0.085958384789,  0.013515336929,   0.083111654784,  0.006798584875,   0.087641597032,  0.007837964978,   0.089308758453,  0.006657791873,   0.083610810622, -0.001166259531,   0.080125333379, -0.006499666700,   0.083047341047, -0.005489856091,   0.083553332310, -0.006807093262,   0.078090490252, -0.013817917006,   0.075239123524, -0.018039727786,   0.078278582688, -0.016202984320,   0.078879928449, -0.016373638543,   0.073768901632, -0.021729110898,   0.070664381306, -0.024844153212,   0.072502604225, -0.023057516480,   0.071989753059, -0.023645445467,   0.066628726079, -0.029074174206,   0.063655436238, -0.032243679618,   0.065547696681, -0.030708016128,   0.065406365448, -0.031165878195,   0.060878678845, -0.035845337290,   0.058503585195, -0.038324838042,   0.060391612731, -0.036585857327,   0.060221204484, -0.036846711949,   0.056052796334, -0.040964153903,   0.054007595747, -0.042889855644,   0.055869991321, -0.040871892914,   0.055658007998, -0.040786596110,   0.051621747086, -0.044356913435,   0.049480084681, -0.046025006549,   0.050863849256, -0.044294321310,   0.050319298824, -0.044583556809,   0.046464236251, -0.048223252415,   0.044709951010, -0.049836919888,   0.046392236354, -0.048069572437,   0.046226249146, -0.048070310829,   0.042872608880, -0.051107227504,   0.041345371931, -0.052257987351,   0.042807479928, -0.050454633616,   0.042377412524, -0.050561967941,   0.039043194548, -0.053573305405,   0.037644688794, -0.054699059752,   0.039175647990, -0.052945598965,   0.038925613587, -0.052921322892,   0.035920797767, -0.055545778264,   0.034663885848, -0.056396526912,   0.035989434858, -0.054726783177,   0.035510737866, -0.054921917016,   0.032535597087, -0.057669100414,   0.031445743961, -0.058630825549,   0.032953945034, -0.057082179855,   0.032817470675, -0.057150542367,   0.030349568214, -0.059435930887,   0.029591037839, -0.059926883567,   0.031048154693, -0.058170450068,   0.030698217245, -0.058194329635,   0.028086634535, -0.060482585027,   0.027201503506, -0.061133839779,   0.028539533793, -0.059684541306,   0.028301580841, -0.059857464754,   0.026097141499, -0.061965808300,   0.025619414678, -0.062314702304,   0.027137912096, -0.060635265163,   0.026963677885, -0.060574453918,   0.024810361303, -0.062419878698,   0.024250569921, -0.062679549923,   0.025542110826, -0.061147159904,   0.025256806642, -0.061210950146,   0.023242812830, -0.062980837149,   0.022866615136, -0.063106717237,   0.024217051226, -0.061501793162,   0.023970789144, -0.061441712040,   0.022037259378, -0.063009550031,   0.021626458365, -0.063064542689,   0.022793916544, -0.061594601018,   0.022456447042, -0.061644861540,   0.020648612962, -0.063145894124,   0.020394736485, -0.063090024103,   0.021612805774, -0.061552366661,   0.021326476042, -0.061452664439,   0.019602759957, -0.062712886240,   0.019288571175, -0.062553499365,   0.020271653025, -0.061129816678,   0.019819874730, -0.061143880734,   0.018123074388, -0.062386960943,   0.017858592863, -0.062211056847,   0.018812343862, -0.060827428530,   0.018376441627, -0.060789695526,   0.016759304311, -0.061881618109,   0.016449345453, -0.061678690193,   0.017206224961, -0.060454515563,   0.016654773074, -0.060551485991,   0.015095423795, -0.061659188132,   0.014842880157, -0.061499732135,   0.015590450170, -0.060374458902,   0.015111459452, -0.060450021270,   0.013710434981, -0.061408296388,   0.013495106956, -0.061192412106,   0.014128688845, -0.060155114881,   0.013596246580, -0.060273746764,   0.012258166664, -0.061189156798,   0.012051564765, -0.061012125190,   0.012622566937, -0.060094220810,   0.012136942838, -0.060213546770,   0.010950684398, -0.061005598508,   0.010790983618, -0.060787602554,   0.011287081294, -0.059930256663,   0.010798274531, -0.060029776816,   0.009689975810, -0.060727700437,   0.009510159036, -0.060526649770,   0.009906746442, -0.059773366421,   0.009433835884, -0.059862514340,   0.008434116842, -0.060454435023,   0.008252986135, -0.060249612049,   0.008554858552, -0.059575678118,   0.008083783915, -0.059644101402,   0.007154928608, -0.060154239018,   0.006932149174, -0.059992087663,   0.007128390586, -0.059432846174,   0.006679080697, -0.059493937628,   0.005847863429, -0.059924887841,   0.005607346842, -0.059796717898,   0.005722945562, -0.059325470309,   0.005309551026, -0.059351264628,   0.004563092184, -0.059698481695,   0.004277882068, -0.059618166730,   0.004298241734, -0.059245766357,   0.003919020091, -0.059244241669,   0.003254017406, -0.059523406587,   0.002924862702, -0.059502839905,   0.002866690423, -0.059221018693,   0.002540370310, -0.059176006778,   0.001957449668, -0.059383604303,   0.001575712851, -0.059425094714,   0.001439062206, -0.059227222578,   0.001166688584, -0.059133611961,   0.000654574764, -0.059280115145,   0.000209567424};
    
    float32_t impL30_0[2048] = { -0.021160934089,   0.000000000000, -0.021231498890,   0.001987614413, -0.021770838905,   0.003667190394, -0.023160022584,   0.005245421078, -0.025596892143,   0.006680301249, -0.030523015769,   0.007790825115, -0.040695861482,   0.011069578935, -0.055714534374,   0.023269882364, -0.067296177186,   0.050229135798, -0.062842870948,   0.088319552443, -0.036524589414,   0.123835257646,  0.004861260587,   0.143595896117,  0.049021751678,   0.144657928148,  0.088763452210,   0.131703743276,  0.122620889458,   0.107978874724,  0.147718370362,   0.073505413733,  0.157738643071,   0.031410292933,  0.149193571247,  -0.009062046384,  0.126422948361,  -0.037916608059,  0.098910279094,  -0.050967114784,  0.075220801983,  -0.050726319201,  0.059608479968,  -0.043039034361,  0.052021700042,  -0.033516629830,  0.049958432342,  -0.025343721735,  0.051017378991,  -0.019081612105,  0.054240814999,  -0.014417149415,  0.059209177669,  -0.011579505206,  0.065014584045,  -0.010719703244,  0.071037200477,  -0.011131689429,  0.077778329648,  -0.012212706033,  0.085945719556,  -0.014441691176,  0.095520341117,  -0.018692365391,  0.106298321048,  -0.025650076709,  0.117983596353,  -0.036576913790,  0.128772289203,  -0.053167489233,  0.135122672051,  -0.075384522567,  0.134188240616,  -0.100282771867,  0.125963875773,  -0.123849647991,  0.112692469392,  -0.143439507824,  0.097126721296,  -0.158369580478,  0.081492428216,  -0.169508062839,  0.066662281649,  -0.178719343506,  0.051681642564,  -0.187439848657,  0.035050502480,  -0.195190277330,  0.016813568376,  -0.200222026632, -0.001306164687,  -0.201658963185, -0.017597139217,  -0.200232756998, -0.031257469372,  -0.197346954017, -0.042162863093,  -0.194559722480, -0.051098557166,  -0.193531774425, -0.059980724011,  -0.195093918729, -0.070659548743,  -0.198421957192, -0.083592645106,  -0.201988899350, -0.098310502982,  -0.204980073959, -0.114508989850,  -0.207189049264, -0.131968085983,  -0.208422731860, -0.150359184237,  -0.208888877764, -0.170111805357,  -0.209259572432, -0.192669922560,  -0.209373549045, -0.219029070231,  -0.207568476297, -0.248686200709,  -0.201944485980, -0.280462309803,  -0.191507498334, -0.313374095131,  -0.175745757467, -0.346346213973,  -0.154232876102, -0.378264653037,  -0.127054397709, -0.408706749489,  -0.094435266978, -0.437396150944,  -0.055600689867, -0.462571190982,  -0.009270709745, -0.481086770135,   0.044288138698, -0.490511062550,   0.102693302402, -0.490288248305,   0.163031735661, -0.481032692446,   0.223121565961, -0.463788530970,   0.281603628033, -0.439589843926,   0.338113657817, -0.408327397542,   0.393042768314, -0.368298662342,   0.445665083728, -0.318344438824,   0.492625341746, -0.260498234321,   0.529591218559, -0.199610178209,   0.554526758022, -0.140552886855,   0.568872645362, -0.086162408018,   0.576354157401, -0.036526002845,   0.581462739734,  0.011304217062,   0.587748595366,  0.062233575757,   0.595554085528,  0.120007248288,   0.601204631593,  0.184505644912,   0.599248170846,  0.251908050879,   0.585770731754,  0.316847800144,   0.560191910714,  0.374793492150,   0.525419731808,  0.424323084842,   0.486684128700,  0.468306631005,   0.448593412507,  0.512162791576,   0.411868971771,  0.560111849559,   0.372764944977,  0.612722255398,   0.325304525790,  0.666621620261,   0.263717547376,  0.714829230277,   0.184412961315,  0.748159503230,   0.088436213540,  0.759079749277,  -0.017371202949,  0.745560428148,  -0.123177753331,  0.710885082764,  -0.220877571418,  0.660276448454,  -0.306044277932,  0.598625989177,  -0.376741902059,  0.530321666002,  -0.432405956784,  0.459101079242,  -0.473603972087,  0.387829415408,  -0.501347829018,  0.319280628329,  -0.516685437021,  0.256508552876,  -0.521759748186,  0.201317970855,  -0.520470620244,  0.152884204869,  -0.516881196832,  0.108669125663,  -0.513322618618,  0.065965808137,  -0.510377995610,  0.022204125758,  -0.507320228168, -0.024490494823,  -0.501661020374, -0.073552714795,  -0.489756643855, -0.121611079389,  -0.469399656072, -0.164849006369,  -0.441440239000, -0.201244818476,  -0.408546229358, -0.230550294819,  -0.373389864157, -0.253626385151,  -0.338118364667, -0.272262988284,  -0.303864853779, -0.288108995171,  -0.270010669072, -0.300998156215,  -0.235123021279, -0.309264123758,  -0.199168241036, -0.311934802606,  -0.163951222333, -0.309711164786,  -0.131446001473, -0.304097453205,  -0.102764215027, -0.296894230662,  -0.078338316019, -0.290205784582,  -0.057543333798, -0.285301380123,  -0.038215884828, -0.281297675660,  -0.017964591467, -0.275956229115,   0.003877017930, -0.267617906649,   0.026222938242, -0.255779303318,   0.047481291088, -0.240775639605,   0.066007852684, -0.224066249753,   0.080392828573, -0.207997347913,   0.090656250762, -0.194047109900,   0.098607812299, -0.181757550730,   0.106142051315, -0.169921039933,   0.113809191046, -0.157834122083,   0.121422406429, -0.144947935443,   0.128762853041, -0.130725394770,   0.135042159033, -0.115646317487,   0.139032708223, -0.101166618532,   0.140519609377, -0.088068922202,   0.140560558757, -0.075927552564,   0.139928252943, -0.064409532954,   0.138490828386, -0.053766576911,   0.136264337212, -0.043910043824,   0.133651977687, -0.034438600726,   0.130505578313, -0.025690390190,   0.126357465268, -0.018404591332,   0.121627320126, -0.012380675024,   0.117279204425, -0.006752275447,   0.113427287464, -0.001319997849,   0.109533287634,  0.003643121256,   0.105584430758,  0.008400087700,   0.101783937912,  0.013236315487,   0.097637062814,  0.017525936848,   0.092671691006,  0.020576978080,   0.087469011580,  0.022751941305,   0.082804632793,  0.024665330064,   0.078518399725,  0.026142209622,   0.074266144807,  0.026984552890,   0.070413887276,  0.027724194974,   0.067180500331,  0.028632907600,   0.063971993365,  0.029081200280,   0.060492704046,  0.028719141434,   0.057396826129,  0.028128127617,   0.055098684941,  0.027658629259,   0.053167837667,  0.026927082376,   0.051470926612,  0.025979474844,   0.050545821250,  0.025554671852,   0.050373345699,  0.025784079268,   0.050178370768,  0.026023172685,   0.049766565197,  0.026175997741,   0.049654835339,  0.026748159674,   0.049780135117,  0.027569974362,   0.049555721355,  0.027956177506,   0.049164808691,  0.028020221241,   0.049330442637,  0.028393417963,   0.050012897205,  0.028968442217,   0.050761989518,  0.029363860723,   0.051933510593,  0.030147774533,   0.054104306294,  0.032185496898,   0.056805531477,  0.035363181813,   0.059165015775,  0.039196911656,   0.061092805475,  0.043836418841,   0.062629888386,  0.049240896667,   0.063119570233,  0.054405531840,   0.062284340543,  0.058640121449,   0.061094427354,  0.062593809572,   0.060448610828,  0.067055167486,   0.060079127699,  0.071965003412,   0.059589987281,  0.077396272902,   0.059191193934,  0.084020743215,   0.058609264770,  0.091797689030,   0.056776531759,  0.099670991969,   0.053356447202,  0.107206792414,   0.049132330683,  0.115077134644,   0.044385601517,  0.123563616534,   0.038377280177,  0.132120427375,   0.030650900939,  0.140497353715,   0.021228868899,  0.148560465260,   0.009529158125,  0.155013738949,  -0.005086384447,  0.158107423598,  -0.021659086925,  0.157624308616,  -0.038194664872,  0.154651196764,  -0.053708899313,  0.149796215284,  -0.068251862975,  0.143187479604,  -0.081535721660,  0.135527474590,  -0.093216241856,  0.127438035421,  -0.103839703823,  0.118454330250,  -0.113879559938,  0.108182467099,  -0.122605356769,  0.097562857377,  -0.129337293074,  0.087610780080,  -0.134826706168,  0.077979700347,  -0.140093491584,  0.067961699840,  -0.145071476471,  0.057582010131,  -0.149495002830,  0.046644832416,  -0.153625779252,  0.034310596522,  -0.157005604240,  0.020751814413,  -0.158108289174,  0.007686277185,  -0.156304270974, -0.003622043012,  -0.152686961760, -0.013351112722,  -0.148310176245, -0.021677781888,  -0.143320410816, -0.028262076894,  -0.138226986521, -0.033587607221,  -0.134033234647, -0.038854875197,  -0.130671344216, -0.044205876953,  -0.127167679462, -0.048863219734,  -0.123510850949, -0.052986012067,  -0.120519121059, -0.057492521145,  -0.118038185423, -0.062322284175,  -0.115191465703, -0.066777929646,  -0.112030467558, -0.071062693350,  -0.109052648086, -0.075582759668,  -0.105753493740, -0.079495352605,  -0.101579023047, -0.081856878418,  -0.097492653302, -0.083336634258,  -0.094778343006, -0.085109303655,  -0.093280854852, -0.087231937597,  -0.092405083464, -0.089662781671,  -0.092464369444, -0.093343891670,  -0.093455090152, -0.098658164227,  -0.094088865645, -0.104390271337,  -0.093606656397, -0.109634328179,  -0.092981879687, -0.115093365545,  -0.093117783461, -0.121475741681,  -0.093647817448, -0.128603698611,  -0.094418789881, -0.136987170742,  -0.095991668085, -0.148043826130,  -0.097772768063, -0.161886141135,  -0.097839696133, -0.176995404954,  -0.095350378202, -0.192579819315,  -0.091051042884, -0.209119665893,  -0.085163806315, -0.226550992378,  -0.077030982317, -0.244302524819,  -0.066734496863, -0.262927777602,  -0.054563437929, -0.283134653541,  -0.039116823151, -0.303446372684,  -0.018470035259, -0.321218556323,   0.007082645945, -0.335486523050,   0.035641120585, -0.346733793068,   0.066226018217, -0.354992171752,   0.098605807291, -0.360407426288,   0.132022720208, -0.364199261924,   0.166479113809, -0.366628454671,   0.203837127296, -0.365402366442,   0.245331883980, -0.358154226791,   0.289414572201, -0.344906603766,   0.333834043577, -0.326511444373,   0.377969559042, -0.302839084850,   0.421617514549, -0.273993498570,   0.463884295942, -0.240767903296,   0.504760421332, -0.202454271868,   0.545153551660, -0.156892469593,   0.583982117622, -0.103980677108,   0.617931751029, -0.046490293897,   0.645222345970,  0.013450799148,   0.667017972888,  0.076040538683,   0.684633584242,  0.141929885425,   0.698190745229,  0.211886094834,   0.707828222750,  0.288047944330,   0.712648177262,  0.371689573728,   0.708541378231,  0.459569522925,   0.690777349883,  0.545797821160,   0.658960917949,  0.627185113269,   0.616615973812,  0.704213465531,   0.566668473582,  0.778275892808,   0.509965555520,  0.851003598128,   0.446122881054,  0.923960793343,   0.372209789092,  0.994900052505,   0.282762804956,  1.055984610629,   0.175290343960,  1.099425680406,   0.054567374950,  1.123696656999,  -0.071322437402,  1.132243704943,  -0.197376670768,  1.128942856568,  -0.322615781758,  1.116625721855,  -0.448647976553,  1.095567290505,  -0.579819851240,  1.060135673539,  -0.720339202513,  1.000715656826,  -0.867582958639,  0.912240056937,  -1.011174463950,  0.798357440330,  -1.140905569437,  0.666206912326,  -1.252802161987,  0.520774603988,  -1.347265680268,  0.364279282108,  -1.425960465294,  0.195645743005,  -1.490592151958,  0.010203410151,  -1.538859927173, -0.194082539115,  -1.560842630287, -0.408947774816,  -1.545073304394, -0.619213391310,  -1.489279524688, -0.814033622538,  -1.401094359665, -0.991065615131,  -1.289270493115, -1.152005892507,  -1.158430381190, -1.299179965838,  -1.009190034056, -1.432931652950,  -0.837393559006, -1.545576207298,  -0.636795042532, -1.621090882428,  -0.409777225367, -1.647903963967,  -0.172996451225, -1.630036312072,   0.053568988786, -1.581275283001,   0.260579892747, -1.512751951106,   0.449302807797, -1.429568105439,   0.624397754720, -1.331603947024,   0.791136047804, -1.212114168075,   0.951215473896, -1.063916662985,   1.095200396781, -0.893152447529,   1.207247060596, -0.719125322152,   1.283167274322, -0.555676786101,   1.336542894925, -0.399820956419,   1.384315833647, -0.238210763276,   1.434765016340, -0.052653463887,   1.486177158328,  0.176547272134,   1.519522259101,  0.449438414053,   1.493809821038,  0.724616400902,   1.374169619732,  0.941635780262,   1.173003460661,  1.073756838103,   0.944886404026,  1.143505102161,   0.737028084007,  1.190671199143,   0.561437742721,  1.249889519292,   0.403758194287,  1.344698721715,   0.220598194793,  1.448220261524,  -0.062301643118,  1.443765492022,  -0.480513824597,  1.196004442537,  -0.931272220140,  0.709847439649,  -1.203333164749,  0.178408049176,  -1.162651531720, -0.176630202652,  -0.885350545909, -0.292534351220,  -0.570606623654, -0.265655117655,  -0.351629693368, -0.207411444237,  -0.230906854547, -0.157341699405,  -0.161724416169, -0.114895597986,  -0.121177590492, -0.084254227248,  -0.101791410011, -0.068339087431,  -0.089624783059, -0.057764299985,  -0.075641295588, -0.045835697900,  -0.064235235911, -0.036718992252,  -0.058367287554, -0.032296841026,  -0.052652334123, -0.027255034830,  -0.045186888568, -0.020314665243,  -0.040710896405, -0.016225332156,  -0.039752004043, -0.015389504459,  -0.037430790402, -0.013316932724,  -0.033250522809, -0.009781894503,  -0.031069914915, -0.008261313136,  -0.030604528835, -0.008081174275,  -0.028528561979, -0.006058307143,  -0.025762097298, -0.003326392814,  -0.025348762061, -0.002845063963,  -0.026023672775, -0.003356541096,  -0.024958979722, -0.002310461797,  -0.023383300741, -0.001018762704,  -0.023504559302, -0.001416533514,  -0.023837543191, -0.001852078150,  -0.022626700083, -0.000697592900,  -0.021647185892,  0.000195819772,  -0.022438295375, -0.000642430433,  -0.023153079392, -0.001453248306,  -0.022442415138, -0.001112225489,  -0.021976142471, -0.001291552374,  -0.022604982645, -0.002626215560,  -0.022565884474, -0.003259603529,  -0.021336023669, -0.002718750615,  -0.020797614698, -0.002837758145,  -0.021371947126, -0.003949345747,  -0.021313608244, -0.004400849972,  -0.020419201351, -0.004143393006,  -0.020271569136, -0.004723361609,  -0.020766911823, -0.005910681272,  -0.020372077436, -0.006183040906,  -0.019408011248, -0.005921730780,  -0.019370729158, -0.006569049891,  -0.019837194680, -0.007659700909,  -0.019450835264, -0.007942925894,  -0.018741118164, -0.008039484743,  -0.018860827468, -0.009033551846,  -0.019091373548, -0.010129929666,  -0.018392749958, -0.010330456318,  -0.017606083044, -0.010501007364,  -0.017674505828, -0.011513850404,  -0.017717143243, -0.012475103137,  -0.016947958704, -0.012697271489,  -0.016282232874, -0.013133661803,  -0.016310685563, -0.014298738883,  -0.016033772660, -0.015160968721,  -0.014989999304, -0.015306758094,  -0.014215320180, -0.015757685381,  -0.014061770399, -0.016789084604,  -0.013523780264, -0.017405114809,  -0.012408076757, -0.017492279167,  -0.011706284314, -0.018041690090,  -0.011459277332, -0.019034167959,  -0.010677627106, -0.019493438394,  -0.009428561064, -0.019534134965,  -0.008658256840, -0.020063973754,  -0.008194480119, -0.020845949745,  -0.007163059460, -0.021031840624,  -0.005861383054, -0.020969345681,  -0.005112549967, -0.021452237980,  -0.004527121209, -0.022056417017,  -0.003347186087, -0.022070304978,  -0.002028153024, -0.021987273607,  -0.001226468846, -0.022414308773,  -0.000400038898, -0.022764993303,   0.001026324598, -0.022489977352,   0.002445734151, -0.022197814495,   0.003353391365, -0.022326422991,   0.004367155216, -0.022228626060,   0.005859450229, -0.021577785735,   0.007150668524, -0.021069591341,   0.007948933826, -0.020955828885,   0.008951914073, -0.020539835011,   0.010365240077, -0.019662265323,   0.011496242273, -0.019005902155,   0.012235820717, -0.018621996315,   0.013259619331, -0.017831566439,   0.014564961785, -0.016674647964,   0.015470061081, -0.015819191340,   0.016043702081, -0.015158853951,   0.016927376415, -0.014074499178,   0.017968813232, -0.012758034850,   0.018565477495, -0.011788345090,   0.018940952884, -0.010905369578,   0.019642675750, -0.009586549437,   0.020368406065, -0.008166069269,   0.020610990343, -0.007128912632,   0.020720353783, -0.006110608526,   0.021143404789, -0.004705950712,   0.021490742970, -0.003331013366,   0.021390274011, -0.002327662973,   0.021275765370, -0.001248643691,   0.021453350220,  0.000176395450,   0.021459651819,  0.001471912134,   0.021053702220,  0.002427580862,   0.020712373492,  0.003519216228,   0.020606008756,  0.004876280225,   0.020252441101,  0.006010444925,   0.019552743548,  0.006849630741,   0.018989039483,  0.007863241844,   0.018597033789,  0.009045573712,   0.017912015924,  0.009930886381,   0.016970773394,  0.010576681291,   0.016230635987,  0.011420466326,   0.015609525716,  0.012348336666,   0.014688374629,  0.012954365617,   0.013609216805,  0.013401833324,   0.012760655234,  0.014055964821,   0.011955663441,  0.014702247486,   0.010847910567,  0.015007020242,   0.009671153970,  0.015211972005,   0.008739471242,  0.015599601386,   0.007800776552,  0.015897457734,   0.006602744863,  0.015872565848,   0.005436315816,  0.015822340769,   0.004515991293,  0.015933624802,   0.003541256450,  0.015896254437,   0.002354155550,  0.015572470581,   0.001273413029,  0.015278293389,   0.000417597095,  0.015102984283,  -0.000523173508,  0.014733575482,  -0.001606068589,  0.014133781608,  -0.002511747211,  0.013617969811,  -0.003217823015,  0.013186800612,  -0.004024972494,  0.012547302646,  -0.004905448448,  0.011748069286,  -0.005567915088,  0.011071107742,  -0.006073479410,  0.010437345125,  -0.006685919463,  0.009595931774,  -0.007300715153,  0.008669867570,  -0.007671318914,  0.007895675808,  -0.007927499857,  0.007134498819,  -0.008283844923,  0.006192226588,  -0.008582395883,  0.005243655121,  -0.008639129620,  0.004461989341,  -0.008633778243,  0.003664164724,  -0.008717884279,  0.002721496718,  -0.008695914448,  0.001842238355,  -0.008451780113,  0.001132082353,  -0.008194595909,  0.000385678157,  -0.008009044401, -0.000456206790,  -0.007684572784, -0.001173676356,  -0.007177699498, -0.001732797191,  -0.006707494530, -0.002344025025,  -0.006290194960, -0.002999075214,  -0.005717316892, -0.003485017334,  -0.005014056405, -0.003835561363,  -0.004389862929, -0.004247016958,  -0.003796574015, -0.004647995729,  -0.003046287160, -0.004850144302,  -0.002228130005, -0.004949467696,  -0.001525897488, -0.005113694039,  -0.000834187647};
    
    float32_t impR30_0[2048] = {  0.000942137485,   0.000000000000, -0.000541725066,  -0.000224487337, -0.002824381438,   0.001477812702, -0.003835821516,   0.002507284766, -0.006261752619,  -0.000044498909, -0.013907628900,  -0.004830226362, -0.027977205655,  -0.009177900272, -0.050020443342,  -0.011074042470, -0.082079612776,  -0.004627298749, -0.119119678574,   0.019618059425, -0.147440378664,   0.064119443050, -0.156263907140,   0.119122668119, -0.146220920792,   0.172577966146, -0.122533777461,   0.219661222468, -0.086755246428,   0.258242890916, -0.041051334798,   0.282445090210,  0.005939362134,   0.287940882241,  0.044927212934,   0.278642673454,  0.073548559339,   0.261721888670,  0.092813262776,   0.240357195535,  0.101265726438,   0.216675092562,  0.098635928303,   0.196320540810,  0.090251273732,   0.183550179685,  0.081434160541,   0.176046535759,  0.071521756938,   0.170305647151,  0.058648370538,   0.167792138598,  0.045571671522,   0.170485626603,  0.035098760642,   0.175368314403,  0.024556434566,   0.179258991964,  0.010675634610,   0.184577764109, -0.004510153235,   0.194666400641, -0.018136119631,   0.208032823217, -0.031987787362,   0.222895715168, -0.047582310316,   0.242624654028, -0.060288638605,   0.270504483535, -0.064327637584,   0.303132933868, -0.059745668293,   0.334490274100, -0.049451670331,   0.362356592849, -0.034189432664,   0.385740216474, -0.015939369670,   0.401209310446, -0.001248943940,   0.407926456574,  0.005156642038,   0.411931063125,  0.006198156016,   0.419533903665,  0.006714626745,   0.430427681227,  0.006536790410,   0.442261922306,  0.004466299292,   0.456881890978,  0.003846045647,   0.476187981581,  0.007928651795,   0.496723257376,  0.014192915847,   0.514592466414,  0.019187558522,   0.531435644121,  0.024546565844,   0.549782329254,  0.032378384423,   0.567145017676,  0.039346967673,   0.580762131770,  0.041461094379,   0.593741998422,  0.040439073919,   0.610501907813,  0.039519827962,   0.630476987464,  0.037560964996,   0.652144456182,  0.033317557040,   0.678536772846,  0.030932620622,   0.712449061915,  0.034767675256,   0.750526937297,  0.042883783865,   0.788379834241,  0.051662600939,   0.827520238271,  0.062718424256,   0.871437063080,  0.079520070745,   0.919232560296,  0.101939999549,   0.968983348262,  0.130390063869,   1.022388161994,  0.170458210013,   1.079250226676,  0.226200880481,   1.131644697907,  0.292315973036,   1.170605096102,  0.359199081277,   1.195524795102,  0.422284297702,   1.211575088150,  0.481248534164,   1.222270055796,  0.535261381389,   1.230365811202,  0.585880871809,   1.240760738539,  0.640021313914,   1.254860084256,  0.702352607599,   1.265665984342,  0.767591064229,   1.265524451265,  0.826444450888,   1.256065203576,  0.876005954832,   1.245179122281,  0.919265110948,   1.238361698984,  0.959608938436,   1.238600026231,  1.002680565442,   1.249103317028,  1.058649500716,   1.267831383438,  1.133726170848,   1.282666008111,  1.221016494026,   1.280077887936,  1.305898390051,   1.257645436840,  1.378490957173,   1.223766325881,  1.437067520920,   1.189135972710,  1.485182211231,   1.163701236329,  1.533206523011,   1.155921751030,  1.598769719564,   1.165380515082,  1.696555084025,   1.176900479074,  1.826641232819,   1.168053162932,  1.975437230768,   1.122283655877,  2.124313111779,   1.033561845726,  2.254444776867,   0.905324192741,  2.351163267722,   0.751295825571,  2.412634338532,   0.591444492262,  2.451326753894,   0.437996090988,  2.479768210003,   0.286709819176,  2.496427741567,   0.126952496494,  2.489522544752,  -0.042593117251,  2.450242386312,  -0.211926687760,  2.377808600175,  -0.367351148503,  2.278302564688,  -0.495212140234,  2.166422773766,  -0.584712939634,  2.063714277259,  -0.636479709077,  1.986143763746,  -0.666393874455,  1.933939048260,  -0.694774295316,  1.896836138152,  -0.733662714396,  1.864030740156,  -0.787056477403,  1.824512530776,  -0.855439323065,  1.766032582628,  -0.932053582317,  1.684094920312,  -1.000663525026,  1.589097186152,  -1.046916262413,  1.497130759024,  -1.070429823185,  1.416267635302,  -1.080550281385,  1.346534899359,  -1.085089060963,  1.286692948331,  -1.089373408229,  1.232576155245,  -1.099649980339,  1.173850966877,  -1.117386234424,  1.102357818795,  -1.133124705492,  1.022116430615,  -1.134350757283,  0.944650070095,  -1.117692358190,  0.877679982483,  -1.087968593441,  0.824306973181,  -1.050163825869,  0.787705865095,  -1.009860239881,  0.767533894448,  -0.976835974719,  0.754642405166,  -0.958852735177,  0.737472779928,  -0.953449787514,  0.712017956265,  -0.952170796412,  0.680223100467,  -0.949791058116,  0.643297378448,  -0.943686928471,  0.603741555730,  -0.929482993187,  0.569272493917,  -0.905746264383,  0.546099191417,  -0.879581251569,  0.530833424326,  -0.859786514577,  0.515694663403,  -0.847127330981,  0.498112384544,  -0.837429589493,  0.478797186184,  -0.829650023772,  0.455400336855,  -0.823554755304,  0.426314126591,  -0.814148768801,  0.396804760962,  -0.796959774462,  0.373140996291,  -0.775554600951,  0.353774882078,  -0.756174432223,  0.333565421744,  -0.738357712626,  0.312850012186,  -0.718070889775,  0.294868910325,  -0.695931263048,  0.278460696101,  -0.674503787891,  0.261433797454,  -0.651573709149,  0.247304192176,  -0.624395703976,  0.240385189029,  -0.597036529891,  0.237529244011,  -0.575381992355,  0.232543588430,  -0.558146736928,  0.225289408360,  -0.540365221144,  0.218896940970,  -0.521895893017,  0.212184115549,  -0.504662122098,  0.203102197582,  -0.485710710842,  0.195759096035,  -0.461616678614,  0.195407837244,  -0.436273458151,  0.199697823878,  -0.416014715937,  0.202794976797,  -0.400331542726,  0.204459256233,  -0.385149420047,  0.207109581685,  -0.371166132993,  0.208183780529,  -0.360538888415,  0.204248415679,  -0.349371212105,  0.199056804883,  -0.332449637345,  0.198794113315,  -0.312134417564,  0.202629052984,  -0.294172102872,  0.206181710848,  -0.278284370049,  0.210434749942,  -0.261255905421,  0.218496621661,  -0.245319115037,  0.227382937600,  -0.234447365930,  0.232118870303,  -0.225872443507,  0.234672963949,  -0.214237101497,  0.240079904088,  -0.200840465408,  0.247192240265,  -0.190121452703,  0.252003796859,  -0.180645547779,  0.256403629840,  -0.168499289183,  0.264533983567,  -0.155951608826,  0.273998938832,  -0.147568370749,  0.279840629361,  -0.141154185809,  0.283848396285,  -0.131630416923,  0.290889659475,  -0.120457930665,  0.299537449078,  -0.112156681990,  0.305484868948,  -0.105079289086,  0.310640622648,  -0.094907228259,  0.319455200327,  -0.083723323075,  0.329726915605,  -0.076160580852,  0.336529775820,  -0.069975886861,  0.341883379659,  -0.059895551895,  0.351117537670,  -0.047414038928,  0.363129216501,  -0.037368556953,  0.373747259377,  -0.028377292810,  0.385150868072,  -0.016341167247,  0.402137259628,  -0.003897242568,  0.422455755030,   0.003466974542,  0.440675940267,   0.007342429505,  0.458299652077,   0.012681933353,  0.480235862988,   0.017629831979,  0.504681683562,   0.016882213474,  0.526389064271,   0.011659306422,  0.546425342949,   0.006390351780,  0.568602504068,  -0.000882076930,  0.589819631819,  -0.014518822149,  0.604399737680,  -0.031230902365,  0.614765430117,  -0.044441489710,  0.627500119622,  -0.055499454698,  0.642020067551,  -0.070453769922,  0.653187671338,  -0.089176474812,  0.661364320182,  -0.107886778728,  0.669265153441,  -0.128493024875,  0.672678362732,  -0.154356679358,  0.665640187298,  -0.180202107078,  0.651866105673,  -0.197432050134,  0.640287554375,  -0.206661889516,  0.632346549956,  -0.214622130551,  0.624085150389,  -0.222308459789,  0.616723394028,  -0.227070723761,  0.613603530010,  -0.232390239005,  0.610204293336,  -0.243575838009,  0.599147688493,  -0.256721739470,  0.582449837830,  -0.263468568212,  0.567713137434,  -0.263895624429,  0.555437567364,  -0.263722563949,  0.541343036177,  -0.262394460801,  0.527501369490,  -0.255637001821,  0.519096092999,  -0.246247654649,  0.513417018422,  -0.240151069342,  0.504199209170,  -0.234806856863,  0.493880436549,  -0.223521185134,  0.489667520621,  -0.208185015649,  0.490673456759,  -0.195874612470,  0.490899913258,  -0.186249645065,  0.491363959870,  -0.174491791802,  0.496758176436,  -0.163080640052,  0.503588439574,  -0.157825231939,  0.504591907307,  -0.155429793514,  0.501942275968,  -0.147863615132,  0.503420745709,  -0.136095958816,  0.508687736542,  -0.126965644814,  0.512004940317,  -0.119950619006,  0.514836207094,  -0.110052992176,  0.522290842921,  -0.100102537423,  0.530495212343,  -0.096410789033,  0.531340577019,  -0.095282050416,  0.526915602535,  -0.087480988196,  0.525853814136,  -0.073143833144,  0.528666343918,  -0.058946562200,  0.530298526580,  -0.044163634704,  0.533442358450,  -0.023666738129,  0.544707147923,  -0.001204210557,  0.560707461396,   0.015068718574,  0.572565610964,   0.027420578345,  0.581400743319,   0.044609498898,  0.595166599766,   0.066351092725,  0.613646509664,   0.086032728781,  0.631381973223,   0.105040182304,  0.651726674657,   0.129022304484,  0.682192223866,   0.153348660539,  0.718772465303,   0.168161061213,  0.750497729260,   0.175236154298,  0.776807538639,   0.184618938860,  0.805328147357,   0.197778468121,  0.836265172454,   0.209542051152,  0.865215239676,   0.222633610156,  0.897657597027,   0.243290053004,  0.943291413757,   0.265566982389,  0.998485340305,   0.277132826604,  1.050911871206,   0.278275983607,  1.098773787984,   0.279044437613,  1.149247372113,   0.281135191821,  1.202115675247,   0.279463027335,  1.252778015718,   0.277270663529,  1.307498407873,   0.280955628034,  1.376522635156,   0.283106339543,  1.454524711451,   0.269614646312,  1.526190870795,   0.241415629559,  1.588564271144,   0.211477355709,  1.650256064484,   0.183814150598,  1.713060796013,   0.153745651763,  1.773881667639,   0.123942009057,  1.840211175064,   0.099320602693,  1.921935085615,   0.069668676642,  2.010186754274,   0.019108807221,  2.085296174976,  -0.048825260632,  2.143883235112,  -0.115306187011,  2.198960463540,  -0.172094094196,  2.258071531656,  -0.223708573433,  2.322861453986,  -0.270089978189,  2.404458179524,  -0.311190093703,  2.513393344380,  -0.364850799331,  2.635571165117,  -0.454322521764,  2.742083705203,  -0.577763770952,  2.822546469100,  -0.711439290034,  2.888652617249,  -0.840232121174,  2.950738892877,  -0.963780590342,  3.015316602561,  -1.080124966757,  3.098982851439,  -1.191495287630,  3.214427131165,  -1.322541344670,  3.342993914134,  -1.503073416782,  3.448105106031,  -1.731386851962,  3.516168270683,  -1.978589927216,  3.561781431503,  -2.226271984576,  3.599417980136,  -2.476294409452,  3.637409011409,  -2.733154153510,  3.690014127221,  -3.009527112902,  3.757871271780,  -3.342869426621,  3.796873248533,  -3.767738339619,  3.741579798336,  -4.266914794364,  3.564731369738,  -4.778585465369,  3.289876565677,  -5.252115460017,  2.952621062582,  -5.672635563085,  2.579197198720,  -6.043693036188,  2.189168163294,  -6.383289047268,  1.775133408874,  -6.726281631061,  1.284885086250,  -7.083288053843,  0.670575683506,  -7.396485375953, -0.039781496478,  -7.578994522040, -0.756270331113,  -7.602363191828, -1.410293989834,  -7.512996303183, -1.991091635100,  -7.372939552025, -2.518825944808,  -7.225188290688, -3.034370641049,  -7.096878933294, -3.600456124414,  -6.973296723704, -4.244426545187,  -6.774476219056, -4.896745338251,  -6.424424626845, -5.446734084902,  -5.951109800318, -5.864623984701,  -5.465413199139, -6.221676098317,  -5.045767329242, -6.611274841490,  -4.692786634935, -7.115783260382,  -4.358182947280, -7.803998318879,  -3.921835630570, -8.629192416579,  -3.174103030935, -9.328992143624,  -1.974918238698, -9.574925205618,  -0.470484009112, -9.281929695977,   0.967228337198, -8.680999081118,   2.064072826514, -8.075819979199,   2.823860225628, -7.647991031829,   3.419085429922, -7.462205031538,   4.098957217750, -7.380744711764,   5.210581354457, -6.860629168794,   6.968470632158, -5.166351089116,   8.948839632452, -2.157077269701,  10.044285830190,  1.217699492273,   9.329216865013,  3.548625841821,   7.016586874554,  4.170165648127,   4.322157076571,  3.573342012525,   2.354977104705,  2.673991957600,   1.338166143880,  1.967548601014,   0.879322286023,  1.459294166803,   0.637417086477,  1.070765014522,   0.524036730386,  0.811607899415,   0.495918814138,  0.661200422032,   0.466388157237,  0.539293865925,   0.410089503710,  0.417436147476,   0.373871431310,  0.331791133662,   0.367763134644,  0.285695830483,   0.350067923572,  0.237538417946,   0.313312180540,  0.179264027604,   0.292464043633,  0.142360746269,   0.291470117671,  0.129031769662,   0.278249062411,  0.107966816804,   0.249074638150,  0.074815280028,   0.232083362122,  0.055206289685,   0.230284105129,  0.051046423082,   0.218931789866,  0.038404989876,   0.196206465578,  0.015608582785,   0.184759154546,  0.004360593993,   0.185798475051,  0.005799558808,   0.178191332684, -0.000292134446,   0.160506265311, -0.015282774326,   0.151700194640, -0.021154191241,   0.152649148469, -0.017378430725,   0.145805475697, -0.021055605360,   0.130650863916, -0.032727458752,   0.123671118707, -0.036492173338,   0.125333237487, -0.031907479764,   0.120233712041, -0.033818086954,   0.107902954556, -0.042612359098,   0.102582871139, -0.044524828638,   0.104479572099, -0.039469159797,   0.100159658681, -0.040558409282,   0.089550231934, -0.047874276843,   0.085406321184, -0.049017741287,   0.087815027033, -0.043880178472,   0.084747405939, -0.044078821475,   0.076113167145, -0.049589948192,   0.073156206223, -0.049411695157,   0.075724349369, -0.043713781432,   0.072984590375, -0.043094196591,   0.065031147932, -0.047498052044,   0.062136505072, -0.046967780458,   0.064194136169, -0.041686663579,   0.061481914949, -0.041189317032,   0.054216620140, -0.045265811660,   0.051736843365, -0.044798845802,   0.053842782464, -0.040001476742,   0.051648532589, -0.039546705347,   0.045409869061, -0.043130249671,   0.043631291326, -0.042382672019,   0.045996891716, -0.037585586016,   0.044290741107, -0.036751387403,   0.038763702068, -0.039606774949,   0.037210091087, -0.038532359059,   0.039295230886, -0.033909710530,   0.037523925849, -0.033121976366,   0.032287437332, -0.035785706445,   0.030843059295, -0.034777485652,   0.032814786355, -0.030463326371,   0.031215541023, -0.029681306986,   0.026400501425, -0.032067316105,   0.025044296933, -0.031099495014,   0.026738649424, -0.027248418562,   0.025071083756, -0.026864828026,   0.020549285806, -0.029461251669,   0.019471725956, -0.028836268618,   0.021413597159, -0.025368522844,   0.020335156284, -0.024913049509,   0.016638085405, -0.026982997380,   0.016039630960, -0.025920114977,   0.017969167338, -0.022317831630,   0.016783652705, -0.021783385683,   0.013034268037, -0.023828210374,   0.012234875433, -0.023079159520,   0.013930089711, -0.020010624502,   0.012896457592, -0.019726915523,   0.009669783942, -0.021621854321,   0.009287160716, -0.020682322222,   0.011102954328, -0.017540634150,   0.010121615036, -0.017138520492,   0.006923317027, -0.018943516759,   0.006342258156, -0.018259512286,   0.007846948629, -0.015672254246,   0.006860880995, -0.015694835082,   0.004044646143, -0.017623147999,   0.003898658710, -0.016964117435,   0.005732529468, -0.014358850335,   0.005101339480, -0.014154994960,   0.002608801849, -0.015742942777,   0.002486959912, -0.014986026940,   0.004081974467, -0.012592147208,   0.003314369294, -0.012614066012,   0.000927626874, -0.014304303888,   0.000955193508, -0.013665660152,   0.002670343735, -0.011401390306,   0.002140151278, -0.011361554885,   0.000063435852, -0.012827172696,   0.000209786004, -0.012091812173,   0.001826461252, -0.009941054464,   0.001251343430, -0.010005667689,  -0.000707356792, -0.011470050567,  -0.000445545498, -0.010763492794,   0.001229158046, -0.008679776743,   0.000796439965, -0.008672737880,  -0.000953775098, -0.009937459842,  -0.000636726172, -0.009146991769,   0.000913769959, -0.007166880915,   0.000412947011, -0.007252973339,  -0.001247567916, -0.008499881746,  -0.000832131193, -0.007693347363,   0.000757795523, -0.005717704274,   0.000345826749, -0.005687656555,  -0.001195076774, -0.006716447815,  -0.000822319319, -0.005818647808,   0.000539058027, -0.003960133865,  -0.000067421895, -0.004085978251,  -0.001654521611, -0.005210159659,  -0.001292955960, -0.004436683208,   0.000041241955, -0.002738297170,  -0.000499358929, -0.002908870849,  -0.001931513027, -0.003942030819,  -0.001509750079, -0.003128651067,  -0.000269755667, -0.001529980604,  -0.000897766729, -0.001816034524,  -0.002319756682, -0.002913490433,  -0.001887839762, -0.002211232355,  -0.000671493018, -0.000785262049,  -0.001233911746, -0.001152658568,  -0.002477446437, -0.002186530832,  -0.001918617885, -0.001424342309,  -0.000709228659, -0.000031943455,  -0.001295357854, -0.000434586116,  -0.002506450057, -0.001460020848,  -0.001947148236, -0.000751325874,  -0.000795901237,  0.000496832455,  -0.001368404599,  0.000003981787,  -0.002444218617, -0.000981891809,  -0.001766429026, -0.000218813347,  -0.000602680654,  0.001016905127,  -0.001178929640,  0.000524195106,  -0.002215286496, -0.000409578247,  -0.001544242034,  0.000347312412,  -0.000469284753,  0.001468247504,  -0.001090997407,  0.000876037618,  -0.002058143967, -0.000057726173,  -0.001310869724,  0.000710219564,  -0.000234178739,  0.001786092381,  -0.000849898395,  0.001176038763,  -0.001754249395,  0.000299870175,  -0.000984312161,  0.001092376040,   0.000017990959,  0.002087727549,  -0.000660171432,  0.001390023482,  -0.001532295779,  0.000500939174,  -0.000718814987,  0.001279740254,   0.000266979347,  0.002200186031,  -0.000408591867,  0.001456200012,  -0.001200966354,  0.000615557638,  -0.000328429042,  0.001441234356,   0.000617831146,  0.002322784755,  -0.000109338217,  0.001530862166,  -0.000884337200};
    
    ......

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,148
    Code:
    	blockR = receiveWritable(1); // right
    Since the input signal is mono in the left channel, you don't need to receive a buffer from the right channel. Just allocate one and copy the data from the left - no need to check if blockR is NULL.
    Code:
    	blockR = allocate(); // right
          //add code to copy left block to right. E.g.
          memcpy(blockR->data,blockL->data,AUDIO_BLOCK_SAMPLES*2);
    Code:
    if      ((tempAngle >= 0) & (tempAngle < 30))
    The & should be &&

    Pete

  7. #7
    Junior Member
    Join Date
    Sep 2018
    Posts
    4
    So I found out why why blockR was always null. I did not define the audio connection correctly. And I now have audio. The audio is extremely noise though. not sure of the cause yet but maybe due to time it takes to do both convolutions is longer then the time it takes to play the last 128 samples ( in case 3 in the cpp). This can be handled better but I will make sure that is the issue first.


    I believe this is whats happening correct me if I am wrong...

    One or two I2S channels are transmitted to the convo.
    It goes to the convo update method
    The convo update method waits till both I2S channels
    It checks to see what state the convo update method is in
    Does the corresponding state in the case statement.
    Transmits BlockL BlockR
    Release BlockL BlockR

    starts over....







    Code:
     
    
    AudioIputsI2S                    i2s1;
    HRTF                                 convo;
    AudioMixer4                      mixer1;
    AudioMixer4                      mixer2;
    AudioOutputsI2S               i2s2;
    AudioConnection               patchChord1(i2s1, 0, convo, 0 );
    AudioConnection               patchChord2(i2s1, 0, convo, 1 ); // I added this line have audio now
    AudioConnection               patchChord3(convo, 0, mixer1, 0);
    AudioConnection               patchChord4(convo, 0, mixer2, 0);
    AudioConnection               patchChord5(mixer1, 0, i2s2, 0);
    AudioConnection               patchChord6(mixer1, 0, i2s2, 1);
    AudioControlSGTL5000

  8. #8
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,148
    As I mentioned in #6, you don't need to define the right channel in the AudioConnections (it would have helped if you had posted ALL your code in #5).

    Pete

  9. #9
    Banned
    Join Date
    Jun 2019
    Posts
    2

    audio_block_t declare left and right outputs

    ok well then that is a very in depth guide to audio install and troiuble shooting thanks for the find

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •