All pastes #709459 Raw Edit

Miscellany

public cpp v1 · immutable
#709459 ·published 2007-09-24 18:19 UTC
rendered paste body
	while(sampleFrames--) {					// calculate		const float	x0 = *src++;		const float	x1 = *src++;		const float	tap9 = 0.0010986328125f * x0;		const float	tap7 = -0.007080078125f * x0;		const float	tap5 = 0.02618408203125f * x0;		const float	tap3 = -0.07794189453125f * x0;		const float	tap1 = 0.3077392578125f * x0;		*dest++ = state[8] + tap9;		// update		state[8] = state[7] + tap7;		state[7] = state[6] + tap5;		state[6] = state[5] + tap3;		state[5] = state[4] + tap1;		state[4] = state[3] + tap1 + (0.5f * x1);		state[3] = state[2] + tap3;		state[2] = state[1] + tap5;		state[1] = state[0] + tap7;		state[0] = tap9;	}