diff options
author | rekado <rekado@elephly.net> | 2013-01-16 19:37:57 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-16 19:37:57 +0800 |
commit | 04f6215d86ebf1d95786fb0e1d189c7b3c899bf9 (patch) | |
tree | 897147a88899aafb3a0a9a9016a25c5c7718aa4b /src | |
parent | b2d1bced48bccc8ebcaadca45c99b75f22161b5b (diff) |
statically declare comb array
Diffstat (limited to 'src')
-rw-r--r-- | src/mdaPianoVoice.cpp | 1 | ||||
-rw-r--r-- | src/mdaPianoVoice.h | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp index f89ccc2..322b534 100644 --- a/src/mdaPianoVoice.cpp +++ b/src/mdaPianoVoice.cpp @@ -21,7 +21,6 @@ mdaPianoVoice::mdaPianoVoice(double rate, short * samples, KGRP * master_kgrp) { default_preset[p_offset(p_random_detuning)] = 0.246f; default_preset[p_offset(p_stretch_tuning)] = 0.500f; - comb = new float[256]; reset(); } diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h index 12e0c49..7df0076 100644 --- a/src/mdaPianoVoice.h +++ b/src/mdaPianoVoice.h @@ -21,7 +21,8 @@ class mdaPianoVoice : public LV2::Voice { short *waves; float default_preset[NPARAMS]; // contains the default preset short sustain; - float *comb, cdep, width, trim; + float comb[256]; + float cdep, width, trim; float fine, random, stretch; float volume, muff, muffvel, sizevel, velsens; uint32_t cpos, size, poly; |