Re: logic problem. adding sine wave pattern to dynamic float

2010-02-06 Thread Chunk 1978
*renters with damaged heat shields* sorry, once again. i've posted this to stackoverflow here: http://stackoverflow.com/questions/2212275/compensating-for-value-change-while-changing-value On Fri, Feb 5, 2010 at 4:55 PM, Graham Cox wrote: > > On 06/02/2010, at 1:02 AM, Chunk 1978 wrote: > >> he

Re: logic problem. adding sine wave pattern to dynamic float

2010-02-05 Thread Kyle Sluder
On Fri, Feb 5, 2010 at 1:55 PM, Graham Cox wrote: > Vibrato is Frequency Modulation. The general formula for that is: We've been over these details on the coreaudio-api list very recently, in response to Chunk's post there. Interested parties might consider reading that thread, rather than rehash

Re: logic problem. adding sine wave pattern to dynamic float

2010-02-05 Thread Graham Cox
On 06/02/2010, at 1:02 AM, Chunk 1978 wrote: > help would be greatly appreciated. Vibrato is Frequency Modulation. The general formula for that is: y(t) = A * sin( 2 * π * fc * t + I * sin( 2 * π * fm * t)) Where fc is the 'carrier' or signal being modulated and fm is the modulation. A is

Re: logic problem. adding sine wave pattern to dynamic float

2010-02-05 Thread Jens Alfke
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

logic problem. adding sine wave pattern to dynamic float

2010-02-05 Thread Chunk 1978
this is mostly a logic problem, so i apologize for my question not being cocoa specific. i'm attempting to add my own continuous pitch variation effect (vibrato) by assigning my sound's pitch to the path of a sine wave. this is my callback method, which is repeating every 1/30 of a second. - (voi