This is pchmidi.c in view mode; [Download] [Up]
float pchmidi(midinote)
unsigned char midinote;
{
float pchoct();
return (pchoct(((float)midinote/12.) + 3.));
}
int midipch(pch)
float pch;
{
return((int)((octpch(pch)-3.0) * 12.+ .5));
}These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.