} else if (i < tone->trempitchnum) { 
else if (i < tone->trempitchnum) 
static void apply_bank_parameter(Instrument *ip, ToneBankElement *tone){	int i, j;	Sample *sp;		if (tone->tunenum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->tunenum == 1) {				sp->low_freq = adjust_tune_freq(sp->low_freq, tone->tune[0]);				sp->high_freq = adjust_tune_freq(sp->high_freq, tone->tune[0]);				sp->root_freq = adjust_tune_freq(sp->root_freq, tone->tune[0]);			} else if (i < tone->tunenum) {				sp->low_freq = adjust_tune_freq(sp->low_freq, tone->tune[i]);				sp->high_freq = adjust_tune_freq(sp->high_freq, tone->tune[i]);				sp->root_freq = adjust_tune_freq(sp->root_freq, tone->tune[i]);			}		}	if (tone->sclnotenum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->sclnotenum == 1)				sp->scale_freq = tone->sclnote[0];			else if (i < tone->sclnotenum)				sp->scale_freq = tone->sclnote[i];		}	if (tone->scltunenum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->scltunenum == 1)				sp->scale_factor = adjust_scale_tune(tone->scltune[0]);			else if (i < tone->scltunenum)				sp->scale_factor = adjust_scale_tune(tone->scltune[i]);		}	if (tone->fcnum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->fcnum == 1) {				sp->cutoff_freq = adjust_fc(tone->fc[0]);			} else if (i < tone->fcnum) {				sp->cutoff_freq = adjust_fc(tone->fc[i]);			}		}	if (tone->resonum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->resonum == 1) {				sp->resonance = adjust_reso(tone->reso[0]);			} else if (i < tone->resonum) {				sp->resonance = adjust_reso(tone->reso[i]);			}		}	if (tone->trempitchnum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->trempitchnum == 1) {				sp->tremolo_to_pitch = tone->trempitch[0];			} else if (i < tone->trempitchnum) {				sp->tremolo_to_pitch = tone->trempitch[i];			}		}	if (tone->tremfcnum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->tremfcnum == 1) {				sp->tremolo_to_fc = tone->tremfc[0];			} else if (i < tone->tremfcnum) {				sp->tremolo_to_fc = tone->tremfc[i];			}		}	if (tone->modpitchnum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->modpitchnum == 1) {				sp->modenv_to_pitch = tone->modpitch[0];			} else if (i < tone->modpitchnum) {				sp->modenv_to_pitch = tone->modpitch[i];			}		}	if (tone->modfcnum)		for (i = 0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->modfcnum == 1) {				sp->modenv_to_fc = tone->modfc[0];			} else if (i < tone->modfcnum) {				sp->modenv_to_fc = tone->modfc[i];			}		}	if (tone->envratenum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->envratenum == 1) {				for (j =0; j < 6; j++)					if (tone->envrate[0][j] >= 0)						sp->envelope_rate[j] = to_rate(tone->envrate[0][j]);			} else if (i < tone->envratenum) {				for (j =0; j < 6; j++)					if (tone->envrate[i][j] >= 0)						sp->envelope_rate[j] = to_rate(tone->envrate[i][j]);			}		}	if (tone->envofsnum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->envofsnum == 1) {				for (j =0; j < 6; j++)					if (tone->envofs[0][j] >= 0)						sp->envelope_offset[j] = to_offset(tone->envofs[0][j]);			} else if (i < tone->envofsnum) {				for (j =0; j < 6; j++)					if (tone->envofs[i][j] >= 0)						sp->envelope_offset[j] = to_offset(tone->envofs[i][j]);			}		}	if (tone->modenvratenum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->modenvratenum == 1) {				for (j =0; j < 6; j++)					if (tone->modenvrate[0][j] >= 0)						sp->modenv_rate[j] = to_rate(tone->modenvrate[0][j]);			} else if (i < tone->modenvratenum) {				for (j =0; j < 6; j++)					if (tone->modenvrate[i][j] >= 0)						sp->modenv_rate[j] = to_rate(tone->modenvrate[i][j]);			}		}	if (tone->modenvofsnum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->modenvofsnum == 1) {				for (j =0; j < 6; j++)					if (tone->modenvofs[0][j] >= 0)						sp->modenv_offset[j] = to_offset(tone->modenvofs[0][j]);			} else if (i < tone->modenvofsnum) {				for (j =0; j < 6; j++)					if (tone->modenvofs[i][j] >= 0)						sp->modenv_offset[j] = to_offset(tone->modenvofs[i][j]);			}		}	if (tone->tremnum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->tremnum == 1) {				if (IS_QUANTITY_DEFINED(tone->trem[0][0]))					sp->tremolo_sweep_increment =							quantity_to_int(&tone->trem[0][0], 0);				if (IS_QUANTITY_DEFINED(tone->trem[0][1]))					sp->tremolo_phase_increment = quantity_to_int(&tone->trem[0][1], 0);				if (IS_QUANTITY_DEFINED(tone->trem[0][2]))					sp->tremolo_depth = quantity_to_int(&tone->trem[0][2], 0) << 1;			} else if (i < tone->tremnum) {				if (IS_QUANTITY_DEFINED(tone->trem[i][0]))					sp->tremolo_sweep_increment =							quantity_to_int(&tone->trem[i][0], 0);				if (IS_QUANTITY_DEFINED(tone->trem[i][1]))					sp->tremolo_phase_increment = quantity_to_int(&tone->trem[i][1], 0);				if (IS_QUANTITY_DEFINED(tone->trem[i][2]))					sp->tremolo_depth = quantity_to_int(&tone->trem[i][2], 0) << 1;			}		}	if (tone->vibnum)		for (i =0; i < ip->samples; i++) {			sp = &ip->sample[i];			if (tone->vibnum == 1) {				if (IS_QUANTITY_DEFINED(tone->vib[0][1]))					sp->vibrato_control_ratio = quantity_to_int(&tone->vib[0][1], 0);				if (IS_QUANTITY_DEFINED(tone->vib[0][0]))					sp->vibrato_sweep_increment =							quantity_to_int(&tone->vib[0][0],							sp->vibrato_control_ratio);				if (IS_QUANTITY_DEFINED(tone->vib[0][2]))					sp->vibrato_depth = quantity_to_int(&tone->vib[0][2], 0);			} else if (i < tone->vibnum) {				if (IS_QUANTITY_DEFINED(tone->vib[i][1]))					sp->vibrato_control_ratio = quantity_to_int(&tone->vib[i][1], 0);				if (IS_QUANTITY_DEFINED(tone->vib[i][0]))					sp->vibrato_sweep_increment =							quantity_to_int(&tone->vib[i][0],							sp->vibrato_control_ratio);				if (IS_QUANTITY_DEFINED(tone->vib[i][2]))					sp->vibrato_depth = quantity_to_int(&tone->vib[i][2], 0);			}		}}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/c4f9e1465b55408f85b1af01b13d52750df237da/instrum.c/buggy/timidity/instrum.c