Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/processing/sound/Env.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Env(PApplet parent) {
**/
public void play(SoundObject input, float attackTime, float sustainTime, float sustainLevel, float releaseTime) {
SegmentedEnvelope env = new SegmentedEnvelope(new double[] {
attackTime, 1.0, // attack
attackTime, input.amp, // attack
// gradual decay towards sustain level across entire sustain period
sustainTime, sustainLevel, // sustain
releaseTime, 0.0 });
Expand Down