-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmo_def.h
77 lines (65 loc) · 2.65 KB
/
mo_def.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*----------------------------------------------------------------------------
MoMu: A Mobile Music Toolkit
Copyright (c) 2010 Nicholas J. Bryan, Jorge Herrera, Jieun Oh, and Ge Wang
All rights reserved.
http://momu.stanford.edu/toolkit/
Mobile Music Research @ CCRMA
Music, Computing, Design Group
Stanford University
http://momu.stanford.edu/
http://ccrma.stanford.edu/groups/mcd/
MoMu is distributed under the following BSD style open source license:
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The authors encourage users of MoMu to include this copyright notice,
and to let us know that you are using MoMu. Any person wishing to
distribute modifications to the Software is encouraged to send the
modifications to the original authors so that they can be incorporated
into the canonical version.
The Software is provided "as is", WITHOUT ANY WARRANTY, express or implied,
including but not limited to the warranties of MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE and NONINFRINGEMENT. In no event shall the authors
or copyright holders by liable for any claim, damages, or other liability,
whether in an actino of a contract, tort or otherwise, arising from, out of
or in connection with the Software or the use or other dealings in the
software.
-----------------------------------------------------------------------------*/
//-----------------------------------------------------------------------------
// name: mo_def.h
// desc: MoPhO API for accelerometer
//
// authors: Ge Wang ([email protected])
// Nick Bryan
// Jieun Oh
// Jorge Hererra
//
// date: Fall 2009
// version: 1.0.0
//
// Mobile Music research @ CCRMA, Stanford University:
// http://momu.stanford.edu/
//-----------------------------------------------------------------------------
#ifndef __MO_DEF_H__
#define __MO_DEF_H__
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
// pi
/*
#define ONE_PI (3.14159265358979323846)
#define TWO_PI (2.0 * ONE_PI)
#define SQRT2 (1.41421356237309504880)
#define PI_OVER_180 (ONE_PI / 180.0)*/
// safe object deletion
#define SAFE_DELETE(x) { delete x; x = NULL; }
#define SAFE_DELETE_ARRAY(x) { delete [] x; x = NULL; }
// mo stuff
#ifndef SAMPLE
#define SAMPLE Float32
#endif
#endif