Sound |
A middle-class music sound around 440 Hz. Still remember what it Hz? Hz stands for Hertz. Hertz is the number of cycles per second. Thus, if we want to play music A middle class, then we have to turn on and turn off the speakers as each 440 times in one second.
To switch off the speakers as much as 440 times each, we can use the delay function (). Previously we have to make the LED blink by utilizing delay. Our treatment of the LED will apply on the speakers, but with a faster tempo.
How to calculate the delay that we need to get a cycle of 440 Hz (440 Hz tone) is a way:
Why frequency multiplied by 2? Sound waves are waves of analog (analog signal) which is a sine wave. That is, one full cycle is 1 High / peak and low 1 / valley. High condition is when the speakers are turned on, while the low condition is when the speaker is turned off. Therefore, we need a second delay to 1 Hz. Because 440 Hz is 440 cycles, each cycle at 440 Hz multiplied by 2. Hopefully graphic below provides an understanding of how to determine the delay. The figure below merely examples 6 Hz because frequencies will not be heard by the human ear.
Cycle Frequency and delay |
0 Response to "explanation Sound"
Post a Comment