View Full Version : Longer envelopes

02-22-2016, 04:45 PM
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.

02-22-2016, 05:46 PM
Please use these threads:



There's some preliminary code to try here:


And these issue reports are about the actual bugs:



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.