ftp.nice.ch/pub/next/unix/audio/cmusic.bs.N.tar.gz#/src/cmusic/ug.div.c

This is ug.div.c in view mode; [Download] [Up]

/* Division unit generator */

#include "ug.head.h"
#include <math.h>
#define NUM   1
#define DENOM 2
#define LAST  3

div

UGHEAD{
    UGINIT;
    UGLOOP{

	if(VAL(DENOM) != 0.0) VAL(OUT)++ = VAL(LAST) = VAL(NUM) / VAL(DENOM);
	 else VAL(OUT)++ = VAL(LAST);

	UGEND(1)
    }
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.