#ifndef VERSION #define VERSION "0.01" #endif #ifndef __DATE__ #define __DATE__ "without using a gnu compiler" #endif #include typedef struct _OSC { t_object x_obj; } t_OSC; static t_class* OSC_class; void OSC_version(); void sendOSC_setup(); void dumpOSC_setup(); void OSCroute_setup(); static void* OSC_new(t_symbol* s) { t_OSC *x = (t_OSC *)pd_new(OSC_class); return (x); } void OSC_version (t_OSC *x) { // EnterCallback(); post("OSC4PD Version " VERSION "\nOSC4PD Original Code by Matt Wright. pd-fication cxc@web.fm\nOSC4PD Compiled " __TIME__ " " __DATE__); // ExitCallback(); } void OSC_setup(void) { OSC_class = class_new(gensym("OSC"), (t_newmethod)OSC_new, 0, sizeof(t_OSC), 0,0); class_addmethod(OSC_class, (t_method)OSC_version, gensym("version"), A_NULL, 0, 0); sendOSC_setup(); dumpOSC_setup(); OSCroute_setup(); post("OSC: Open Sound Control 4 PD, http://www.cnmat.berkeley.edu/OSC"); post("OSC: original code by matt wright, pd hakcs cxc"); post("OSC: ver: "VERSION ", compiled: "__DATE__); }