diff options
author | rekado <rekado@elephly.net> | 2013-01-25 19:11:45 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-25 19:11:45 +0800 |
commit | 3d774a0e75df5b0f256c4480344f989186c4eddf (patch) | |
tree | aa01b7949ff74d137ad67087b6d10268c3dc2a6f | |
parent | 1068d0d54b3b39932ae6fc70de3ed4113efabac1 (diff) |
mark polyphony parameter as unused
-rw-r--r-- | src/mdaPianoVoice.cpp | 4 | ||||
-rw-r--r-- | src/mdaPianoVoice.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp index 8198d13..ac05d01 100644 --- a/src/mdaPianoVoice.cpp +++ b/src/mdaPianoVoice.cpp @@ -16,7 +16,7 @@ mdaPianoVoice::mdaPianoVoice(double rate, Sample * master_samples, KGRP * master default_preset[p_offset(p_velocity_to_muffling)] = 0.251f; default_preset[p_offset(p_velocity_sensitivity)] = 0.376f; default_preset[p_offset(p_stereo_width)] = 0.500f; - default_preset[p_offset(p_polyphony)] = 0.330f; + default_preset[p_offset(p_polyphony)] = 0.330f; // unused default_preset[p_offset(p_fine_tuning)] = 0.500f; default_preset[p_offset(p_random_detuning)] = 0.246f; default_preset[p_offset(p_stretch_tuning)] = 0.500f; @@ -181,6 +181,4 @@ void mdaPianoVoice::update(Param par) { cdep = p_helper(p_stereo_width, par) * p_helper(p_stereo_width, par); trim = 1.50f - 0.79f * cdep; width = 0.04f * p_helper(p_stereo_width, par); if(width > 0.03f) width = 0.03f; - - poly = 8 + (uint32_t)(24.9f * p_helper(p_polyphony, par)); } diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h index 6f43d7a..efc2344 100644 --- a/src/mdaPianoVoice.h +++ b/src/mdaPianoVoice.h @@ -25,7 +25,7 @@ class mdaPianoVoice : public LV2::Voice { float cdep, width, trim; float fine, random, stretch; float volume, muff, muffvel, sizevel, velsens; - uint32_t cpos, size, poly; + uint32_t cpos, size; // voice state uint32_t delta; // sample playback |