Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Issue 66393004: Make triangle wave in an OscillatorNode match WebAudio spec. (Closed)

Created:
7 years, 1 month ago by Raymond Toy (Google)
Modified:
7 years, 1 month ago
CC:
blink-reviews, Raymond Toy
Visibility:
Public.

Description

Make triangle wave in an OscillatorNode match WebAudio spec. The triangle wave is specified to be an odd function that is 0 at time 0 and has a positive slope at time 0. (The current version was an even function.) Also took this opportunity to add comments to the code to make clearer what the transforms are and also made the formulas match. (Some were off by a fixed factor, which didn't matter since all the waveforms were normalized later in createBandLimitedTables()). This makes it easier to verify against known results on the web. Layout tests are also updated for the change to the triangle wave, of course. The sawtooth and square wave tests were also updated for the slight formula change. (Differences are 1 lsb for these tests.) Also rebased the Android tests for the custom and sine tests. Apparently something has changed on Android. The changes are small with differences of 1-2 bits at most. BUG=316666 R=kbr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162139

Patch Set 1 : #

Patch Set 2 : #

Messages

Total messages: 7 (0 generated)
Raymond Toy (Google)
PTAL.
7 years, 1 month ago (2013-11-13 21:14:46 UTC) #1
Ken Russell (switch to Gerrit)
I'm not qualified to review the math -- at least not without taking a long ...
7 years, 1 month ago (2013-11-15 20:30:04 UTC) #2
Raymond Toy (Google)
On 2013/11/15 20:30:04, Ken Russell wrote: > I'm not qualified to review the math -- ...
7 years, 1 month ago (2013-11-15 21:14:32 UTC) #3
Ken Russell (switch to Gerrit)
On 2013/11/15 21:14:32, rtoy wrote: > On 2013/11/15 20:30:04, Ken Russell wrote: > > I'm ...
7 years, 1 month ago (2013-11-15 21:41:52 UTC) #4
Raymond Toy (Google)
On 2013/11/15 21:41:52, Ken Russell wrote: > On 2013/11/15 21:14:32, rtoy wrote: > > On ...
7 years, 1 month ago (2013-11-15 21:54:36 UTC) #5
Ken Russell (switch to Gerrit)
Sounds fine.
7 years, 1 month ago (2013-11-15 21:55:09 UTC) #6
Raymond Toy (Google)
7 years, 1 month ago (2013-11-15 21:57:06 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r162139 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698