 	//		m_print(output_chunk);
 
 		for(j = 0; j < blocksize; j++) {
-			sample[i+j] = m_get(output_chunk,j,0)/128;
+			output[i+j] = m_get(output_chunk,j,0)/128;
 #if DEBUG == 10
-			printf("%f, ", sample[i+j]);
+			printf("%f, ", output[i+j]);
 #endif
 		}
 	//	tmp_state = m_multiplyblockdiag(MatrixAp,state,2);


void generateSignal() {
	int i, j;
	float* sample;
	Matrix MatrixCA, MatrixCA_line, output_chunk;
	Matrix MatrixAp, tmp_MatrixAp;
	Matrix tmp_state;


	SNDFILE *outfile = sf_open("filter.wav", SFM_WRITE, &info);
	assert(outfile);
	sf_writef_float(outfile, output,samples);
}
