Clicking Noise

Hey there,

so I've been playing with the tone function, trying to create sweeping sounds (Like a siren) and it works pretty well, but at certain points there's an annoying clicking noise. One points i've isolated is when going from 972 Hz to 973 Hz.
Looking at the waveforms with my scope, it seems that the only irregularity is an occasional point in the square wave, where the wave doesnt actually go down for 3/3 points rather than 2/3. I don't know if this is the cause tho.
Does anyone know if this can be fixed in software or if there's some hardware fix?

Cheers!

We would need to confirm your problem.
Please show us a schematic of your circuit.
Please, you must show us your complete sketch. Attach your code using the </> icon on the left side of the posting menu.
Put your sketch between the code tags [code][/code]

What a helpful reply, my gosh golly good job.

Here's the Wavefrom going between 972-973:

And here's what 971-972 (and just about everything else except for a merry few transitions) looks like:

What a helpful reply, my gosh golly good job.

Won't be responding to your requests.
Good luck.

.