Closed pconrad closed 11 years ago
Refactor ADSREnvelopedContinuousSound by factoring "ADSREnvelope" into a separate class.
The ADRSEnvelope class should encapsulate these parameters of the current constructor for ADSREnvelopedContinuousSound
double attackTime, double decayTime, double sustainAmplitude, double sustainTime, double releaseTime,
Replace all of those with just one parameter:
ADSREnvelope adsr
Then just have a getADSREnvelope setADSREnvelope method for ADSREnvelopedContinuousSound. The main in ADSREnvelopedContinuousSound should then create the envelope separately from creating the ADSREnvelopedContinuousSound.
@bronhuston do you want this one? Or should I leave it for @RapidRage too?
~estimated 120
~claimed @bronhuston ~moderator @leifdreizler
Refactor ADSREnvelopedContinuousSound by factoring "ADSREnvelope" into a separate class.
The ADRSEnvelope class should encapsulate these parameters of the current constructor for ADSREnvelopedContinuousSound
Replace all of those with just one parameter:
ADSREnvelope adsr
Then just have a getADSREnvelope setADSREnvelope method for ADSREnvelopedContinuousSound. The main in ADSREnvelopedContinuousSound should then create the envelope separately from creating the ADSREnvelopedContinuousSound.