From f0641c754f3a44d6cdf1d05d1d6bea8b98f43333 Mon Sep 17 00:00:00 2001 From: rekado Date: Mon, 14 Jan 2013 18:43:38 +0800 Subject: remove `resume` function --- src/mdaPiano.cpp | 9 --------- src/mdaPiano.h | 1 - 2 files changed, 10 deletions(-) (limited to 'src') 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: -- cgit v1.2.3