Originally Posted by
james
In your example, 3 and 5 are the amplitude. 0 and 90 are phase.
It's worth noting that since this all gets scaled to fit inside of short integer space, the actual size of a figure is more or less irrelevant except when compared to other figures in the same space. Offset is also typically factored out unless you normalize with the origin. So there are literally an infinite number of ways to make the same final results.
Not to mention that frequency is directly related to time, so different combinations of frequency and duration can also yield the same results.
LBO(t) == amplitude * function(t * frequency + phase) * e ^ (-damping / t) + offset
duty_cycle is a parameter that has no representation in the above expression. It actually changes the character of function. The value of duty_cycle must be between 0.0 and 1.0. A value of 0.5 is 50%. The sin function has 50% above and 50% below its zero value.
In case you're wondering, Yes. I have had to scrape my brains off the ceiling several times while developing this code.
I love that! New discoveries are what really drive me to keep working on this. And working with other people is the biggest reward.