diff options
Diffstat (limited to 'src/mdaPiano.cpp')
-rw-r--r-- | src/mdaPiano.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index 7c1a3a0..903bce7 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -31,6 +31,11 @@ mdaPiano::mdaPiano(double rate) load_samples(&waves); load_kgrp(kgrp); + for(uint32_t i=0; i<NVOICES; ++i) { + voices[i] = new mdaPianoVoice(rate, waves, kgrp); + add_voices(voices[i]); + } + notes[0] = EVENTS_DONE; cpos = sustain = activevoices = 0; comb = new float[256]; |