if (get_module() == MODULE_SBLIVE) vp->v.modenv_to_pitch = (vp->v.modenv_to_pitch > SF_MODENV_CENT_MAX) ? SF_MODENV_CENT_MAX : (vp->v.modenv_to_pitch < -SF_MODENV_CENT_MAX) ? -SF_MODENV_CENT_MAX : vp->v.modenv_to_pitch; 
static void set_rootkey(SFInfo *sf, SampleList *vp, LayerTable *tbl){	SFSampleInfo *sp = &sf->sample[tbl->val[SF_sampleId]];	int temp;		/* scale factor */	vp->v.scale_factor = 1024 * (double) tbl->val[SF_scaleTuning] / 100 + 0.5;	/* set initial root key & fine tune */	if (sf->version == 1 && tbl->set[SF_samplePitch]) {		/* set from sample pitch */		vp->root = tbl->val[SF_samplePitch] / 100;		vp->tune = -tbl->val[SF_samplePitch] % 100;		if (vp->tune <= -50)			vp->root++, vp->tune += 100;	} else {		/* from sample info */		vp->root = sp->originalPitch;		vp->tune = (int8) sp->pitchCorrection;	}	/* orverride root key */	if (tbl->set[SF_rootKey])		vp->root = tbl->val[SF_rootKey];	else if (vp->bank == 128 && vp->v.scale_factor != 0)		vp->tune += (vp->keynote - sp->originalPitch)				* 100 * (double) vp->v.scale_factor / 1024;	vp->tune += tbl->val[SF_coarseTune] * 100 + tbl->val[SF_fineTune];	/* correct too high pitch */	if (vp->root >= vp->high + 60)		vp->root -= 60;	vp->v.tremolo_to_pitch =			(tbl->set[SF_lfo1ToPitch]) ? tbl->val[SF_lfo1ToPitch] : 0;	vp->v.tremolo_to_fc =			(tbl->set[SF_lfo1ToFilterFc]) ? tbl->val[SF_lfo1ToFilterFc] : 0;	vp->v.modenv_to_pitch =			(tbl->set[SF_env1ToPitch]) ? tbl->val[SF_env1ToPitch] : 0;	if (get_module() == MODULE_SBLIVE)		vp->v.modenv_to_pitch = (vp->v.modenv_to_pitch > SF_MODENV_CENT_MAX) ? SF_MODENV_CENT_MAX				: (vp->v.modenv_to_pitch < -SF_MODENV_CENT_MAX) ? -SF_MODENV_CENT_MAX : vp->v.modenv_to_pitch;	/* correct tune with the sustain level of modulation envelope */	temp = vp->v.modenv_to_pitch			* (double) (1000 - tbl->val[SF_sustainEnv1]) / 1000 + 0.5;	vp->tune += temp, vp->v.modenv_to_pitch -= temp;	vp->v.modenv_to_fc =			(tbl->set[SF_env1ToFilterFc]) ? tbl->val[SF_env1ToFilterFc] : 0;	if (get_module() == MODULE_SBLIVE)		vp->v.modenv_to_fc = (vp->v.modenv_to_fc > SF_MODENV_CENT_MAX) ? SF_MODENV_CENT_MAX				: (vp->v.modenv_to_fc < -SF_MODENV_CENT_MAX) ? -SF_MODENV_CENT_MAX : vp->v.modenv_to_fc;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/0164e89a4513d4069b83bea22eb923b3755759f9/sndfont.c/buggy/timidity/sndfont.c