mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Update NotePlayer.as
This commit is contained in:
parent
8533f18265
commit
73ee51ce11
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue