Is ADSR envelope possible in the near future?
Could be possible...
In which situations would you need it ?
It's very important for analog/digital synthesizers, using oscillators, and for lots of other situations... But just being curious, for which use cases would you want it @herbert?
Hi! Not the original poster here but I love the SamplerBox project and aim to build one very soon. :)
I, too, would love an ADSR control for the volume envelope, or at least a way to set the release time only. As for which use it would have; to make a convincing electric organ, we need a super quick release time (basically "on/off"), for a piano sample a smooth, short release time, for a vibraphone, glockenspiel, bells or cymbals a very long release time. Just some examples there.
best, Marcus
You can tweak release time by modifying FADEOUTLENGTH variable but this will modify release time for all instruments.
https://github.com/josephernest/SamplerBox/issues/2
I'd love me some ADSR as well, but release time is my first priority. Would it be possible to change the FADEOUTLENGTH variable "real-time" with pots or buttons? Even if it only works once* would be great.
- I mean, you set release time, load a sample-set, it loads the samples with that release time and doesn't change until you (re)load a sample-set.
Would it be possible for the modulation wheel to change the release time?
I've taken a look at the code but I haven't been yet able to wrap around my head how exactly to do it :)
I'll post something when I have something ready.
I suppose if you add :
#################################################################
elif (messagetype == 11) and (note == 1): # modulation wheel
FADEOUTLENGTH = (velocity * 1400)
#################################################################
in the MidiCallback definition, it should pick up the value of the
Mod Wheel and assign it to FADEOUTLENGTH
Since the value of the Mod Wheel is in the range between 0 and 127,
you could multiply it with 1400 to get a release time of about 4 seconds
I'll try it tomorrow and see if it works :)