p->depth_in_sample = p->delay_in_sample * (double)p->chorus_depth / 127.0 * CHORUS_WIDTH_RATIO; p->delay_in_sample -= p->depth_in_sample;	/* NOMINAL_DELAY to delay */ if(p->delay_in_sample <= 1) {p->delay_in_sample = 1;} p->depth_in_sample *= 2;	/* CHORUS_WIDTH to depth */ p->cycle_in_sample = play_mode->rate / rate1_table[p->chorus_rate]; p->feedback_ratio = (double)p->chorus_feedback / (127.0 + 1.0); p->level_ratio = (double)p->chorus_level / 127.0; p->send_reverb_ratio = (double)p->chorus_send_level_to_reverb / 127.0; p->send_delay_ratio = (double)p->chorus_send_level_to_delay / 127.0; 
p->depth_in_sample = (double)(p->chorus_depth + 1) / 3.2f * (double)play_mode->rate / 1000.0; p->delay_in_sample -= p->depth_in_sample / 2;	/* NOMINAL_DELAY to delay */ if(p->delay_in_sample < 1) {p->delay_in_sample = 1;} p->cycle_in_sample = play_mode->rate / ((double)p->chorus_rate * 0.122f); p->feedback_ratio = (double)p->chorus_feedback * 0.763f / 100.0f; p->level_ratio = (double)p->chorus_level / 127.0f; p->send_reverb_ratio = (double)p->chorus_send_level_to_reverb * 0.787f / 100.0f; p->send_delay_ratio = (double)p->chorus_send_level_to_delay * 0.787f / 100.0f; 
void recompute_chorus_status_gs(){	struct chorus_param_t *p = &chorus_param;	p->delay_in_sample = chorus_delay_time_table[p->chorus_delay] * (double)play_mode->rate / 1000.0;	p->depth_in_sample = p->delay_in_sample * (double)p->chorus_depth / 127.0 * CHORUS_WIDTH_RATIO;	p->delay_in_sample -= p->depth_in_sample;	/* NOMINAL_DELAY to delay */	if(p->delay_in_sample <= 1) {p->delay_in_sample = 1;}	p->depth_in_sample *= 2;	/* CHORUS_WIDTH to depth */	p->cycle_in_sample = play_mode->rate / rate1_table[p->chorus_rate];	p->feedback_ratio = (double)p->chorus_feedback / (127.0 + 1.0);	p->level_ratio = (double)p->chorus_level / 127.0;	p->send_reverb_ratio = (double)p->chorus_send_level_to_reverb / 127.0;	p->send_delay_ratio = (double)p->chorus_send_level_to_delay / 127.0;	if(p->chorus_pre_lpf) {		p->lpf.a = (double)(7 - p->chorus_pre_lpf) / 7.0 * 0.9 + 0.05;		init_filter_lowpass1(&(p->lpf));	}}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/2854666803485f10656888652e1db97e9f2d1aa1/readmidi.c/buggy/timidity/readmidi.c