Version 2.02

This commit is contained in:
Gary Scavone
2013-09-25 11:18:58 +02:00
committed by Stephen Sinclair
parent ea749b71d2
commit 7c0ee03d60
47 changed files with 1888 additions and 696 deletions

View File

@@ -13,7 +13,7 @@
Marimba :: Marimba() : Modal4()
{
wave = new RawWave("rawwaves/marmstk1.raw");
wave = new RawInterp("rawwaves/marmstk1.raw");
wave->normalize();
wave->setRate((MY_FLOAT) 0.5); /* normal stick */
this->setRatioAndReson(0, (MY_FLOAT) 1.00,(MY_FLOAT) 0.9996); /* Set all 132.0 */
@@ -105,7 +105,7 @@ void Marimba :: controlChange(int number, MY_FLOAT value)
MY_FLOAT Marimba :: tick()
{
if (multiStrike>0)
if (wave->isAllDone()) {
if (wave->isFinished()) {
wave->reset();
multiStrike -= 1;
}