Robin Schmidt
Robin Schmidt
ok - i made a tanh based sigmoid mapper. that was actually so easy, i did it in 5 minutes (not really worth to account work time for this). it...
...but now i wonder, if i could somehow factor out the common code. code duplication sucks (violates the DRY principle) https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
i still think, your rational function should perhaps be available too ...i think, the exact behavior/trade-off/precision-curve will be very different from tanh, even though looks sort of similar (both functions...
ok, do it. you'll probably be faster. i'm in weekend mode now. soon off to a goa party. i think, for frequencies, the exponential scaling is just right. it translates...
slider/parameter profiles sounds like a good idea. ...like just calling: setParameterProfile(myParameter, FILTER_FREQ) or something ...which then sets min/max default values, etc. gets rid of a lot of duplicated code. i...
you are applying the DRY principle! :-D
depends on how you define opposite. if it means "inverse function", the yes, logarithm. but it could also mean just taking the negative or 1-exp(a*x) - which would look like...
> I am so frustrated with my ADSR, I want to give up why? what's wrong with it? that you can't get the timing decoupled from the shape? > Gonna...
> my parameter needs reversing: 1-v i think, that would be 1-exp(-decay*t) then, i.e. one minus an exponential decay function - which gives an exponential saturation curve - like an...
``` filerCutoff = onepoleA.getSample(1/newTimingValue); onePoleB.setCutoff(filterCutoff); output_value = onepoleB.getSample(valueToMoveTo); ``` that looks more like smoothing over time to me rather than an instantaneous mapping function