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

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

/* Difference Generator */

#include "ug.head.h"

#define	IN	1
#define	LAST	2

diff

UGHEAD{
    UGINIT;
    if(STARTNOTE) VAL(LAST) = 0;
    UGLOOP{ register float diff ;
	diff = VAL(IN) - VAL(LAST);
	VAL(LAST) = VAL(IN);
	VAL(OUT) = diff ;
	UGEND(0);
    }
}

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