On Feb 5, 2010, at 6:02 AM, Chunk 1978 wrote:

> however, if you look at those numbers they are not much of a sine
> wave.  the reason, as far as i can see, is that self.pitch is adding
> itself along with the sine wave increments.

Right. You have to remember the base pitch and add the sin value to that:

pitch = basePitch + vibratoDepth*sin(vibratoPhase)

You should take this to stackoverflow.com or some other general programming Q&A 
forum, since it's off topic for this list.

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to