Skip to content

List all OscillatorNode waveform types in Web Audio API overview#43935

Open
Pi-Kay wants to merge 1 commit intomdn:mainfrom
Pi-Kay:fix/oscillatornode-waveform-list
Open

List all OscillatorNode waveform types in Web Audio API overview#43935
Pi-Kay wants to merge 1 commit intomdn:mainfrom
Pi-Kay:fix/oscillatornode-waveform-list

Conversation

@Pi-Kay
Copy link
Copy Markdown
Contributor

@Pi-Kay Pi-Kay commented Apr 25, 2026

Description

The current text reads "represents a periodic waveform, such as a sine or triangle wave," giving readers only two of the five supported shapes. Listing the full set (sine, square, sawtooth, triangle, custom) matches the OscillatorNode.type page and gives readers unfamiliar with waveform names a better chance of recognizing one.

Motivation

Replaced "such as" with an em dash since the list is now complete rather than illustrative. Recognizing even one of the listed shapes can help readers anchor the rest of the description.

Additional details

Reference: OscillatorNode.type

Related issues and pull requests

Fixes #43925

@Pi-Kay Pi-Kay requested a review from a team as a code owner April 25, 2026 16:18
@Pi-Kay Pi-Kay requested review from dipikabh and removed request for a team April 25, 2026 16:18
@github-actions github-actions Bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Apr 25, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OscillatorNode intro: listing more waveform types would help readers unfamiliar with "sine"

2 participants