oampo / Audiolet

A JavaScript library for real-time audio synthesis and composition from within the browser
http://oampo.github.com/Audiolet/
Apache License 2.0
893 stars 118 forks source link

ADSREnvelope doesn't allow attack, etc. to be changed at runtime #31

Closed rjmarsan closed 12 years ago

rjmarsan commented 12 years ago

ADSREnvelope takes attack, decay, sustain, and release as constructor parameters, but doesn't allow them to be changed with setValue() at runtime, meaning if you want to vary any of those parameters, you must make a new envelope.

oampo commented 12 years ago

Yeah, this should definitely be possible. You can now do something like env.attack.setValue(2). Thanks for the report!