summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-14 18:43:38 +0800
committerrekado <rekado@elephly.net>2013-01-14 20:59:42 +0800
commitf0641c754f3a44d6cdf1d05d1d6bea8b98f43333 (patch)
tree2ab622835cbacbbbd49918853575755762c9f1b1
parent0363f7c7fd4e4d7e72e5680d6a313fdba5fd182f (diff)
remove `resume` function
-rw-r--r--src/mdaPiano.cpp9
-rw-r--r--src/mdaPiano.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index eb6ce39..7f6833e 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -66,15 +66,6 @@ void mdaPiano::update() //parameter change
}
-void mdaPiano::resume()
-{
- Fs = getSampleRate();
- iFs = 1.0f / Fs;
- if(Fs > 64000.0f) cmax = 0xFF; else cmax = 0x7F;
- memset(comb, 0, sizeof(float) * 256);
-}
-
-
void mdaPiano::setParameter(uint32_t index, float value)
{
programs[curProgram].param[index] = value;
diff --git a/src/mdaPiano.h b/src/mdaPiano.h
index 14de4fd..e4cc261 100644
--- a/src/mdaPiano.h
+++ b/src/mdaPiano.h
@@ -22,7 +22,6 @@ public:
virtual uint32_t processEvents(VstEvents* events);
virtual void setParameter(uint32_t index, float value);
- virtual void resume();
private: