update voice on initialisation
authorrekado <rekado@elephly.net>
Wed, 16 Jan 2013 12:15:34 +0000 (20:15 +0800)
committerrekado <rekado@elephly.net>
Wed, 16 Jan 2013 12:15:34 +0000 (20:15 +0800)
src/mdaPiano.cpp
src/mdaPianoVoice.cpp

index 39a1d95..c1cae76 100644 (file)
@@ -37,7 +37,6 @@ mdaPiano::mdaPiano(double rate)
 
   sustain = 0;
 
-  update();
 }
 
 //parameter change
index b48c0a8..688f1df 100644 (file)
@@ -22,6 +22,7 @@ mdaPianoVoice::mdaPianoVoice(double rate, short * samples, KGRP * master_kgrp) {
   default_preset[p_offset(p_stretch_tuning)]       = 0.500f;
 
   reset();
+  update(Default);
 }