So far I have:
$$ A \sin(2\pi f ? + \phi) $$
where $f$ is cycles per second, and $\phi$ is in seconds. If I'd like to approximate the sine wave with $N$ points per cycle, and I want to draw $C$ cycles of it which could be fractional, how do I complete the above formula? And by that I mean:
def placeSineWaveFunc(self, freq, amp, phase, cycles, pointsPerCycle):
polyline = self.polyline
numPoints = int(cycles * pointsPerCyle + 0.5)
for k in range(0, numPoints):
t = ????
polyline.addPoint(QPointF(t, amp * math.sin(2*PI*freq*t + phase))
# The rest of my placer method
Thanks.
I think I got it! Thanks @Michael.
\o/