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 39a1d95d5cccb846a8496118c121c648774bbd44..c1cae76a04174af599371e7b8a22c1c9562f56f0 100644 (file)
@@ -37,7 +37,6 @@ mdaPiano::mdaPiano(double rate)
 
   sustain = 0;
 
-  update();
 }
 
 //parameter change
index b48c0a84158ea8ac8e3fda044947bd82b8396a00..688f1df05ecbe56ff4dcd55e7513cb30d1a1b936 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);
 }