The beat frequency is equal to the difference between the frequencies of the two waves. For example, if two notes are played on the piano that are one semitone apart, the beat frequency will be 1 Hz. This means that the sound will alternate between being louder and softer once per second.
The greater the difference between the frequencies of the two notes, the faster the beat frequency will be. This is why beats are more noticeable when two notes are played that are far apart on the piano.
Beats can also be heard when two notes are played on different instruments that are not tuned to the same pitch. For example, if you play a note on a piano and then play the same note on a guitar, you may hear beats if the guitar is not tuned properly.
Beats can be a useful tool for tuning instruments. By listening for the beat frequency, you can adjust the tuning of an instrument until the beats disappear.