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?

M

Marcus posted Jul 6 '15, 14:56:

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.

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.

S

Stan posted Dec 18 '15, 01:35:

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.

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