Closed Bug 1104425 Opened 10 years ago Closed 9 years ago

[WebAudioAPI] Oscillator waveform other than "sine" is distorted in low frequency.

Categories

(Core :: Web Audio, defect)

36 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gaito, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36

Steps to reproduce:

1. access to http://bit.ly/1xwmlmo
2. press "Play" button


Actual results:

Oscillator sounds but the frequency almost remains 1000Hz.


Expected results:

1Hz "square" oscillator connect to second osc's frequency AudioParam.
It should sounds alternating 500Hz and 1500Hz .
Component: Untriaged → Web Audio
Product: Firefox → Core
The link is a bit wrong but almost same case.
Correct link is here : http://bit.ly/1xwmQgf
The link still doesn't work. Please correct
It works for me, another one: http://goo.gl/fsGNqz
(In reply to gaito from comment #0)
> Actual results:
> Oscillator sounds but the frequency almost remains 1000Hz.
How can this be checked ? I can't tell by simply listening.
It is okay if it sounds alternate high-tone(1500Hz) and low-tone(500Hz).
But the actual results are not alternating high/low tone.

This is just a problem of waveform in low frequency.
My friend has checked the oscillator waveform:
https://qiita-image-store.s3.amazonaws.com/0/2568/8b1355ec-3c8a-6bbd-4591-15b464bc55c3.png

in frequency=1Hz, the square wave is not square.

I think this is a adverse effect of DC rejection filter.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Don't bother checking anything here, I'm completely changing the way this works in bug 1106649.
Depends on: 1106649
Fixed by bug 1106649.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.