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


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

	//		m_print(output_chunk);

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