ADSR class with exponential curve and tight timing

Hello,

Please see below for an ADSR based on a lookup table. Advantages of this implementation are that it is extremely light-weight, has an exponential/differential profile and that the attack, decay and release times can be precisely controlled. The example provided with the class is optimized for the Arduino Due, but the class can be used by any other platform. The ADSR shape is based on the ADSR that m0xpd posted here sometime ago and so I thought I would share my version as well. Have fun!

Github link for the ADSR code

Youtube for explanation on how to use the class

Thanks for sharing!

I noticed a small problem in adsr.cpp, the indices in the for loop should be initialized:

for (int i = 0; i<ARRAY_SIZE; i++) {

Pieter

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.