Update NotePlayer.as

This commit is contained in:
doyousketch2 2014-06-25 14:32:45 -04:00
parent 8533f18265
commit 73ee51ce11

View file

@ -121,7 +121,7 @@ public class NotePlayer extends ScratchSoundPlayer {
next = (result <= 32767 ? result : result - 65536);
}
var sample:Number = (curr + (frac * (next - curr))) / 100000; // xxx 32000; attenuate...
if (samplesRemaining < 1000) sample *= (samplesRemaining / 1000.0); // relaase phease
if (samplesRemaining < 1000) sample *= (samplesRemaining / 1000.0); // release phase
updateEnvelope();
return envelopeValue * volume * sample;
}