ftp.nice.ch/pub/next/unix/audio/Cmix.N.s.tar.gz#/cmix/lib/octcps.c

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

#include <math.h>

float octcps(cps)
float cps;
{
	return(log(cps/1.021975)/.69314718);

	/* .69etc is log of 2., 1.02etc is offset for middle C */
}

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