Equation help needed...

Official support for: sonicbirth.sourceforge.net
zmix
KVRist
184 posts since 17 Aug, 2005

Post Sun Nov 25, 2012 9:01 am

I'd appreciate any help implementing an equation to generate a multistage exponential output from a linear input, either in SB1 (or more likely SB2..!)


v(t)=V0+A1exp (-t/tau1)+A2exp (-t/tau2)+A3 exp (-t/tautau1)

v is the voltage , t is time, tau1, tau2 and tau3 are characteristic decay times, and A1, A2, A3 and V0 are constants.

The three time constants have values of approximately 5-10 ms, 50-100 ms, and 800-1500 ms respectively

A1, A2 and A3 should be available as input variables as should "tau".

I've tried v(t)=i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)

Should I do this piecemeal, rather than one large (and very "red" ) equation?

Kewl
KVRist
211 posts since 11 Apr, 2007 from Montreal, Canada

Post Mon Nov 26, 2012 8:32 am

zmix wrote:i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)
maybe i7+i1*exp(-i6/i4)+i2*exp(-i6/i5)+i3*exp(-i6/i4)

makira
KVRist
158 posts since 25 Mar, 2005

Post Mon Nov 26, 2012 9:29 am

zmix wrote:Should I do this piecemeal, rather than one large (and very "red" ) equation?
Red ?

Image

zmix
KVRist
184 posts since 17 Aug, 2005

Post Mon Nov 26, 2012 9:41 am

Kewl wrote:
zmix wrote:i7+i1exp (-i6/i4)+i2exp (-i6/i5)+i3exp (-i6/i4)
maybe i7+i1*exp(-i6/i4)+i2*exp(-i6/i5)+i3*exp(-i6/i4)
Thanks Kewl, I had the syntax wrong! the * is the key...!

Return to “SonicBirth”