summaryrefslogtreecommitdiff
path: root/src/mdaPiano.h
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-25 22:00:38 +0800
committerrekado <rekado@elephly.net>2013-01-25 22:00:38 +0800
commit07778ea88bbd4f49b97ad491c58b2065e191a9b3 (patch)
tree0cb1688c6872af13347bcde5764fee1c49fefe53 /src/mdaPiano.h
parent3d774a0e75df5b0f256c4480344f989186c4eddf (diff)
define number of samples as NSAMPLES
Diffstat (limited to 'src/mdaPiano.h')
-rw-r--r--src/mdaPiano.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mdaPiano.h b/src/mdaPiano.h
index 018dadb..f848919 100644
--- a/src/mdaPiano.h
+++ b/src/mdaPiano.h
@@ -13,16 +13,16 @@ class mdaPiano : public LV2::Synth<mdaPianoVoice, mdaPiano> {
public:
mdaPiano(double);
~mdaPiano() {
- for (unsigned char i = 0; i < 15; i++) {
+ for (unsigned char i = 0; i < NSAMPLES; i++) {
free(samples[i].buffer);
}
free(samples);
}
bool sustain;
- KGRP kgrp[16];
+ KGRP kgrp[NSAMPLES];
mdaPianoVoice *voices[NVOICES];
- Sample *samples = (Sample*) malloc (15 * sizeof(Sample));
+ Sample *samples = (Sample*) malloc (NSAMPLES * sizeof(Sample));
void load_kgrp(KGRP*);
void load_sample(Sample*, const char*);