Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2147: Clean up PeriodicWave constructor #2168

Merged
merged 4 commits into from Feb 20, 2020

Conversation

rtoy
Copy link
Member

@rtoy rtoy commented Feb 18, 2020

Cleans up the constructor for PeriodicWave based on the algorithm given in
#2147 (comment).

A few other minor cleanups in the algorithm description were also done:

  • Move declaration of [[real]], [[imag]], and [[normalize]] to the beginning of the algorithm.
  • Remove extra text for the members of the PeriodicWaveOptions to the algorithm so that everthing is all in one place.

Preview | Diff

Cleans up the constructor for PeriodicWave based on the algorithm
given in
WebAudio#2147 (comment).

A few other minor cleanups in the algorithm description were also
done:
*  Move declaration of `[[real]]`, `[[imag]]`, and `[[normalize]]` to
   the beginning of the algorithm.
* Remove extra text for the members of the `PeriodicWaveOptions` to
  the algorithm so that everthing is all in one place.
@rtoy rtoy requested a review from padenot February 19, 2020 01:06
@rtoy
Copy link
Member Author

rtoy commented Feb 19, 2020

@bzbarsky PTAL to see if I missed anything.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@rtoy
Copy link
Member Author

rtoy commented Feb 19, 2020

Thanks for your review @bzbarsky. I've applied all of your suggestions.

@rtoy rtoy merged commit 3ff9eea into WebAudio:master Feb 20, 2020
@rtoy
Copy link
Member Author

rtoy commented Feb 20, 2020

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants