Re: logic problem. adding sine wave pattern to dynamic float
Re: logic problem. adding sine wave pattern to dynamic float
- Subject: Re: logic problem. adding sine wave pattern to dynamic float
- From: Jens Alfke <email@hidden>
- Date: Fri, 5 Feb 2010 08:56:01 -0800
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 (email@hidden)
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:
This email sent to email@hidden