This project has moved. For the latest updates, please go here.

Math behind tone generator with Beats

Jun 4, 2014 at 12:11 AM
ok this is an example:
        Frequency = 180 Hz
        Amplitude = 0.5 db
        Beat = 4 Hz
         waveform sampling rate is 44100 Hz
ok

1) Which the information above, does that mean that every 11025 samples there should be an beat ( meaning 0 s). I should add 0 ? The math I used was number for sample = (1D / Beat) / ( 1D/44100D)

2) if I solve for λ( wavelength) and make sure I do not start adding 0s before the λ starts again will that stop noise/ distortion in my tone ? I get ticks in my wave files, but if I do not interrupt the λ there should be no distortion or ticks right ?

3) From the information above λ should be (1/44100) / (180)
λ= 1.2597631645250692869740488788108e-7s
λ ( wavelength) = C/ F
Jun 4, 2014 at 8:08 PM
FYI
I am using an Sine wave.

f(t) = Amplitude * Sin(PI * Frequency * T / 44100D);
Jun 5, 2014 at 7:34 PM
anyone?
Jun 7, 2014 at 3:04 AM
markheath

do you know ?
Jun 11, 2014 at 2:42 AM
ok I got it
Marked as answer by btb4198 on 6/10/2014 at 7:42 PM