Morphing, multi-ADSR Envelope generator sketch for Arduino Nano etc.
with many thanks to Discord "synthesizers, yo" user Borogove for the help debugging the circuit and for the basis of the morphing envelope generator (and hence thanks to user meem for the source samples that the envelope timings are based on)
- 4 different envelopes output from 1 gate input using 2xMCP4922
- knob per envelope, blending each envelope between 8 preset envelope shapes
- behaviour of each envelope customisable from code to have them interrelate
- envelope 1 triggers when envelope 0 reaches Release stage
- envelope 1 and 3 biased + inverted to use as inverted envelopes
- slewing of envelope 1 back to level 0 when envelope 0 finishes
- some debugging over serial monitor:-
- A/B/C/D turns on debugging for envelope if exists
- M/N/O/P turns on debugging for gates if exists
- W/X/Y/Z turns on debugging for param if exists
- R spams a reset and random envelope values (used for testing if the hardware is working)
- fix so that envelope speeds are predictable
- different envelope shapes
- CV morph between shapes
- LED indicators
- Replicate features used here in the parameters library and switch to using that instead.