Skip to content

Commit 9ec0d1e

Browse files
authored
Merge pull request #4 from defrost256/patch-1
Fix the attack value of Env
2 parents f8e184d + 5c36262 commit 9ec0d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processing/sound/Env.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Env(PApplet parent) {
2828
**/
2929
public void play(SoundObject input, float attackTime, float sustainTime, float sustainLevel, float releaseTime) {
3030
SegmentedEnvelope env = new SegmentedEnvelope(new double[] {
31-
attackTime, 1.0, // attack
31+
attackTime, input.amp, // attack
3232
// gradual decay towards sustain level across entire sustain period
3333
sustainTime, sustainLevel, // sustain
3434
releaseTime, 0.0 });

0 commit comments

Comments
 (0)