int32 i, cycle; 
int32 i, cycle, diff; 
static void init_lfo(lfo *lfo, double freq, int type){	int32 i, cycle;	lfo->count = 0;	lfo->freq = freq;	if (lfo->freq < 0.05f) {lfo->freq = 0.05f;}	cycle = (double)play_mode->rate / lfo->freq;	if (cycle < 1) {cycle = 1;}	lfo->cycle = cycle;	lfo->icycle = TIM_FSCALE((SINE_CYCLE_LENGTH - 1) / (double)cycle, 24) - 0.5;	if(lfo->type != type) {	/* generate LFO waveform */		switch(type) {		case LFO_SINE:			for(i = 0; i < SINE_CYCLE_LENGTH; i++)				lfo->buf[i] = TIM_FSCALE((lookup_sine(i) + 1.0) / 2.0, 16);			break;		case LFO_COSINE:			for(i = 0; i < SINE_CYCLE_LENGTH; i++)				lfo->buf[i] = TIM_FSCALE((lookup_sine(i + SINE_CYCLE_LENGTH / 4) + 1.0) / 2.0, 16);			break;		case LFO_TRIANGULAR:			for(i = 0; i < SINE_CYCLE_LENGTH; i++)				lfo->buf[i] = TIM_FSCALE((lookup_triangular(i) + 1.0) / 2.0, 16);			break;		default:			for(i = 0; i < SINE_CYCLE_LENGTH; i++) {lfo->buf[i] = TIM_FSCALE(0.5, 16);}			break;		}	}	lfo->type = type;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/f2f704a7cf56fbd32fbf774cc38550fe963162c5/reverb.c/buggy/timidity/reverb.c