#endif 
static void convert_volume_envelope(SampleList *vp, LayerTable *tbl){	double attack, hold, delay, to_fc;#ifdef SF_EMULATE_SBLIVE	attack = to_msec(tbl->val[SF_attackEnv2]);	if(attack < 6) {attack = 6;}	vp->attack  = calc_rate(65535, attack);#else    vp->attack  = to_rate(65535, tbl->val[SF_attackEnv2]);#endif    vp->hold    = to_rate(1, tbl->val[SF_holdEnv2]);    vp->sustain = calc_sustain(tbl->val[SF_sustainEnv2]);    vp->decay   = to_rate(65533 - vp->sustain, tbl->val[SF_decayEnv2]);    if(modify_release) /* Pseudo Reverb */	vp->release = calc_rate(65535, modify_release);    else	vp->release = to_rate(65535, tbl->val[SF_releaseEnv2]);	vp->v.envelope_delay = play_mode->rate * 		to_msec(tbl->val[SF_delayEnv2]) * 0.001;	/* convert modulation envelope */	attack = to_msec(tbl->val[SF_attackEnv1]);	hold = to_msec(tbl->val[SF_holdEnv1]);	delay = play_mode->rate * 		to_msec(tbl->val[SF_delayEnv1]) * 0.001;	to_fc = tbl->val[SF_env1ToFilterFc];	if(attack != 0 && to_fc / attack > 300) {		hold += attack;		attack = 0;	}	if(delay != 0 && to_fc > 1200) {		hold += delay;		delay = 0;	}    vp->modattack  = calc_rate(65535, attack);    vp->modhold    = calc_rate(1, hold);    vp->modsustain = calc_sustain(tbl->val[SF_sustainEnv1]);    vp->moddecay   = to_rate(65533 - vp->modsustain, tbl->val[SF_decayEnv1]);    if(modify_release) /* Pseudo Reverb */	vp->modrelease = calc_rate(65535, modify_release);    else	vp->modrelease = to_rate(65535, tbl->val[SF_releaseEnv1]);	vp->v.modenv_delay = delay;    vp->v.modes |= MODES_ENVELOPE;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/75af025e1b9fd3cd94f9edc6c0ef0bdac41eaf47/sndfont.c/buggy/timidity/sndfont.c