
#include "../H/ugens.h"

evset(dur,rise,dec,nfrise,q)
float dur,rise,dec,*q;
int nfrise;
{
	rise = (rise > 0.) ? rise : -rise * dur;
	dec = (dec > 0.) ? dec : -dec * dur;
	q[0] = dur * SR;
	q[1] = (dur-dec)/dur;
	q[2] = rise/dur;
	q[3] = fsize(nfrise);
	q[4] = dec/dur;
}
