Subject: BS: Hearing ABCs From: GUEST,Bruce O. Date: 21 Mar 01 - 12:13 PM [See earlier thread on 'What do physicists think about' for background] What are you hearing from ABCs? Got a pretty good oscilloscope late yesterday afternoon.
The speaker in my computer with no input has both input leads at +4.5 VDC. With music (from BASIC's Sound command) one stays put (how, I don't know yet) and the other varies from 4 to 5 VDC.
The SOUND command of BASIC can do stange things to timing.
100 times through For i = 1 to 100 loop sounding 2KHz for 500 microsecs gives square wave.
100 times through For loop
Should last .15 secs, but lasts 11 secs. About 37 millisecs of 2KHZ, then 37 millisecs of 1KHz. I don't understand this yet in spite of some other experiments. At what short time does timing go awry?
At any rate the square wave fouls up any experiments based on ear perception of sine waves, because square waves are loaded with odd harmonics
Let x = f*pi*freq
[2/pi]*[sin(x) + (1/3)*sin(3x) +(1/5)*sin(5x)+ ......]
|
Subject: RE: BS: Hearing ABCs From: GUEST,Bruce O. Date: 21 Mar 01 - 05:10 PM Unforgivable above, I left out the factor of time x = 2*pi*freq*time |
Subject: RE: BS: Hearing ABCs From: Bert Date: 21 Mar 01 - 05:49 PM If I recall back to my BASIC days, the BASIC 'Sound' command simply toggles the speaker on and off at the chosen frequency. I would expect that to give roughly a square wave. Bert |
Subject: RE: BS: Hearing ABCs From: GUEST,Bruce O. Date: 21 Mar 01 - 05:55 PM That's what I said, giving a little more detail on how. |
Share Thread: |
Subject: | Help |
From: | |
Preview Automatic Linebreaks Make a link ("blue clicky") |