end = size for both plugins
authorrekado <rekado@elephly.net>
Sun, 28 Jul 2013 08:16:32 +0000 (16:16 +0800)
committerrekado <rekado@elephly.net>
Sun, 28 Jul 2013 08:16:32 +0000 (16:16 +0800)
src/mdaPianoVoice.cpp

index fd0e8fd..35266f8 100644 (file)
@@ -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