[Gambas-user] using Sin() to produce a specific range of values

Ian Haywood 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...
Name: sin-0.0.1.tar.gz
Type: application/x-gzip
Size: 4459 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110710/61315257/attachment.bin>

More information about the User mailing list