Longer envelopes

Status
Not open for further replies.

MattyZ

New member
New user here! I've really been enjoying experimenting with the Teensy audio library.

I was hoping to create a new Envelope class, and privately inherit the AudioEffectEnvelope class to re-implement some of the methods/variables for longer effect envelopes.

Can anyone give guidance on what specific alterations would be required for a new subclass to achieve this? At least to start, I'd imagine the private variables holding the "attack_count", "hold_count", etc. counters would need to be increased in size from uint16 to uint32, and the "milliseconds2count" method would need to be changed.
 
Please use these threads:

https://forum.pjrc.com/threads/2780...th-Audio-Library?p=96459&viewfull=1#post96459

https://forum.pjrc.com/threads/2720...mited-to-1000-ms?p=59940&viewfull=1#post59940

There's some preliminary code to try here:

https://github.com/PaulStoffregen/Audio/pull/142

And these issue reports are about the actual bugs:

https://github.com/PaulStoffregen/Audio/issues/102

https://github.com/PaulStoffregen/Audio/issues/107


Please give the code on #142 a try, and if you have any feedback or wish to contribute, please comment on those threads. This problem is on my to-do list, and those are the places I have bookmarked. Please don't start any more new threads on this issue.
 
Status
Not open for further replies.
Back
Top