From 73937da9aa14effe86c4aebdcf83dff9af6945d9 Mon Sep 17 00:00:00 2001 From: rekado Date: Sun, 28 Jul 2013 16:16:32 +0800 Subject: end = size for both plugins --- src/mdaPianoVoice.cpp | 5 ----- 1 file changed, 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 -- cgit v1.2.3