summaryrefslogtreecommitdiff
path: root/plugins/ZamSynth/ZamSynthPlugin.hpp
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2014-04-27 01:52:16 +1000
committerDamien Zammit <damien@zamaudio.com>2014-04-27 01:52:16 +1000
commitfab05f057815000a45de0898be145e31cf901aea (patch)
tree7965f3309e3d513ef704c761088ffaba027e4312 /plugins/ZamSynth/ZamSynthPlugin.hpp
parent82a93ca86973932dbdac1f313a82f7270fc8ed2e (diff)
Working on synth envelope
Signed-off-by: Damien Zammit <damien@zamaudio.com>
Diffstat (limited to 'plugins/ZamSynth/ZamSynthPlugin.hpp')
-rw-r--r--plugins/ZamSynth/ZamSynthPlugin.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/ZamSynth/ZamSynthPlugin.hpp b/plugins/ZamSynth/ZamSynthPlugin.hpp
index b5f270c..6f09ff4 100644
--- a/plugins/ZamSynth/ZamSynthPlugin.hpp
+++ b/plugins/ZamSynth/ZamSynthPlugin.hpp
@@ -22,6 +22,9 @@
#include "DistrhoPlugin.hpp"
#define MAX_VOICES 64
#define AREAHEIGHT 250
+#define MAX_ENV AREAHEIGHT
+#define MAX_ENVCOUNTER 48000
+
START_NAMESPACE_DISTRHO
@@ -113,11 +116,15 @@ protected:
private:
float gain;
float rampstate[128], rampfreq[128], amp[128];
- int noteon[128];
- int noteoff[128];
+ bool noteon[128];
+ bool noteoff[128];
+ int envpos[128];
int voice[128];
+ float vi[128];
int totalvoices;
float wave_y[AREAHEIGHT];
+ float env_y[AREAHEIGHT];
+ int envcounter[MAX_ENVCOUNTER];
};
// -----------------------------------------------------------------------