We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8e184d + 5c36262 commit 9ec0d1eCopy full SHA for 9ec0d1e
src/processing/sound/Env.java
@@ -28,7 +28,7 @@ public Env(PApplet parent) {
28
**/
29
public void play(SoundObject input, float attackTime, float sustainTime, float sustainLevel, float releaseTime) {
30
SegmentedEnvelope env = new SegmentedEnvelope(new double[] {
31
- attackTime, 1.0, // attack
+ attackTime, input.amp, // attack
32
// gradual decay towards sustain level across entire sustain period
33
sustainTime, sustainLevel, // sustain
34
releaseTime, 0.0 });
0 commit comments