summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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