wasm-synth icon indicating copy to clipboard operation
wasm-synth copied to clipboard

Attack cannot be adjusted for an exponentially growing curve

Open TimDaub opened this issue 5 years ago • 4 comments

TimDaub avatar May 11 '20 00:05 TimDaub

First design of a sigmoid function here

TimDaub avatar May 13 '20 10:05 TimDaub

Integrated into ADSR model: https://www.desmos.com/calculator/b2h2rrvvif

Open questions:

  • How to shorten x_a now :/

Edit:

Now that I think about it, I remember how I constructed the model. Having the values run towards (1,1) is just a way to make sure the model looks pretty on desmos. But in reality, the script anyways calculates until (1, 1) has been passed (and then enters into next phase, which is decay) or stops prematurely because the player has lifted their finger from the key.

So indeed, the sigmoid function above should be implementable. Ideally with a nice draggable button. Maybe we can provide rails for the user to drag the button. Was thinking of something along the lines of: https://www.desmos.com/calculator/wwggmfktmw

TimDaub avatar May 13 '20 10:05 TimDaub

Front end lib under construction: https://github.com/TimDaub/html5-wavetable

TimDaub avatar May 19 '20 13:05 TimDaub

Front end lib under construction: https://github.com/TimDaub/html5-wavetable

I stepped back from this idea. Question is: Can such a curve as outlined in

Integrated into ADSR model: https://www.desmos.com/calculator/b2h2rrvvif

be built using SVGs? Or is there a rewrite of the ADSR graph necessary?

TimDaub avatar Sep 07 '21 21:09 TimDaub