aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 09:18:49 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 09:18:49 +0100
commitfc49df1567571ec280ef36a7ed35c736db418dbc (patch)
treeeb57d5cb3f63e044fe8718301acc6106f773b31b /vm.h
parente2f58c1da798af3614d6e76c347db62b66cb7d83 (diff)
downloadvm.lv2-fc49df1567571ec280ef36a7ed35c736db418dbc.tar.xz
revert port min/max back to -1/1.
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vm.h b/vm.h
index 63b3bd8..113b926 100644
--- a/vm.h
+++ b/vm.h
@@ -43,11 +43,18 @@
#define VM__graph VM_PREFIX"graph"
#define MAX_NPROPS 1
+
#define CTRL_MAX 0x8
#define CTRL_MASK (CTRL_MAX - 1)
+
#define ITEMS_MAX 128
#define GRAPH_SIZE (ITEMS_MAX * sizeof(LV2_Atom_Long))
+#define VM_MIN -1.f
+#define VM_MAX 1.f
+#define VM_RNG (VM_MAX - VM_MIN)
+#define VM_VIS (VM_RNG * 1.1f)
+
#include <props.lv2/props.h>
typedef enum _vm_status_t vm_status_t;