-
Notifications
You must be signed in to change notification settings - Fork 3
/
Maths.h
44 lines (35 loc) · 794 Bytes
/
Maths.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
/*
Maths.h
Created on: 2021-Mar-13
Joe Filbrun
*/
// Maths Operaton Chices
#define MATHS_CHOICE_MIN 1
#define MATHS_CHOICE_MAX 2
#define MATHS_CHOICE_MEAN 3
#define MATHS_CHOICE_DIV 4
#define MATHS_CHOICE_INV 5
#define MATHS_CHOICE_MOD 6
#define MATHS_CHOICE_TANH 7
#define MATHS_CHOICE_ATAN 8
#pragma once
#include <od/objects/Object.h>
#include <vector>
class Maths : public od::Object
{
public:
Maths();
~Maths();
#ifndef SWIGLUA
virtual void process();
od::Inlet mA{"a"};
od::Inlet mB{"b"};
od::Outlet mOutput{"Out"};
od::Option mOperation{"Operation", MATHS_CHOICE_MIN};
#endif
// void setVaults(int, float);
// float getVaults(int);
protected:
// Protected declarations are also omitted from the swig wrapper.
// float vault[128] = { };
};