Sound frequency in C Language` - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Sound frequency in C Language`

aakarshaakarsh Posts: 2Member
int i;
for(i=1;1<=20000;i++)
{
sound(i);
delay(20);
}

This created continuesly increasing sound. Before the programe could

end,I stopped it by running the program with nosound(); function in

it.

I am not a developer but a student in X Standard (15 yrs old).
I would like to ask, Can the internal speaker create such high

frequency sound waves? If Yes, what's its limit and can it anyway harm

us? I aksed my biology teacher about this, she said that high

frequency sound waves can change the sructure of our DNA. So my main

question are: can a C programe create such sounds? Can the internal

CPU speaker create such sounds? Can these sounds prrove to be harmful

to us?

Comments

  • tom_swtom_sw Posts: 828Member
    : int i;
    : for(i=1;1<=20000;i++)
    : {
    : sound(i);
    : delay(20);
    : }
    :
    : This created continuesly increasing sound. Before the programe could
    :
    : end,I stopped it by running the program with nosound(); function in
    :
    : it.
    :
    : I am not a developer but a student in X Standard (15 yrs old).
    : I would like to ask, Can the internal speaker create such high
    :
    : frequency sound waves? If Yes, what's its limit and can it anyway harm
    :
    : us? I aksed my biology teacher about this, she said that high
    :
    : frequency sound waves can change the sructure of our DNA. So my main
    :
    : question are: can a C programe create such sounds? Can the internal
    :
    : CPU speaker create such sounds? Can these sounds prrove to be harmful
    :
    : to us?
    :
    THe internal speaker shoudl be able to work through the audible range (300-20K hz I think) and maybe a bit more or less. I would not be worried about damaging your DNA with anything in that range. It would be no different than listening to music (and your stereo system probably has a lot more range than the PC speaker). If anything, you may cause hearing damage, if the volume is way too loud.

    If there is any truth to the idea of changing your DNA with sound, I am guessing it would be with very ultrasonic frequencies, and your PC speaker will not be able to produce those.
  • smeezekittysmeezekitty Posts: 4Member
    : : int i;
    : : for(i=1;1<=20000;i++)
    : : {
    : : sound(i);
    : : delay(20);
    : : }
    : :
    : : This created continuesly increasing sound. Before the programe could
    : :
    : : end,I stopped it by running the program with nosound(); function in
    : :
    : : it.
    : :
    : : I am not a developer but a student in X Standard (15 yrs old).
    : : I would like to ask, Can the internal speaker create such high
    : :
    : : frequency sound waves? If Yes, what's its limit and can it anyway harm
    : :
    : : us? I aksed my biology teacher about this, she said that high
    : :
    : : frequency sound waves can change the sructure of our DNA. So my main
    : :
    : : question are: can a C programe create such sounds? Can the internal
    : :
    : : CPU speaker create such sounds? Can these sounds prrove to be harmful
    : :
    : : to us?
    : :
    : THe internal speaker shoudl be able to work through the audible
    : range (300-20K hz I think) and maybe a bit more or less. I would
    : not be worried about damaging your DNA with anything in that range.
    : It would be no different than listening to music (and your stereo
    : system probably has a lot more range than the PC speaker). If
    : anything, you may cause hearing damage, if the volume is way too
    : loud.
    :
    : If there is any truth to the idea of changing your DNA with sound, I
    : am guessing it would be with very ultrasonic frequencies, and your
    : PC speaker will not be able to produce those.
    :
    that is very unlikely and i would have to be much much much louder
    i ran the pc speaker to 20,000hz (max)
  • LundinLundin Posts: 3,711Member
    You should realize that every product claiming a CE mark goes through detailed testing against a large number of standards. A PC with a buzzer that would cause hearing damage would be illegal to sell.

    We are bombarded with high frequency radio signals continously 24 hours per day. Plain FM radio, TV, mobile phones, radio communication devices etc etc all send out those.

    In order to damage DNA, you need an [italic]electromagnetic field[/italic] with high frequency. For example x-rays and ultrasound scans used in medicine.

Sign In or Register to comment.