The beat, carrier, and timing of two tones
The working name is BINAURATUNE. The trademark is not cleared. This room is not a second project card. SND-001 stays the harmony room. The harmony room says its surrogates are not a model of hearing. This room is not a model of hearing either.
The result appears here when the page script runs.
How it is computed
Beat and carrier
Let f1 and f2 be frequencies in millihertz, integers. The beat is the absolute difference, an integer number of millihertz. The carrier is (f1 + f2) / 2, kept as a reduced ratio, so an odd sum stays as a half millihertz instead of a rounded hertz. One hertz is 1000 millihertz. The chart converts a ratio to pixels. The table keeps the ratio.
Period, samples, and cycles
A frequency of b millihertz is b/1000 hertz. Its period in seconds is 1000/b when b is not zero. At a sample rate of R hertz, the number of samples in one beat period is 1000 R / b. In a window of M milliseconds the number of beat cycles is b M / 1000000. Each of those is a reduced ratio. When b is zero the period is not defined, and the page abstains on period, samples, and cycles. The carrier is still reported.
The channel label
Split means the form is labeling one integer for each ear. Same means both integers are labeled as one channel. The absolute difference does not gain a term either way. A single channel is not computed here as physical interference. The page does not play, record, or transmit audio.
Bounds and the check
Each frequency runs from 20000 to 2000000 millihertz, which is 20 Hz to 2000 Hz. The sample rate runs from 8000 to 192000 hertz. The window runs from 1 to 60000 milliseconds. The inputs are kept in the address bar, so the same link reruns the same calculation.