I'm trying to produce a sine wave with a period chosen by the user. I'm sure this should be quite simple to do but I can't work out how to produce a sine wave with a set period (in secodns as opposed to pixels).

Thanks in advance for your help

Rich