Calculating Tones

Hello there,

I do need to calculate Tones for a project. For that I am using the mathematical operation

timeHigh = period / 2 = 1 / (2 * toneFrequency) picked from that tutorial.

Planned is to calculate more Tones from different ocatves. I tried to calculate the examples for myself, to see how it works.
Beginning with the "C", the operation should look like this:

timeHigh = 1 / (2*261)
= 0,0019157088

So this is not exactly the value from the tutorial.
Knowing that we work with milliseconds, this should be multiplicated by 1.000?
If so, the value is 1,9157088.
I know, that I need the 1915 .

Trying this with the C from the 7th ocatve, it shoud look like this:

timeHigh = 1 / (2*2093)
= 0,0002388915

So I asume, the value I am looking for is 238 by picking the numbers after second spot after the comma.
My question here is, how do I figure out the right value mathematicly correct?

The frequences are token from that list.

Like you have done but get your units correct.

timeHigh = 1 / (2*2093)
= 0,0002388915

So the delay should be 0.2388 mS, that means you cant use delay because that works in milliseconds so you have to use delayMicros and use a value of 239.

Allright, thanks!