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.
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.