summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-07-27 22:23:02 +0800
committerrekado <rekado@elephly.net>2013-07-27 22:23:02 +0800
commitf7c4de83a785f4c1917cf389033c97227108021e (patch)
tree1dd5f17ce7f91ef00bbbb58aacd42c1951416143 /src
parentdebf832b1989d4b9735a41acce5513bb769e7e09 (diff)
generalise defines for both plugins
Diffstat (limited to 'src')
-rw-r--r--src/mdaPianoCommon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mdaPianoCommon.h b/src/mdaPianoCommon.h
index 8168044..061a94e 100644
--- a/src/mdaPianoCommon.h
+++ b/src/mdaPianoCommon.h
@@ -7,8 +7,14 @@
#define SUSTAIN 128
#define SILENCE 0.0001f //voice choking
#define PARAM_OFFSET 3 //offset for param enum
+
+#ifdef PIANO
#define SAMPLES_PER_NOTE 1
#define NSAMPLES 15
+#elif defined EPIANO
+#define SAMPLES_PER_NOTE 3
+#define NSAMPLES 33
+#endif
struct KGRP //keygroup
{