extern struct chord curchord[MAXCHORDS];
double getdur(float *p, short n_args){
int num = p[0];
int tempo = (int)p[1];
float scalefactor, duration;scalefactor = (60.0/tempo);
duration = curchord[num].dur * scalefactor;
return duration;
}//end
getdur