Re: FM synthesis using Numpy

2007-08-16 Thread Joost Molenaar
Thanks/bedankt Bas for the educative reply. I think I got misleaded by Max/MSP's tutorial[1], because MSP seems to automatically adjust the phase when you combine two oscillators in the way that I did. Joost [1] page 112 of http://www.cycling74.com/download/MSP45TutorialsAndTopics.pdf -- http://

Re: FM synthesis using Numpy

2007-08-15 Thread Bas
You got your math wrong. What you are calculating is: sin(2*pi*(1000+15*sin(2*pi*6*t))*t) = sin(2*pi*1000*t + 2*pi*15*sin(2*pi*6*t)*t) The 'instantaneous frequency' can be calculated by differentiating the argument of the sine and dividing by 2pi: x = sin(phi(t)) -> f_inst = d (phi(t)) / dt / (2*pi

Re: FM synthesis using Numpy

2007-08-14 Thread Terry Reedy
"Joost Molenaar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I'm trying to build a simple FM synthesizer in Python. As a beginner, | I take 'FM synthesizer' to | mean: "using a sine wave to control the frequency of another sine wave." If you don't get an answer here, try the nu

FM synthesis using Numpy

2007-08-14 Thread Joost Molenaar
Hello fellow Python coders, I'm trying to build a simple FM synthesizer in Python. As a beginner, I take 'FM synthesizer' to mean: "using a sine wave to control the frequency of another sine wave." I tried to generate a tone of 1000 Hz that deviates 15 Hz six times a second. The start of the resu