[Gambas-user] using Sin() to produce a specific range of values
ihaywood at ...1979...
Sun Jul 10 08:02:11 CEST 2011
On Sun, Jul 10, 2011 at 3:37 PM, Kevin Fishburne
<kevinfishburne at ...1887...> wrote:
> I need to use the Sin() function to calculate an output range from an
> input range. The advantage of Sin() is that it's not linear; it makes a
> nice smooth curve of values sort of like a sound wave in an audio editor.
this example project does this using 50 numbers, you can adjust the stepping
in the FOR loop to change the number of numbers produced.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4459 bytes
Desc: not available
More information about the User