This is Evpmain.m in view mode; [Download] [Up]
#import <objc/objc.h>
#import "Evp.h"
main()
{
id env;
int i;
float x[512];
for(i=0; i<512; i++) x[i] = i;
env = [Evp create];
[env dur:10. rise:4. decay:4. risefunction:(float *)x decayfunction:(float *)x sr:10];
for(i=0; i<100; i++) printf("%f\n",[env getval:i]);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.