summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-07-28 16:16:32 +0800
committerrekado <rekado@elephly.net>2013-07-28 16:16:32 +0800
commit73937da9aa14effe86c4aebdcf83dff9af6945d9 (patch)
tree52b258bad48bf810a25e0b761224c58eefa2fa6c
parent61193b790f6595617546397a79ff2c1f46ef72ac (diff)
end = size for both plugins
-rw-r--r--src/mdaPianoVoice.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index fd0e8fd..35266f8 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -90,14 +90,9 @@ void mdaPianoVoice::on(unsigned char key, unsigned char velocity) {
if(velocity > 80) sample_index++; // high velocity sample
#endif
-#ifdef PIANO
end = samples[sample_index].size;
-#elif defined EPIANO
- end = samples[sample_index].size - 1;
-#endif
loop = kgrp[sample_index].loop;
-
#ifdef PIANO
env = (0.5f + velsens) * (float)pow(0.0078f * velocity, velsens); //velocity