-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMSPd.h
42 lines (29 loc) · 1 KB
/
MSPd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <strings.h>
#include <string.h>
#define LYONPOTPOURRI_MSG "-<LyonPotpourri 3.0>-"
#define NO_FREE_FUNCTION 0
/* because Max and Pd have different ideas of what A_FLOAT is, use t_floatarg
to force consistency. Otherwise functions that look good will fail on some
hardware. Also note that Pd messages cannot accept arguments of type A_LONG. */
#include "m_pd.h"
#define t_floatarg float
#define t_double double
#define atom_getsymarg atom_getsymbolarg
#ifndef PIOVERTWO
#define PIOVERTWO 1.5707963268
#endif
#ifndef TWOPI
#define TWOPI 6.2831853072
#endif
#ifndef PI
#define PI 3.14159265358979
#endif
/*** MSP helper functions **/
void atom_arg_getfloat(float *c, long idx, long ac, t_atom *av);
void atom_arg_getsym(t_symbol **c, long idx, long ac, t_atom *av);
// #define potpourri_announce(objname) post("( %s )\t%s",objname,LYONPOTPOURRI_MSG)
#define potpourri_announce(objname) post("%s ( %s )",LYONPOTPOURRI_MSG,objname)